An Nx plugin for developing applications and libraries using PHP Symfony.
In order to use this plugin within your NX workspace, you need to do some manual steps which cannot be done by the plugin:
- Install PHP 8.0.2 or higher and your required PHP extensions
- Install Composer, which is used to install PHP packages.
- Install PCOV extension used for code coverage during test execution
npm install --save-dev @nxt-php/php-symfony
Run nx g @nxt-php/php-symfony:app my-app
to generate a symfony application.
Run nx g @nxt-php/php-symfony:lib my-lib
to generate a symfony library.
Run nx build my-app
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run nx test my-app
to execute the unit tests via Jest.
Run nx affected:test
to execute the unit tests affected by a change.
Run nx e2e my-app
to execute the e2e tests.
Run nx affected:e2e
to execute the e2e tests affected by a change.
PRs accepted.
Small note: If editing the README, please conform to the standard-readme specification.
MIT © 2022 Josef Wagner