Download the PHP package wilkques/console without Composer

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

Console for PHP

Latest Stable Version License

English | 繁體中文

`

Upgrading from 3.x? Declared flags like {--force} changed default from true to false, undeclared options are now rejected, and handle() now returns an exit code your entry script must pass to exit(). Read UPGRADING.md first.

How to use

  1. Add a PHP command file.

    Command classes are discovered by path, and their fully-qualified class name is derived from your root composer.json's psr-4 map — so the command directory must sit under a psr-4 root, and the class must declare the matching namespace. With {"autoload": {"psr-4": {"App\\": "app/"}}}, put this at app/Console/DoSomethingCommand.php:

  2. in terminal run vi artisan & Add PHP code

  3. in terminal run php artisan do:something --debug

Argument syntax

Positional arguments are declared with {name} in the signature, and are read back inside handle() via $this->argument('name'):

Passing more positional values than the signature declares (and the last argument isn't a * array argument) also aborts, with Too many arguments, expected arguments "...".

Option syntax

Options are declared with {--name} inside the signature and read back with $this->option('name'):

Add a description after the first : — {--force : skip confirmation}. Only the first : separates the token from its description, so defaults may themselves contain colons: {--dsn=mysql:host=localhost : the DSN} keeps its full value.

An option that the signature does not declare is an error:

Exit codes

situation exit code
handle() returns null / nothing 0
handle() returns an int that int
help screen (no command given) 0
unknown command, bad arguments, undeclared option 1
uncaught exception inside a command non-zero

Errors are written to stderr, so they can be redirected separately from a command's normal output.


All versions of console with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3
wilkques/container Version >=5.0.0
wilkques/php-helper Version ^6.1.0
wilkques/filesystem Version >=1.0.1
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 wilkques/console contains the following files

Loading the files please wait ...