Package Data | |
---|---|
Maintainer Username: | Classy Geeks |
Maintainer Contact: | support@classygeeks.com (Classy Geeks llc.) |
Package Create Date: | 2015-03-20 |
Package Last Update: | 2018-06-24 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-14 15:16:31 |
Package Statistics | |
---|---|
Total Downloads: | 736 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 61 |
Total Watchers: | 5 |
Total Forks: | 5 |
Total Open Issues: | 6 |
Potion is a pure PHP asset manager for Laravel based off of Assetic.
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.
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.
Add 'classygeeks/potion' package to your composer.json file:
Add the Potion Service provider to your config/app.php file under the predefined "providers" array:
'providers' => [
'Illuminate\Foundation\Providers\ArtisanServiceProvider',
...
'ClassyGeeks\Potion\PotionServiceProvider'
...
],
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.