tonymanero/manero

A CLI-Tool to convert DI-config files to disco configurations

0.2.1 2018-03-23 06:42 UTC

This package is auto-updated.

Last update: 2024-03-23 08:38:58 UTC


README

Create a configuration for Disco from your current DI-Configuration.

Build Status Coverage Status Scrutinizer Code Quality

Github Releases PHP-Version License

Usage

Download the latest PHAR-file from https://github.com/tonymanero/manero/releases and invoke it within your applications working directory.

php manero.phar convert:<container-implementation> path/to/config.php

This will create a trait ManeroConfigTrait.php from the container-implementations configuration.

There will be some manual labour needed to finalize the configuration due to quirks in the way f.e. ZendExpressive configures it's DI.

You will also need to provide the propper namespace for the trait.

To get a list of currently available container-implementations invoke php manero.phar.

Name

Tony Manero is the main character from the film Saturday Night Fever

Contributions

Contributions are welcome! If you find that a conversion from your favourite DI-Container-implementation is missing, feel free to create a PullRequest.

License

Copyright (c) Manero Contributors. All rights reserved.

Licensed under the MIT License. See LICENSE.md file in the project root for full license information.