Download the PHP package laikait/laika-cli without Composer

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

Laika CLI

CLI generator for the Laika PHP MVC Framework.

Install

laika-cli ships as a dependency of laikait/laika-core, so every Laika project already has it. If you started from laikait/laika-framework, the wiring below is already in your composer.json and the executable is generated for you on composer install, update, dump-autoload and create-project — no manual step needed.

Wiring it up manually

Composer only runs scripts declared by the root project, never by a dependency. So a project that wasn't created from the framework skeleton needs to call the generator itself:

Keep ScriptHandler::generate first in post-autoload-dump if later entries in that list invoke laika themselves — it has to exist before they run.

What gets generated

File Platform How you run it
laika all php laika help — or ./laika help on Linux/macOS

One file, the same on every platform. It is a thin proxy into vendor/laikait/laika-cli, so it always matches the version this project has installed. It is rewritten only when its content actually changes, and regenerates if you delete it.

Windows: run it as php laika ..., not a bare laika .... There is deliberately no laika.bat shim — cmd and PowerShell resolve commands through PATHEXT and will never execute an extensionless file. A laika.bat left over from an earlier version is deleted on the next composer install. If you want a bare laika command on Windows, use the global install below.

Versions before 3.0 shipped this package as a Composer plugin, which required an allow-plugins entry in every consuming project. That is no longer needed — you can drop "laikait/laika-cli": true from your config.allow-plugins.

Global install

Prefer a single laika command available in every project? Install it globally instead:

Make sure Composer's global vendor/bin directory is on your PATH (see the Composer docs), then run laika from inside any Laika project directory (or a sub-directory of one):

The global binary detects the current project by walking up from your working directory until it finds lf-boot/app.php — no php prefix needed.

This is the one case where a bare laika does work on Windows: the shims in Composer's global vendor/bin are built by Composer itself, not by this package, and it still writes a .bat there.

Usage


All versions of laika-cli with dependencies

PHP Build Version
Package Version
Requires php Version >=8.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 laikait/laika-cli contains the following files

Loading the files please wait ...