MIT License

项目介绍

mattrmiller/laravel-potion 是一个托管在 GitHub 上的开源项目,主要使用 PHP 编写,采用 MIT License 许可证,目前获得 59 个 Star、5 次 Fork。

仓库全名
mattrmiller/laravel-potion
开源许可证
MIT License
Star 数
59
Fork 数
5
未关闭 Issue
4

README 摘要

laravel-potion Potion is a pure PHP asset manager for Laravel based off of Assetic. Description Laravel 5 comes with a great asset manager called Elixir. While there is nothing wrong with Elixir, it requires you to install Node.js, Gulp, and dependent NPM packages on all of your web serves. While there is nothing wrong with this if you have other needs for those technologies, it seemed unnecessary to us to install…

完整内容见 GitHub 原始 README 或本页 。

常见问题

laravel-potion 用什么语言开发?

主要使用 PHP 编写,采用 MIT License 许可证,目前有 59 个 Star。

laravel-potion 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 laravel-potion 的源码?

可以直接克隆仓库:git clone https://github.com/mattrmiller/laravel-potion.git,默认分支为 master;安装与运行步骤见仓库 README。

laravel-potion 最近还在维护吗?

仓库最近一次更新为 2018年6月25日,当前有 4 个未关闭 Issue;Star 数为 59,可作为社区活跃度的参考。

关于

laravel - Potion is a pure PHP asset manager for Laravel 5 based off of Assetic.

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

README

laravel-potion

Potion is a pure PHP asset manager for Laravel based off of Assetic.

Description

Laravel 5 comes with a great asset manager called Elixir. While there is nothing wrong with Elixir, it requires you to install Node.js, Gulp, and dependent NPM packages on all of your web serves. While there is nothing wrong with this if you have other needs for those technologies, it seemed unnecessary to us to install that stack solely for the sake of handling assets. So we wrote Potion. Potion is a pure PHP solution, based off of Assetic that allows you to handle your assets in the same technology stack that your application is written in.

When using Potion the you will often see is “resources” and “assets”. Think of resources as the raw resources inside of Laravel resources direction. Think of assets as what Potion will generate and will ultimately be served to visitors.

Laravel Support

At this time Potion only supports Laravel 5.1 or higher. While Laravel 4 support was easy to implement in code, the time needed to support requests was too much.

Features

  • Fully integrated into Laravels’ artisan commands
  • Asset versioning support
  • Asset CDN Url support
  • Blade Helpers for Asset inclusion in templates
  • Command to clear all assets already published on disk
  • Makes use of Cache configuration, and not disk, in order to account for load balanced servers.
  • Supports the following filters from Assetic:
    • OptiPngFilter
    • CssImportFilter
    • CssRewriteFilter
    • CssMinFilter
    • CssCompressorFilter from YUI
    • LessphpFilter
    • JSMinFilter
    • JpegoptimFilter
    • JsCompressorFilter from YUI
    • ScssphpFilter

Installation

  1. Add ‘classygeeks/potion’ package to your composer.json file:

  2. Add the Potion Service provider to your config/app.php file under the predefined “providers” array:

'providers' => [
	'Illuminate\Foundation\Providers\ArtisanServiceProvider',
	...
	'ClassyGeeks\Potion\PotionServiceProvider'
	...
	],
  1. Publish the config file
	php artisan vendor:publish

You will now see to new Potion artisan commands. The configuration is very well documented and should be able to get even the most complex projects going quickly.

Future Features

  • Resource watching command functionality
  • Support for more filters from Assetic

Rules For Contributing

  • Please make sure all changed files are run through gofmt
  • Submit a PR for review
  • Your name will be added below to Contributors

Author

Matthew R. Miller

Contributors

Matthew R. Miller

License

MIT License

评论

暂无评论