Download the PHP package railt/discovery without Composer
On this page you can find all versions of the php package railt/discovery. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download railt/discovery
More information about railt/discovery
Files in railt/discovery
Package discovery
Short Description Cross-package composer-based configuration loader
License MIT
Homepage http://railt.org
Informations about the package discovery
This package is deprecated.
Discovery
Installation
-
Install package using composer.
- Add discovering event into your
composer.json
.
Usage
Discovery provides the ability to implement a cross-package
configuration using composer.json
.
In order to access the configuration group, you must specify the key
name in the extra
section:
Values Export
Any group that is listed inside the {"extra": {"discovery": ...}}
section
will be available, exported and readable.
Reading Exported Values
After updating the composer dependencies, an object with the specified configs
will be formed. In order to further read this data - you need to use the
Discovery
class.
Auto Detect
You can try to create a Discovery instance using automatic logic to determine the paths to the vendor directory.
From ClassLoader
You can create a new Discovery instance from the Composer ClassLoader.
From Composer
You can create instances of Discovery from Composer plugins using the appropriate static constructor.
Export Removal
In order to exclude any value from the export data - you need to
register the necessary paths in the section except:discovery
.
Please note that this rule is valid only in the root package composer.json
.
All versions of discovery with dependencies
ext-json Version *
composer-plugin-api Version ^1.1|^2.0