This repository contains packages that together form the Nx PHP Plugin, which adds support for PHP to Nx.
The @nx-php/composer-plugin
project provides a plugin for the Composer package manager. It enhances NX's functionality by adding composer-specific commands and hooks, allowing seamless integration with Nx monorepo workflows.
The @nx-php/phpunit
project integrates PHPUnit testing framework into an Nx monorepo. It allows developers to easily write and run unit tests for their PHP projects within the Nx ecosystem.
To use the NX PHP Plugin in your Nx monorepo, install the @nx-php/composer-plugin
package as a dev dependency in your root workspace:
npm install --save-dev @nx-php/composer-plugin
Configure your Nx workspace to include PHP projects. Refer to the documentation of each project for detailed instructions on configuration and usage:
The @nx-php
plugins are open-source software licensed under the MIT License. See the LICENSE file for more information.