Download the PHP package taro/chant-cli without Composer

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

Chant Cli

PHP製コンソールアプリケーション作成用の簡易フレームワークです。簡単にコマンドを作成し、コマンドラインで実行できます。

特徴

ディレクトリ構造

基本的な使い方

  1. コマンド作成のための以下のコマンドをターミナル(bash)上で実行

    app/console/commands 配下に SampleCommand.php ファイルが作成される

  2. SampleCommand.php ファイルを編集

  3. Taro\App\Console\CommandList クラスに新規クラスを追加

  4. 新規に作成したコマンドをターミナル上で実行

ターミナルでのコマンド実行方法

windows環境など、shebang を使わない場合は、phpコマンドで、 chant.php ファイルを実行する

shebang を使い、直接実行する

コマンドシグネチャ

基本のコマンドとオプション引数からなる

オプション引数は、必須かどうかを設定できる

パラメーターとフラグは、それぞれのプロパティの配列に追加する

オプション引数・パラメーター・フラグの取得方法

コマンド入力されたオプション引数などの値は、コマンドクラス内で以下のように取得できる

コマンドクラスの handle() メソッド内で

コマンドライン入出力

文字列の出力

ユーザーへの質問

ユーザーへの確認

テーブルの出力

登録済みコマンド

コマンド名 シグネチャ 説明
Test コマンド command:test [option1] [option2?] コマンド各種テスト用
Help コマンド command:help Cli のヘルプを表示
List コマンド command:list 登録済みコマンドのリストを表示
Make コマンド command:make コマンド名 クラス名がコマンド名のコマンドクラス雛形を作成

ライセンス (License)

Chant CliMIT licenseのもとで公開されています。

Chant Cli is open-source software licensed under the MIT license.# Chant Cli


All versions of chant-cli with dependencies

PHP Build Version
Package Version
Requires vlucas/phpdotenv Version ^5.3
monolog/monolog Version ^2.3
composer/composer Version ^2.4
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 taro/chant-cli contains the following files

Loading the files please wait ....