c9s / CLIFramework

A powerful command line application framework for PHP. It's an extensible, flexible component, You can build your command-based application in seconds!
Other
437 stars 51 forks source link

Provide migration path to 2.* #72

Open igorsantos07 opened 9 years ago

igorsantos07 commented 9 years ago

I have an application that currently depends on 1.5.* branch. It seems the package got a lot of updates since them, things got deprecated and others simply don't work anymore.

However, I can't see anything useful in the README or CHANGELOG files. Please, is there any help on updating the package? It's very bad for users when packages get upgraded without info on how to upgrade.

c9s commented 9 years ago

I remember the deprecated method was registerCommand, please replace them with command(...)

Also please check out our example application, it will show you the API (it's basically the same):

The new things in Command is that arguments method, you can define the argument info to generate your completion script (both bash and zsh)

The change log is here: https://github.com/c9s/CLIFramework/blob/master/CHANGELOG.md

c9s commented 9 years ago

If you're using some CLIFramework API, there is a new service container based on pimple:

https://github.com/c9s/CLIFramework/blob/master/src/CLIFramework/ServiceContainer.php

c9s commented 9 years ago

Does it work for you?

c9s commented 9 years ago

Hi @igorsantos07,

Just updated the documentation for some components: https://github.com/c9s/CLIFramework/wiki