Skip to content
Assets Management - Assetic alternative
PHP Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
src/Ionut/Frod
tests
.gitignore
.travis.yml
LICENSE.txt
changes.json
cli
composer.json
phpunit.xml
readme.md
testing-prepare.sh
travis-composer.json

readme.md

Frod

Build Status Total Downloads Latest Version Dependency Status

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.

You can’t perform that action at this time.