Download the PHP package rodrigodiez/symfony-rich-console without Composer

On this page you can find all versions of the php package rodrigodiez/symfony-rich-console. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package symfony-rich-console

Symfony rich console

This component integrates both Symfony Dependency Injection and Symfony Event Dispatcher components into Symfony Console applications.

Note: This is only intended if dealing with Symfony Console standalone applications, not web framework ones.

Scrutinizer Quality Score SensioLabsInsight

Example:

Installation

1. Download it using composer

Add rodrigodiez/symfony-rich-console to your composer.json

Now, tell composer to download the component by typing

2. Create a console

You need a entry point file to instantiate and run your application. You can create it at app/console.

Note that you must extend the custom Application class provided within this component.

The Application class constructor receives two optional parameters:

2. Create a parameters.yml file

This file is mandatory, it must be located in your configPath and it must contain, at least, the following info:

3. Done!

Now you can execute your app by typing...

... but the result may be disappointing. This is because we didn't yet registered any commands into the application.

Adding a configuration file

To be able to define your services (commands are defined as services too) it is necessary to create a configuration file in configPath and tell the application to load it:

Registering commands

Simply register your command as a service and tag it as console.command.

If your command class implements Symfony\\Component\\DependencyInjection\\ContainerAwareInterface then container will be injected and you can retrieve it through its $container property.

Registering listeners and subscribers

That is all!

I hope this to be useful to somebody. Comments, issue reports and pull requests will be appreciated :)


All versions of symfony-rich-console with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
symfony/console Version >=2.3
symfony/dependency-injection Version >=2.3
symfony/finder Version >=2.3
symfony/yaml Version >=2.3
symfony/config Version >=2.3
symfony/event-dispatcher Version >=2.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package rodrigodiez/symfony-rich-console contains the following files

Loading the files please wait ....