Socket
Socket
Sign inDemoInstall

@nx-php/composer-plugin

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @nx-php/composer-plugin

The Nx PHP Package Plugin is a plugin for an [Nx Workspace](https://nx.dev/) 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 i


Version published
Weekly downloads
2
Maintainers
1
Created
Weekly downloads
 

Readme

Source

@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.

FAQs

Last updated on 16 May 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc