2017 © Pedro Peláez
 

composer-plugin installer

Enable installation callbacks on composer libraries

image

pug/installer

Enable installation callbacks on composer libraries

  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 17 % Grown

The README.md

Pug Installer

Latest Stable Version Build Status StyleCI Test Coverage Code Climate, (*1)

Allow you to call scripts and sub-installations after package installed., (*2)

Usage

Edit composer.json like this:, (*3)

...
"require": {
    "pug/installer": "*"
},
"extra": {
    "installer": "MyClass::install"
},
"scripts": {
    "post-install-cmd": [
        "Pug\\Installer\\Installer::onAutoloadDump"
    ],
    "post-update-cmd": [
        "Pug\\Installer\\Installer::onAutoloadDump"
    ]
},
...

Then in your MyClass::install method (MyClass must be available via some PSR autoload you defined in composer.json)., (*4)

<?php

use Composer\Script\Event;
use Pug\Installer\Installer;

class MyClass
{
    public static install(Event $event, Installer, $installer)
    {
        $installer->install('pug/pug');
        $event->getIO()->write('pug/pug has been installed');
    }
}

The following will install pug/pug after your own package., (*5)

You can pass multiple installers like this:, (*6)

"extra": {
    "installer": [
        "Foo::install",
        "Bar::install"
    ]
}

The Versions

14/08 2017

dev-master

9999999-dev

Enable installation callbacks on composer libraries

  Sources   Download

The Requires

  • php >=5.3.0
  • composer-plugin-api ^1.0

 

The Development Requires

by Kyle

14/08 2017

0.1.3

0.1.3.0

Enable installation callbacks on composer libraries

  Sources   Download

The Requires

  • php >=5.3.0
  • composer-plugin-api ^1.0

 

The Development Requires

by Kyle

13/08 2017

0.1.2

0.1.2.0

Enable installation callbacks on composer libraries

  Sources   Download

The Requires

  • php >=5.3.0
  • composer-plugin-api ^1.0

 

The Development Requires

by Kyle

13/07 2017

0.1.1

0.1.1.0

Enable installation callbacks on composer libraries

  Sources   Download

The Requires

  • php >=5.3.0
  • composer-plugin-api ^1.0

 

The Development Requires

by Kyle

13/07 2017

0.1.0

0.1.0.0

Enable installation callbacks on composer libraries

  Sources   Download

The Requires

  • php >=5.3.0
  • composer-plugin-api ^1.0

 

The Development Requires

by Kyle