Download the PHP package rapotor/console-bundle without Composer

On this page you can find all versions of the php package rapotor/console-bundle. 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 console-bundle

Introduction

The Sf2gen namespace will be used for a future project. Sf2genConsoleBundle will be a little part of it. Sf2genConsoleBundle give you the possibility to be able to execute a console command direclty from your application. The interface is loaded with the same way than the WebProfilerBundle.

Features

Use it

Instead of typing php app/console list, you will just have to type list. The dot is an alias for list.

Have a look :

Screenshot Screenshot Screenshot

Installation

  1. Add this bundle to your vendor/ dir:

    $ git submodule add git://github.com/RapotOR/ConsoleBundle.git vendor/bundles/Sf2gen/Bundle/ConsoleBundle
  2. Add the Sf2gen namespace to your autoloader:

    // app/autoload.php
    $loader->registerNamespaces(array(
        'Sf2gen' => __DIR__.'/../vendor/bundles',
        // other namespaces
    ));
  3. Add this bundle to your application's kernel, in the debug section:

    // app/ApplicationKernel.php
    public function registerBundles()
    {
        $bundles = array(
            // all bundles
        );
    
        if (in_array($this->getEnvironment(), array('dev', 'test'))) {
            // previous bundles like WebProfilerBundle
            $bundles[] = new Sf2gen\Bundle\ConsoleBundle\Sf2genConsoleBundle();
        }
    
        return $bundles;
    }
  4. Add the following ressource to your routing_dev.yml:

    // app/config/routing_dev.yml
    _sf2gencdt:
        resource: "@Sf2genConsoleBundle/Resources/config/routing.yml"
        prefix:   /_sf2gencdt
  5. You have to disable the firewall if you use the security component:

    # app/config/config.yml
    security:
        firewalls:
            sf2gen:
                pattern:    /_sf2gencdt/.*
                security:  false
  6. Here is the full configuration:

    # app/config/config.yml
    sf2gen_console:
        new_process: true  # use a new shell process to launch the command
        toolbar: true  # display the toolbar in the current application ; to be disabled to use it in a third application.
        local: true   # add the current application to list of available apps ; if false, the current application is excluded.
        all: false   # will add all apps with a console available without using `apps` in configuration.
        env: %kernel.environment% #the env used for the kernel setup
        apps: #  use this to have a well defined list.
            - app
            - symfony-standard

All versions of console-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.2
symfony/framework-bundle Version 2.0.*
symfony/twig-bundle Version 2.0.*
symfony/console Version 2.0.*
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 rapotor/console-bundle contains the following files

Loading the files please wait ....