aztech / php-skeleton-library
Skeleton project for PHP libraries
Installs: 62
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Language:Makefile
Requires
- php: >= 5.4
- aztech/php-utils: ~1.0
- psr/log: ~1.0
Requires (Dev)
- phpmd/phpmd: ~2
- phpunit/phpunit: ~4.2
- squizlabs/php_codesniffer: ~2
- vektah/bugfree-dangerzone: ~0.3
This package is not auto-updated.
Last update: 2024-11-05 02:48:31 UTC
README
Skeleton for PHP library projects
This is my personal PHP library skeleton for use with Composer. Use it or don't, improve it or not, do whatever you like, but P/R your changes if they're interesting :p
Use
$ composer create-project aztech/php-skeleton-library <target-dir>
Running tests, CS, etc... locally
Run tests and code style analyses
$ make test-analysis
Run tests only
$ make test
Upload code coverage to Scrutinizer
To upload to private repos, you need to export an OCULAR_TOKEN environment variable :
$ export OCULAR_TOKEN='Scrutinizer API token' $ make test-upload
Alternatively, without exporting the variable :
$ OCULAR_TOKEN='Scrutinizer API token' make test-upload
Clean up your mess
$ make clean