Download the PHP package componenta/cycle-app without Composer
On this page you can find all versions of the php package componenta/cycle-app. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download componenta/cycle-app
More information about componenta/cycle-app
Files in componenta/cycle-app
Package cycle-app
Short Description Componenta application integration for Cycle ORM discovery and console commands
License MIT
Informations about the package cycle-app
Componenta Cycle App
Application integration for componenta/cycle. This package connects Cycle runtime services to framework discovery, compiled configuration, and console commands.
Use it in a Componenta application that wants framework-managed Cycle discovery. Libraries should depend on componenta/cycle only.
Installation
Register its provider after the Cycle runtime provider:
Related Packages
| Package | Why it matters here |
|---|---|
componenta/cycle |
Owns repositories, data fetchers, filters, typecasts, and runtime factories. |
componenta/class-finder |
Finds entities and embeddables in configured directories. |
componenta/app |
Runs cache compilation and chooses development or production loading. |
cycle/orm |
Consumes the final ORM configuration. |
What It Adds
The package provides app-level integration for:
- entity and embeddable discovery
- locator services backed by the configured class iterator
ClassFinderConfigKey::LISTENERSentries forEntityLocatorandEmbeddingLocator- Cycle-related console commands registered through
Componenta\App\Console\ConfigKey::COMMANDS - cache/compiler integration used by the application build process
Console Commands
When componenta/app-console is installed, this package contributes the database commands below to the shared console command graph. They are registered through configuration, so they are available in production builds without relying on attribute scanning.
| Command | Purpose |
|---|---|
db:create |
Create the configured database when the driver supports it. |
db:generate |
Generate migrations from the current ORM schema diff. |
db:schema |
Generate and cache the Cycle ORM schema. |
db:migrate |
Execute pending migrations. |
db:rollback |
Roll back migrations. |
db:status |
Show migration status. |
db:sync |
Generate and apply migrations, then regenerate ORM schema. |
Development Mode
In development, the application may scan configured source directories and derive Cycle mappings from discovered classes. This keeps module configuration focused on the classes it owns.
Production Mode
In production, the application should use compiled config and generated cache artifacts. It should not scan source directories or rebuild ORM metadata during each request.
Boundaries
This package should not contain persistence behavior that a runtime consumer needs directly. Repositories, data fetchers, filters, typecasts, and runtime factories belong to componenta/cycle.
All versions of cycle-app with dependencies
componenta/app-console Version ^5.0.0
componenta/class-finder Version ^2.1.0
componenta/config Version ^3.0.0
componenta/cycle Version ^1.1.1
componenta/tokenizer Version ^1.0
componenta/var-export Version ^2.0.0
cycle/annotated Version ^4.4
cycle/database Version ^2.11
cycle/migrations Version ^4.2
cycle/orm Version ^2.11
cycle/schema-builder Version ^2.11
cycle/schema-migrations-generator Version ^2.3
psr/container Version ^2.0
symfony/console Version ^7.4 || ^8.0