Download the PHP package lyrasoft/cli without Composer

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

LYRASOFT CLI 工具

這是為了 LYRASOFT 日常工作與建立設定檔所開發的方便工具。

快速安裝

一般安裝方式

快速安裝無法正確執行時,請依照以下步驟進行:

安裝完成後,可在任何地方直接輸入:

來執行相關指令。

Mac / Linux 無法執行時

Mac 必須先將 ~/.composer/vendor/bin 加入到 PATH 環境變數

請參考 https://stackoverflow.com/a/25373254

Linux 的路徑比較不一樣

自動完成

只要輸入一次

註冊好自動完成的指令後,之後就可以用 Tab 自動完成指令了

只支援 zsh

常用功能說明

更新 PhpStorm 設定檔

我們的常用設定檔有三組,分別是 CodeStyle, FileTemplate 與 LiveTemplate

可以用:

來更新 PhpStorm 的全域設定檔。也可以用:

單純只更新到現在的專案

如果你要把自己設定好的設定檔更新到我們得 repository 給其他人分享,可以用:

注意這個動作不要隨便進行

Get PR

現在可以透過 lyra cli 快速取用 PR 來測試,取代以前的 get-pr 指令

預設會拉下來成 pr-xxx 的 branch,也可以指定特定的 branch:

拉下後直接切換

預設是從 lyra 的 remote 取用 PR,請按照命名原則設定你的 git remote,也可以自定 remote

PHP Code Sniffer

先切換到專案目錄(確定已經先用 phpstorm 開啟過這個目錄,有 .idea 資料夾),第一次先執行:

就會自動設定好我們的 Sniffer 設定檔,並下載我們的 Code Style 規則。第二次之後可以省略 -p 直接啟用 phpstorm 的 sniffer 功能。

如果未來我們的 Sniffer 規則有更動,只要再執行第一個指令或者再任何地方執行:

就會自動刷新 Sniffer 規則

註冊 GitHub SSH Key

lyra-cli 提供了方便的指令直接幫你註冊 GitHub SSH Key.

執行

第一次會需要產生 SSH Key

SSH Key 產生之後,會問你 GitHub 的登入帳密,輸入後便可自動註冊完成。

完整指令說明

請直接用 -h 觀看說明

開發方式

若要增加或修改功能,可以用 composer global require lyrasoft/cli --prefer-source ,這樣就會下載 github 上的版本,就可以直接 編輯,然後用 git commit 修改內容。 記得可以先 fork 一份,然後加上你自己的 remote。

編輯位置在 Composer 的 global 目錄:

lyra-cli 的目錄在 {COMPOSER_HOME}/vendor/lyrasoft/cli 內。

Command 的編寫方式

最上層 Command 請寫好 class 之後,註冊在 /lyra 檔案內。

See: https://github.com/lyrasoft/lyra-cli/blob/6c76cacd4a62393337e6c37f49f80dd263bd920d/lyra#L34

之後的寫法請參考: Windwalker Console


All versions of cli with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
ext-dom Version *
ext-json Version *
ext-simplexml Version *
guzzlehttp/guzzle Version ^7.0.1
http-interop/http-factory-guzzle Version ^1.0
knplabs/github-api Version ^3.0
psr/cache Version ^2.0
squizlabs/php_codesniffer Version ^3.0
stecman/symfony-console-completion Version ^0.11.0||^0.12.0
symfony/console Version ^4.0||^5.0||^6.0||^7.0
symfony/contracts Version ^2.0||^3.0
symfony/process Version ^4.0||^5.0||^6.0||^7.0
webmozart/glob Version ^4.4
windwalker/attributes Version ^4.0
windwalker/di Version ^4.0
windwalker/environment Version ^4.0
windwalker/event Version ^4.0
windwalker/filesystem Version ^4.0
windwalker/http Version ^4.0
windwalker/utilities Version ^4.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 lyrasoft/cli contains the following files

Loading the files please wait ....