aztech/coding-standard

Aztech Sniffs for PHP CodeSniffer

v0.1.6 2014-09-12 21:21 UTC

This package is auto-updated.

Last update: 2024-11-04 23:22:11 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