beelab / bowerphp
An implementation of bower in PHP
Requires
- php: >=5.6
- ext-fileinfo: *
- ext-zip: *
- knplabs/github-api: ^1.4
- samsonasik/package-versions: ^1.1
- symfony/console: ^2.7|^3.0
- symfony/filesystem: ^2.7|^3.0
- symfony/finder: ^2.7|^3.0
- symfony/process: ^2.7|^3.0
- vierbergenlars/php-semver: ^3.0
Requires (Dev)
- ext-phar: *
- friendsofphp/php-cs-fixer: ^2.0
- mockery/mockery: ^1.0@dev
- phpunit/phpunit: ^5.7|^6.0
- dev-master / 1.0.x-dev
- v0.5.3
- v0.5.2
- v0.5.1
- v0.5.0
- v0.4.0
- v0.3.6-beta
- v0.3.5-beta
- v0.3.4-beta
- v0.3.3-beta
- v0.3.2-beta
- v0.3.1-beta
- v0.3.0-beta
- v0.2.4-alpha
- v0.2.3-alpha
- v0.2.2-alpha
- v0.2.1-alpha
- v0.2.0-alpha
- v0.1.9-alpha
- v0.1.8-alpha
- v0.1.7-alpha
- v0.1.6-alpha
- v0.1.5-alpha
- v0.1.4-alpha
- v0.1.3-alpha
- v0.1.2-alpha
- v0.1.1-alpha
- v0.1-alpha
- dev-legacy
This package is auto-updated.
Last update: 2024-07-08 07:23:42 UTC
README
An implementation of bower in PHP.
Installation
$ composer require beelab/bowerphp
Configuration
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.
Status
This project is in stable version (no beta suffix), but still in 0
major version (BC not assured).
See currently open issues.
Contributing
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 }