ionut/frod
Composer 安装命令:
composer require ionut/frod
包简介
Frontend Package Management
关键字:
README 文档
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.
统计信息
- 总下载量: 110
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-05-22