All pages in tagged with #Console

Using Symfony Console with Silex

Integrating console tools into your Silex project.

Tuesday Jul 1, 2014 — 3 minute read — 632 words

The Symonfy console component is a powerful, effective way to define and organize you’re project’s command line PHP scripts. Thankfully it’s quite easy to get it up and running. Installing the Provider It’s easy to install and register the console provider using the knplabs/console-service-provider package. Just this to your composer.json file: "require": { "knplabs/console-service-provider": "dev-master" } You can register the provider with the following lines of code. Obviously, you’ll need to update the, console.version, and console.project_director to match the appropriate values.

Read More