ionut / frod
Frontend Package Management
Requires
- php: >=5.4.0
- illuminate/console: >=4.2
- leafo/lessphp: 0.4.0
- leafo/scssphp: 0.0.10
- werkint/jsmin: 1.0
Requires (Dev)
- php: >=5.4.0
- mockery/mockery: 0.9
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2024-11-09 17:24:43 UTC
README
Frod is a Real Time Frontend Package Manager.
You can use packages(ex: jquery, bootstrap, semantic-ui) without need to manually download them.
Install with composer take only a few seconds.
composer require ionut/frod
Documentation(with Quick start) available on frod.ionut-bajescu.com
List with available packages on Frod Main Server you can find on server.frod.ionut-bajescu.com/packages.
Examples
Example of basic use:
<?php include 'vendor/autoload.php'; ?> <html> <head> <?=Frod::packages('jquery', 'bootstrap')?> </head> <body> Frod is awesome! </body> </html>
But wait, you have magical method Frod::combine($package1, $package2)
to combine all packages in just two files(css and js).
And you have Frod::movable($package1, $package2)
to separate css and javascript(for put js bottom).
And surprising, you can chain all methods.
Let me show you an example:
<?php include 'vendor/autoload.php'; $packages = Frod::combineMovable('jquery', 'bootstrap'); ?> <html> <head> <?=$packages->css?> </head> <body> Frod is <b>pure</b> awesome! <?=$packages->js?> </body> </html>
License
The Frod library is open-sourced software licensed under the MIT license.