Download the PHP package adlacruzes/composer-import-scripts without Composer
On this page you can find all versions of the php package adlacruzes/composer-import-scripts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download adlacruzes/composer-import-scripts
More information about adlacruzes/composer-import-scripts
Files in adlacruzes/composer-import-scripts
Package composer-import-scripts
Short Description Composer plugin to import composer scripts from sources
License MIT
Informations about the package composer-import-scripts
Composer import scripts
Composer import scripts is a plugin to import composer scripts from files/URLs at runtime.
I needed a simple way to import scripts and unify commands across multiple libraries. If you need a more powerful tool, you can look at the excellent composer-merge-plugin.
Imported commands have to be invoked with composer run
.
Can this plugin import scripts from...
- other composer.json files? Yes
- public URLs? Yes
Table of Contents
- Installation
- Configuration
- include
- allow_failures
- override
- JSON schema
Installation
As of Composer 2.2.0, the allow-plugins
option adds a layer of security allowing you to restrict which Composer plugins are able to execute code during a Composer run.
Use this setting to allow only packages you trust to execute code.
Usage
Configuration
include
required
include
setting is a list of files to import. These files need to be valid JSON according to the import scripts schema.
allow_failures
optional
default: false
allow_failures
is a setting that controls errors from the plugin. If set to true
the following file errors will be ignored and zero scripts will be imported from these files:
- Invalid JSON schema
- Invalid file
override
optional
default: true
When override
is set to true
the scripts from the include
setting will override the scripts with the same name defined in composer.json
JSON schema
This is the scheme files must adapt.
An example of this schema:
All versions of composer-import-scripts with dependencies
composer-plugin-api Version ^1.0 || ^2.0