Download the PHP package yiisoft/app-console without Composer

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

Yii

Yii Console Application


Latest Stable Version Total Downloads Build status static analysis type-coverage

The package is a console only application template that can be used to perform common tasks in a Yii application. If you need classic web or API please start with corresponding templates:

It is based on Yii console runner that is used in the entry command script, ./yii. You are free to adjust any part of this template including the entry command script to suit your needs.

Requirements

Creating a project

Use Composer to create new project from this template:

General usage

Console is available as ./yii from the root directory of the application:

Help for specific command could be displayed by adding --help to the command itself:

Using the command is like the following:

Environments

Out of the box, three environments are available:

Config files for these are in config/environments.

Environment could be chosen by setting YII_ENV:

Extra debugging

To enable validation of container and events, set YII_DEBUG environment variable:

Creating your own command

Commands are placed into src/Command. Let's see how hello command is implemented in src/Command/HelloCommand.php:

To register the command, add it to config/commands.php:

Info: Yii console is based on Symfony console so for additional usage documentation, please follow Yii console and Symfony console guide.

Events

The application raises ApplicationStartup before and ApplicationShutdown after running a command.

Tests

The template comes with ready to use Codeception configuration. In order to execute tests run:

Static analysis

The code is statically analyzed with Psalm. To run static analysis:

License

The Yii Console Application is free software. It is released under the terms of the BSD License. Please see LICENSE for more information.

Maintained by Yii Software.

Support the project

Open Collective

Follow updates

Official website Twitter Telegram Facebook Slack


All versions of app-console with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
vlucas/phpdotenv Version ^5.3
yiisoft/aliases Version ^3.0
yiisoft/log Version ^2.0
yiisoft/log-target-file Version ^3.0
yiisoft/yii-console Version ^2.0
yiisoft/yii-runner-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 yiisoft/app-console contains the following files

Loading the files please wait ....