Download the PHP package hydrakit/console without Composer

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

Hydra Console

The framework's batteries-included console commands — the generic verbs every Hydra app needs, lifted out of the app skeleton so two projects don't carry two copies. This package ships the commands; the app owns its bin/console entrypoint, wires them to its composition root, and adds its own app-specific generators.

There is no ServiceProvider and no seam to register. A command is a plain Symfony\Component\Console\Command\Command; the app constructs each one with the dependencies it needs and hands it to a Symfony\Component\Console\Application. The package exists to be new-ed, not bound.

What ships here

Command Class Needs
key:generate KeyGenerateCommand a path to .env
make:migration MakeMigrationCommand a migrations directory
route:cache RouteCacheCommand Hydra\Http\RouteCache + a controller list
route:cache:clear RouteCacheClearCommand Hydra\Http\RouteCache
migrate:run MigrateRunCommand Hydra\Database\MigrationRunner
migrate:fresh MigrateFreshCommand a MigrationRunner + the debug flag
migrate:status MigrateStatusCommand a MigrationRunner

Every dependency is a constructor argument — a path, a list, an already-built collaborator. Nothing is resolved from a container in here, so the same command is trivially testable against a temp file or in-memory sqlite.

The MakeClassCommand seam

MakeClassCommand is the abstract base the class-emitting generators share. It owns the mechanics — turn a loose name into a PascalCase class (appending a fixed suffix if missing), refuse to clobber an existing file without --force, write the rendered stub. Subclasses supply only the policy: the target directory, the suffix, and the file body.

The app's own generators live in the app, because their stubs are app-namespaced (a make:controller emits into App\Controllers). They extend this base:

Wiring it up

The app's bin/console builds the composition root and constructs commands from it. DB-free commands are added eagerly; the migrate:* commands are loaded lazily through a FactoryCommandLoader so the database is only touched when one of them actually runs:


All versions of console with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
symfony/console Version ^7.0
hydrakit/http Version ^0.2
hydrakit/database Version ^0.2
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 hydrakit/console contains the following files

Loading the files please wait ...