Download the PHP package monkeyscloud/monkeyslegion-cli without Composer

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

MonkeysLegion CLI v2

Attribute-driven, PHP 8.4+ command-line toolkit for the MonkeysLegion framework.

PHP Version


Table of Contents


Installation

Requirements: PHP 8.4+, nikic/php-parser (for entity AST manipulation).


Quick Start


Architecture

v2 Design Principles

  1. Attribute-driven — Commands register via #[Command('name', 'description')] attributes
  2. PHP 8.4+ — Leverages asymmetric visibility (public private(set)), property hooks, readonly classes
  3. Zero boilerplate — Entity properties are public (no getter/setter generation); only collection relations get add/remove/get helpers
  4. Dual mode — Every generator supports both interactive wizard and --flags non-interactive usage
  5. PSR-4 split — Each enum/class lives in its own file for proper autoloading

Directory Structure


Command Reference

General

Command Description
list / help Display all available commands
about Framework, PHP, and environment information
down Put application in maintenance mode
up Bring application out of maintenance mode
tinker Interactive REPL with DI container
optimize Run config:cache + route:cache + clear old caches

Database (db:)

Command Description
db:create Create the database schema from .env credentials
db:seed Run database seeders (optionally specify one)
db:wipe Drop all tables in the database

Cache (cache: / config:)

Command Description
cache:clear Clear the compiled view cache
config:cache Compile config files into a cached file

Environment (env:)

Command Description
env:sync Compare .env with .env.example for missing keys
key:generate Generate a new APP_KEY in your .env file

Migration (migrate:)

Command Aliases Description
migrate m Run pending database migrations
migrate:rollback m:rb Rollback the last migration batch
migrate:fresh — Drop all tables and re-run all migrations
migrate:refresh — Rollback all and re-run all migrations
migrate:status m:st Show ran and pending migrations
make:migration — Generate a blank migration file
schema:update — Compare entities → database and apply changes

Maker (make:)

Command Description
make:entity Generate or update an Entity class with fields & relationships
make:controller Generate a new Controller class
make:middleware Generate a PSR-15 middleware class
make:service Generate a service class
make:dto Generate a readonly DTO class
make:enum Generate a backed enum class
make:event Generate a domain event class
make:listener Generate an event listener class
make:job Generate a queue job class
make:resource Generate a JSON:API resource class
make:factory Generate an entity factory for testing
make:observer Generate an entity lifecycle observer
make:policy Generate an authorization policy class
make:seeder Generate a database seeder class
make:test Generate a PHPUnit test class
make:command Generate a custom CLI command

Routing (route:)

Command Description
route:list List all registered routes (filter with --method, --path)
route:cache Cache all routes for production

API

Command Description
openapi:export Dump OpenAPI spec to stdout or a file

Entity Generator

Interactive Mode

Launches a wizard that lets you:

  1. Add fields — Choose from 36 database types with nullable support
  2. Add relationships — OneToOne, OneToMany, ManyToOne, ManyToMany with automatic inverse generation
  3. Save — Writes the entity using PhpParser AST manipulation (non-destructive)

Non-Interactive Mode

Parses field:type[:nullable] triplets and applies them in a single pass. Ideal for CI pipelines.

Generated Entity (v2 Style)

Key v2 differences from v1:


Migration System

Built on top of monkeyscloud/monkeyslegion-migration v1.x:


Maker Commands

All maker commands follow a consistent pattern:

Generated stubs use v2 conventions:


Writing Custom Commands

1. Create the Command

2. Auto-Discovery

Commands in app/Command/ or app/Cli/Command/ are auto-discovered. No registration needed.

3. Available Helpers


Console Output API

CliLineBuilder

Build multi-colored, multi-styled output lines:

Colors: black, red, green, yellow, blue, magenta, cyan, white, gray, bright_* Styles: bold, dim, italic, underline, blink, reverse, hidden, strikethrough

TableRenderer

UTF-8 box-drawing tables with column alignment:

ProgressBar & Spinner


Testing

Current stats: 152 tests, 299 assertions across 12 test files.

Test Coverage

Component Tests Focus
ClassManipulatorTest 18 AST manipulation, field/relation generation
CommandTest 30 argument(), option(), hasOption(), output, safeQuery
EntityConfigTest 12 PhpTypeMap, RelationKeywordMap, RelationInverseMap
FieldTypeConfigTest 7 Field type parsing and validation
CliLineBuilderTest 15 Multi-colored output building
CommandAttributeTest 8 #[Command] attribute properties
ProgressBarTest 7 Progress rendering
TableRendererTest 20 Table formatting and alignment
SpinnerTest 8 Spinner animation
MakerHelpersTest 10 toPascalCase, ensureSuffix, etc.
IdentifierTest 9 PHP identifier validation
Additional 8 Edge cases and integration

Contributing

  1. Fork and create a feature branch from 2.x-dev
  2. Follow MonkeysLegion v2 coding standards (PSR-12 + declare(strict_types=1))
  3. Write tests for new functionality
  4. Run vendor/bin/phpunit and ensure all tests pass
  5. Submit a PR against 2.x-dev

License

MIT © 2026 MonkeysCloud Team


All versions of monkeyslegion-cli with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
ext-ctype Version *
ext-readline Version *
ext-pdo Version *
nikic/php-parser Version ^5.5
doctrine/inflector Version ^2.0
monkeyscloud/monkeyslegion-core Version ^2.0
monkeyscloud/monkeyslegion-di Version ^2.0
monkeyscloud/monkeyslegion-entity Version ^2.0
monkeyscloud/monkeyslegion-database Version ^2.0
monkeyscloud/monkeyslegion-migration Version ^2.0
monkeyscloud/monkeyslegion-openapi Version ^1.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 monkeyscloud/monkeyslegion-cli contains the following files

Loading the files please wait ...