0.2.0 • Published 12 months ago

@nx-php/composer-plugin v0.2.0

Weekly downloads
-
License
-
Repository
-
Last release
12 months ago

@nx-php/composer-plugin

The Nx PHP Package Plugin is a plugin for an Nx Workspace that enables computation of the PHP package graph from composer.json require and require-dev within a monorepo structure. With this plugin, you can integrate PHP packages into your existing Nx workspace without having to manually specify dependencies between your project.

Getting Started

To start using the @nx-php/composer-plugin, follow these steps:

  1. Install the plugin as a development dependency in your Nx workspace:
npm install --save-dev @nx-php/composer-plugin
  1. Add the plugin to your workspace's nx.json
{
    "$schema": "./node_modules/nx/schemas/nx-schema.json",
    "npmScope": "my-project",
    "tasksRunnerOptions": {
        "default": {
            "runner": "nx/tasks-runners/default",
            "options": {
                "cacheableOperations": [
                    "build",
                    "lint",
                    "test",
                    "e2e"
                ]
            }
        }
    },
    "targetDefaults": {
        "build": {
            "dependsOn": [
                "^build"
            ]
        }
    },
    "plugins": [
        "@nx-php/composer-plugin" //This is the important line!
    ]
}
  1. Start developing your PHP package!

You will likely need the @nx-php/phpunit package in order to test your plugin.

0.2.0

12 months ago

0.1.2

1 year ago

0.1.1

1 year ago