heptacom / composer-node-bridge
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:composer-plugin
Requires
- composer-plugin-api: ^2.0
- symfony/filesystem: ^5 || ^6 || ^7
- symfony/process: ^5 || ^6 || ^7
Requires (Dev)
- composer/composer: ^2.0
README
Have you ever wanted to use node
in your PHP project, but had no guarantee, it available in the $PATH
of your environment?
This composer plugin aims to solve that.
- Install the plugin as a normal composer dependency in your project.
- Allow the plugin to execute code in your project.
- You will now have
vendor/bin/node
andvendor/bin/npm
.
Installation
composer require heptacom/composer-node-bridge
How Does It Work?
This plugin uses the Node Version Manager
to install both Node and NPM into your vendor
directory.
It will not be added to your $PATH
environment variable.
NVM will not be available in your Shell.
It only affects your PHP project.
The goal is to allow PHP code to rely on the availability of node
without putting additional dependencies on your environment.
Limitations
Currently, only Node version 22 is supported.