2017 © Pedro Peláez
 

composer-plugin xp-composer-installer

Composer Installer Packaging Plugin for XP Framework

image

xp-forge/xp-composer-installer

Composer Installer Packaging Plugin for XP Framework

  • Saturday, June 13, 2015
  • by kiesel
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Composer Plugin for XP Framework

This plugin enabled Composer to install packages written with the XP Framework., (*1)

Status

This is work-in-progress, at an experimental (even pre-alpha) level., (*2)

Usage

To use this plugin in a project, you need to have a composer.json file:, (*3)

{
  "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:, (*4)

  1. xp-forge/oauth will be fetched, branch composer will be used.
  2. That in return depends on xp-framework/core which will then be fetched.
  3. Both depend on xp-forge/xp-composer-installer which is a Composer plugin, so that will be fetched, as well.
  4. Once all dependencies have been resolved, each dependency's root directory is searched for *.pth files, and their contents be added to this project's composer.pth.

Notes:, (*5)

  • xp-composer-plugin is a Composer plugin responsible for handling xp-library types of dependencies.
  • adding these repositories must be done in the root composer.json file
  • adding these repositories is only necessary as long as there are no official packages on packagist.
  • Then, also the minimum-stability: dev line can probably be removed

The Versions

13/06 2015

dev-master

9999999-dev

Composer Installer Packaging Plugin for XP Framework

  Sources   Download

BSD-3-Clause

The Requires

  • composer-plugin-api ^1.0

 

The Development Requires