Download the PHP package spatial/cli without Composer

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

Spatial CLI

Development tools for Spatial Framework - code generators, migrations, and development utilities.

PHP Version

Installation

Commands (21)

Generators (13)

Command Description
make:controller Controller with Area + CQRS
make:command CQRS command + handler
make:query CQRS query + handler
make:module API module structure
make:dto DTO with validation
make:entity Doctrine entity
make:service Infrastructure service
make:middleware PSR-15 middleware
make:trait Domain DB trait
make:event Domain event
make:listener Event listener
make:seeder Database seeder
make:job Background job

Database (4)

Command Description
migrate:create Create migration
migrate:run Run migrations
migrate:status Migration status
db:seed Run seeders

Quality (2)

Command Description
lint PSR-12 code style
analyze PHPStan analysis

Build (2)

Command Description
deploy:build Package for production
openapi:generate Generate OpenAPI spec

Usage

Dry-Run Mode

Preview generated code without creating files:

Output shows:

Smart Error Messages

The CLI provides contextual help when errors occur:

Typo Detection:

Missing Parameters:

Optional Flags

All generators support optional flags for fine-grained control over generated code:

Common Flags

Generator-Specific Flags

Configuration

Create a .spatial.yml file in your project root to define default generator settings and avoid repetitive flag usage.

Example Configuration

Priority System

Configuration values are resolved in this order (highest to lowest):

  1. CLI Flags - Explicit command-line arguments
  2. Generator Overrides - Command-specific config (make:query, make:command, etc.)
  3. Global Defaults - Project-wide defaults
  4. Hardcoded Defaults - Built-in framework defaults

Usage Examples

With config file:

This command:

Automatically includes logging (from config), equivalent to:

Override config with CLI:

See .spatial.yml.example for a complete configuration template.

Package Separation

This package contains development tools only.

Package Commands Install
spatial/core 5 runtime (route:, cache:, queue:work) require
spatial/cli 21 development require-dev

License

MIT - Created by Kofi Owusu-Afriyie


All versions of cli with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
spatial/core Version ^4.0
symfony/yaml Version ^6.0|^7.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 spatial/cli contains the following files

Loading the files please wait ...