A PHP implementation of bower 🐦
Latest commit 71b14cf Feb 21, 2017 @garak garak fix phpunit path
Failed to load latest commit information.
bin fix all problems reported by insight Dec 13, 2013
src allow phpunit6 Feb 21, 2017
tests allow phpunit6 Feb 21, 2017
.gitattributes fix gitattributes Apr 4, 2016
.gitignore upgrade php-cs-fixer Jan 10, 2017
.php_cs upgrade php-cs-fixer Jan 10, 2017
.travis.yml fix phpunit path Feb 21, 2017
CONTRIBUTING.md fix compiler May 27, 2016
LICENSE first commit Nov 29, 2013
README.md Update website Jun 1, 2016
composer.json allow phpunit6 Feb 21, 2017
composer.lock allow phpunit6 Feb 21, 2017
phpunit.xml.dist travis fix Nov 18, 2014



An implementation of bower in PHP.


travis build Code Climate Scrutinizer Code Quality insight Join the chat at https://gitter.im/Bee-Lab/bowerphp


$ composer require beelab/bowerphp


Currently, you can configure your bower directory in .bowerrc file, just like the original Bower.

If you need many dependencies, you'll likely hit the Github API limit (currently 60 requests per hour). To increase your limit to 5000 requests per hour, you can use a token. See Github help. Once you created your token, just store it in the BOWERPHP_TOKEN environment variable.


This project is in stable version (no beta suffix), but still in 0 major version (BC not assured).

See currently open issues.


All contribution are welcome, just take a look at our issues tracker if you want to start somewhere.

If you make a PR make sure that it follow the PSR2 standard. To make sure that your code comply with the standard, you can use a git hook with php-cs-fixer. There is one here that you only need to copy to your .git/hooks folder under the name of pre-commit and you are set.

Building the phar

You can build the phar by simply running:

$ php bin/compile

Or you can use the box command line utility. If you add the following content in a box.json file, you only just need to run box build command to get a phar. Don't forget to give execution permission to your phar, using chmod +x bowerphp.phar.

    "directories": ["src"],
    "files": ["LICENSE"],
    "finder": [
            "name": "*.php",
            "exclude": ["Tests", "phpunit", "mockery"],
            "in": "vendor"
    "main": "bin/bowerphp",
    "output": "bowerphp.phar",
    "stub": true