Download the PHP package cocur/pli without Composer

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

Pli

Pli is a library and set of conventions to bootstrap Console applications with Symfony Console, DependencyInjection and Config components.

Latest Version Build Status Scrutinizer Code Quality Code Coverage

The Symfony components are incredible powerful, but the price for this flexibility is quite a bit of bootstrapping code to set the components up. Especially when integrating Console, DependencyInjection and Config a developer has to copy and adapt a lot of code from the docs. Pli uses some assumptions (such as config files in Yaml format) to reduce the amount of code required to bootstrap a simple console application.

Developed by Florian Eckerstorfer in Vienna, Europe.

Installation

You can install Pli using Composer.

Usage

Bootstrapping a console application with Pli is a three-step process.

  1. Load configuration: Load and parse one or more Yaml config files.
  2. Build container: Create a container and invokes the extension to initialize it
  3. Create application: Creates and application and adds all command tagged with command to it. If a command implements ContainerAwareInterface the container is set on the command.

First we need our main file with the initialization of Pli. You also need a configuration and a extension class and Pli is very similar to Symfony in this regard. However, the Pli-version of an extension has far less features.

Pli also needs an extension that is used to build the container. You can set parameters, dynamically create service definitions and so on. If you want to store your service configuration in a Yaml file you can use the configDirectories property to retrieve the path to the config directory.

Change Log

Version 0.1.2 (5 June 2015)

Version 0.1.1 (5 June 2015)

Version 0.1 (18 May 2015)

License

The MIT license applies to cocur/pli. For the full copyright and license information, please view the LICENSE file distributed with this source code.


All versions of pli with dependencies

PHP Build Version
Package Version
Requires symfony/console Version ~2.5
symfony/config Version ~2.5
symfony/dependency-injection Version ~2.5
symfony/yaml Version ~2.5
symfony/finder Version ~2.5
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 cocur/pli contains the following files

Loading the files please wait ....