Download the PHP package gemvc/cli-base without Composer

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

gemvc/cli-base

Internal package for the GEMVC framework. It provides shared CLI primitives: typed terminal colors (CliColor), line/box drawing (CliLine), command base (Command), filesystem helpers (FileSystemManager), boxed output (CliBoxShow), codegen abstracts, and install smoke check (InstallControl).


For AI coding assistants (mandatory)

Before you modify code, tests, composer.json, or documentation in this repository, read AI-Assistant.md from top to bottom. That file is the canonical source for:

If README.md and AI-Assistant.md disagree, treat AI-Assistant.md as authoritative.


GEMVC architecture (short)

GEMVC is a PHP REST API framework with a fixed four-layer flow (each layer has a clear job; do not skip layers):

Layer Typical folder Role
API app/api/ HTTP entry, schema validation, auth checks; classes extend ApiService.
Controller app/controller/ Orchestrates use cases; calls models.
Model app/model/ Business rules, validation, transformations.
Table app/table/ Database access via the framework Table / query builder.

HTTP routing: there are no hand-written route files. URLs map by convention, e.g. /api/{ServiceName}/{methodName} → class in app/api/ and method on that class (see GEMVC docs / main repo .cursorrules).


GEMVC CLI commands (short)

The gemvc executable ships with gemvc/library (e.g. vendor/bin/gemvc). It loads Composer’s autoloader, parses argv[1] as the command, and maps names like create:service to a PascalCase class name (CreateService) by splitting on : and uppercasing each segment.

Search order (simplified):

  1. Framework commands — namespace Gemvc\CLI\Commands\, PHP files under vendor/gemvc/library/src/CLI/commands/ (or the monorepo src/CLI/commands/ when developing the framework).
  2. Project commands — namespace App\CLI\Commands\, files under app/CLI/commands/ in the application repo (your composer.json must autoload that namespace).

The dispatcher does new $commandClass($remainingArgv) then execute(). Commands are plain PHP classes; gemvc/cli-base supplies shared bases (Command, FileSystemManager, CliBoxShow, generator abstracts) so framework and custom commands share the same terminal and filesystem behavior. Colors use the CliColor enum (not string color names).

Where this package fits: gemvc/cli-base is the small dependency with those bases; gemvc/library holds bin/gemvc, concrete Gemvc\CLI\Commands\* implementations, init flows, and HTTP/runtime code.


README vs AI-Assistant.md (where to put detail)

Doc Purpose
README.md Short orientation: what GEMVC is, how CLI discovery works, install pointer, mandatory link for AIs to AI-Assistant.md.
AI-Assistant.md Full API tables, template rules, Composer boundaries, testing, distribution, and deeper notes on extending GEMVC and designing compatible CLI packages (including limits of the stock gemvc binary).

Put long architecture and “how to build another CLI package” guidance in AI-Assistant.md so one file stays authoritative; keep README.md skimmable.


Human summary

Install with the main framework:

(gemvc/library 5.7+ declares a dependency on gemvc/cli-base.)


Development (this repo)

Coverage is configured in phpunit.xml (<source> → src/). See AI-Assistant.md for the full API, template rules, and architecture boundaries.


All versions of cli-base with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
composer-runtime-api Version ^2.2
ext-mbstring Version *
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 gemvc/cli-base contains the following files

Loading the files please wait ...