xp-forge / xp-composer-installer
Composer Installer Packaging Plugin for XP Framework
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:composer-plugin
pkg:composer/xp-forge/xp-composer-installer
Requires
- composer-plugin-api: ^1.0
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2025-10-25 20:47:01 UTC
README
This plugin enabled Composer to install packages written with the XP Framework.
Status
This is work-in-progress, at an experimental (even pre-alpha) level.
Usage
To use this plugin in a project, you need to have a composer.json file:
{
"name" : "kiesel/composer-example",
"minimum-stability": "dev",
"repositories" : [
{
"type": "vcs",
"url": "https://github.com/kiesel/oauth"
},
{
"type": "vcs",
"url": "https://github.com/kiesel/xp-composer-installer"
},
{
"type": "vcs",
"url": "https://github.com/kiesel/core"
}
],
"require" : {
"xp-forge/oauth": "dev-composer"
}
}
Then, run composer install. What now effectively happens is:
xp-forge/oauthwill be fetched, branchcomposerwill be used.- That in return depends on
xp-framework/corewhich will then be fetched. - Both depend on
xp-forge/xp-composer-installerwhich is a Composer plugin, so that will be fetched, as well. - Once all dependencies have been resolved, each dependency's root directory
is searched for
*.pthfiles, and their contents be added to this project'scomposer.pth.
Notes:
xp-composer-pluginis a Composer plugin responsible for handlingxp-librarytypes of dependencies.- adding these repositories must be done in the root
composer.jsonfile - adding these repositories is only necessary as long as there are no official packages on packagist.
- Then, also the
minimum-stability: devline can probably be removed