2017 © Pedro Peláez
 

composer-plugin extra-flex

ExtraFlex plugin

image

covex-nn/extra-flex

ExtraFlex plugin

  • Wednesday, May 23, 2018
  • by covex-nn
  • Repository
  • 3 Watchers
  • 6 Stars
  • 1,296 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 10 Versions
  • 41 % Grown

The README.md

Extra-Flex for Symfony

Extra-Flex is a composer plugin for Symfony Flex., (*1)

Extra-Flex allows to keep recipe for composer package together in the same repository with a package itself., (*2)

Extra-Flex allows to install recipe on require command and uninstall on remove command. Also recipe could be applied on demand without requiring a package with additional apply command., (*3)

To enable Extra-Flex run composer require covex-nn/extra-flex after composer create-project symfony/skeleton, (*4)

To include recipe into a package, add extra data to composer.json:, (*5)

{
    "extra": {
        "recipe-dir": ".flex"     
    }
}

Example

Require covex-nn/extra-flex-foobar and apply recipe immediately:, (*6)

composer create-project symfony/skeleton .
composer require covex-nn/extra-flex
composer require covex-nn/extra-flex-foobar
composer remove covex-nn/extra-flex-foobar

Apply recipe from covex-nn/extra-flex-foobar without require package:, (*7)

composer create-project symfony/skeleton .
composer require covex-nn/extra-flex
composer apply covex-nn/extra-flex-foobar 1.0.2
cat composer.json

See [composer.json][2] from [covex-nn/extra-flex-foobar][2] for details., (*8)

Extending Flex

To extend Flex, your composer-plugin could subscribe to one of Extra-Flex events:, (*9)

  • pre-flex-configurator-install
  • post-flex-configurator-install
  • pre-flex-configurator-unconfigure
  • post-flex-configurator-unconfigure
  • pre-flex-downloader-getRecipes
  • post-flex-downloader-getRecipes

The Versions

23/05 2018
22/05 2018
22/05 2018

dev-require-dev

dev-require-dev

ExtraFlex plugin

  Sources   Download

MIT

The Requires

  • composer-plugin-api ^1.1

 

The Development Requires

22/05 2018
12/01 2018
13/12 2017

0.1.3

0.1.3.0

ExtraFlex plugin

  Sources   Download

MIT

The Requires

 

The Development Requires