- Git
- PHP 5.6+
- Composer
- Node.js
- Yarn
- phpDocumentor
- Clone the repository:
git clone git@github.com:nelson6e65/php_nml.git
- Install PHP dependencies:
composer install
- Install Node dependencies:
yarn
Note: This scripts should be run from root php_nml directory (where
composer.json
is).
-
composer test-code
: Runs unit-testing tests with PHPUnit. You can pass more phpunit args with-- <arg>
. For example:composer test-code -- --verbose
. -
composer analize-code
: Runs coding standards checks (PHP: Code Sniffer). -
composer autofix-code
: Runs coding standard auto-fixes (PHP: Code Sniffer). -
composer check-all
: Runs coding standard analisis (PHP: Code Sniffer) + tests (PHPUnit). -
composer build
: Run this sub-scripts:composer build-code-coverage
: Runs tests and build code coverage reports (XML and HTML formats) inoutput/code-coverage/
directory.
- For XML format only (
output/code-coverage/clover.xml
):composer build-code-coverage-clover
orcomposer build-code-coverage-xml
(alias). - For HTML format only:
composer build-code-coverage-html
.
-
composer build-api
: Generates API documentation inoutput/api/
directory using ApiGen. -
phpdoc
: Generates the API documentation files (*.md
) compatible with VuePress. -
yarn docs:dev
: Generates VuePress documentation in development mode to check changes while writing. -
yarn docs:build
: Build the VuePress documentation to be published.
[DEPRECATED]
.travis/deploy-documentation
: Generates documentation and publish it ingh-pages
brach. Note: This script is used by Travis CI to publish documentation and should not be run in local development.