Skip to content
This repository has been archived by the owner on Jun 4, 2018. It is now read-only.

covex-nn/extra-flex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extra-Flex for Symfony

Extra-Flex is a composer plugin for Symfony Flex.

Extra-Flex allows to keep recipe for composer package together in the same repository with a package itself.

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.

To enable Extra-Flex run composer require covex-nn/extra-flex after composer create-project symfony/skeleton

To include recipe into a package, add extra data to composer.json:

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

Example

Require covex-nn/extra-flex-foobar and apply recipe immediately:

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:

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 from covex-nn/extra-flex-foobar for details.

Extending Flex

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

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

About

[DEPRECATED] The development has moved to a new repository

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages