@nxt-php/php-symfony
v5.0.0
Published
A third-party Nx plugin for PHP Symfony
Downloads
2,372
Readme
@nxt-php/php-symfony
An Nx plugin for developing applications and libraries using PHP Symfony.
Table of Contents
Prerequisites
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
Usage
Install plugin
npm install --save-dev @nxt-php/php-symfony
Generate an application
Run nx g @nxt-php/php-symfony:app my-app
to generate a symfony application.
Generate a library
Run nx g @nxt-php/php-symfony:lib my-lib
to generate a symfony library.
Build
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.
Running unit tests
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.
Running e2e tests
Run nx e2e my-app
to execute the e2e tests.
Run nx affected:e2e
to execute the e2e tests affected by a change.
Maintainers
Contributing
PRs accepted.
Small note: If editing the README, please conform to the standard-readme specification.
License
MIT © 2022 Josef Wagner