Download the PHP package eureka/component-console without Composer

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

Component Console (formerly Eurekon)

Current version Supported PHP version CI Quality Gate Status Coverage

Console component to run script. You can integrate it easily in Eureka Framework application with Kernel Console, and use dependency injection.

Console provide argument manager (like every another command on linux system). Console have some defined classes to help you to do a lot of beautiful script.

Execution

Documentation

Options & Arguments

The options work like unix arguments. Full & short alias are supported.

So, you can have dynamics script based on command options.

Reserved Options

Some options are reserved:

Help

Class help is provided to have a pretty format of parameters when you use --help arguments for your script.

Input / Output

Input

Input is handle by Input interface. Can handle prompt console from user.

Output

Output is handle by Output interface. Can display content on standard output, file, memory (depending the stream resource passed to the OutputStream class).

Styling

Console output support styling and color:

Colors

Console now embed 4 bits colors, 8 bits colors & 24 bits colors. Support of 8 bit & 24 bits colors depends on terminal application (8 bit color have correct support, not 24 bits)

Pretty table

You can easily display a pretty table with Table & related classes:

The output will be:

And with non-extended ascii chars:

Pretty progress bar / %

You can easily display a progress bar or percentage:

Type bar

After the first iteration:

After the second iteration:

At the end:

Type percent

After the first iteration:

After the second iteration:

At the end:

Terminal & Cursor

Now, you can get a terminal to have information about width / height of terminal, and manipulate cursor on this

Contributing

See the CONTRIBUTING file.

Install / update project

You can install project with the following command:

And update with the following command:

NB: For the components, the composer.lock file is not committed.

Testing & CI (Continuous Integration)

Tests

You can run tests (with coverage) on your side with following command:

For prettier output (but without coverage), you can use the following command:

Code Style

You also can run code style check with following commands:

You also can run code style fixes with following commands:

Static Analysis

To perform a static analyze of your code (with phpstan, lvl 9 at default), you can use the following command:

To ensure you code still compatible with current supported version at Deezer and futures versions of php, you need to run the following commands (both are required for full support):

Minimal supported version:

Maximal supported version:

CI Simulation

And the last "helper" commands, you can run before commit and push, is:

License

component-console is licensed under the MIT License - see the LICENSE file for details


All versions of component-console with dependencies

PHP Build Version
Package Version
Requires php Version 8.1.*||8.2.*||8.3.*
ext-mbstring Version *
lcobucci/clock Version ^2.3||^3.0
psr/clock Version ^1.0
psr/container Version ^1.0||^2.0
psr/log Version ^1.1||^2.0||^3.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 eureka/component-console contains the following files

Loading the files please wait ....