Download the PHP package antidot-fw/cli without Composer

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

Antidot Framework Console Tool

Scrutinizer Code Quality Code Coverage Build Status Code Intelligence Status

This library is an adapter for using the Symfony Console component using the standard Zend Framework configuration and any dependency injection container compatible with the Psr\ContainerInterface

Install

Using composer package manager

`

Antidot Framework:

The Cli component is installed by default in Antidot Framework Starter

Zend Expressive:

The Cli component will be automatically installed by running composer require command when we have previously installed the library Zend Config Aggregator

All we'll need to do is create the Console entry point:

``

Finally we will give execution permissions to the file bin/console

`

As Standalone application

The Cli component can also be used to create console applications without any Framework, all we need is an implementation of the dependency injection container compatible with the standard Psr\ContainerInterface

Assuming we create a project with the following structure:

`

As a dependency we could use the Antidot Framework adapter For Aura Container

`

We create the file config/container.php that must return a configured instance of Psr\ContainerInterface to us.

``

We need to create the Console entry point:

``

And give to it execution permissions

`

Usage

Una vez instalada la Consola, podemos ver los comndos disponibles ejecutando el punto de entrada con el parametro list o sin parametro

`

Create Commands

To create console commands you need to create a class that extends from Symfony\Component\Console\Command\Command

``

For more information you can see the official documentation of Symfony in this regard.

Config

The configuration consists of three different elements: dependencies, console.commands y console.helper-sets

``


All versions of cli with dependencies

PHP Build Version
Package Version
Requires php Version ~8.1.0 || ~8.2.0 || ~8.3.0
psr/container Version ^2.0
symfony/console Version ^5.0 || ^6.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 antidot-fw/cli contains the following files

Loading the files please wait ....