Download the PHP package sirix/cycle-orm-factory without Composer

On this page you can find all versions of the php package sirix/cycle-orm-factory. 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 cycle-orm-factory

Mezzio Cycle ORM Factory

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

Migration guides:

Factories for integrating Cycle ORM into Mezzio with a runtime-focused schema pipeline.

Installation

Optional packages:

Configuration

Create config/autoload/cycle-orm.global.php:

Runtime schema contract (v3)

Runtime behavior is controlled by cycle.schema.cache.enabled.

When true:

When false:

Recommended production setup:

Additional schema generators

cycle.generators supports:

Invalid entries throw Cycle\ORM\Exception\ConfigException.

Collection factories

cycle.collections configures Cycle ORM collection factories for *Many relations. It works with the built-in Cycle factories and with custom implementations of Cycle\ORM\Collection\CollectionFactoryInterface.

Factory definitions support:

Custom collection factories may use the same short form as built-in factories:

With the short form, the package registers the factory by alias and lets Cycle infer the collection interface from CustomCollectionFactory::getInterface(). If the factory class has constructor dependencies, register it as a container service and use that service ID instead of the class name.

Use the extended definition only when you need to explicitly provide a base collection class or interface for collection: CustomCollection::class matching:

The factory value in the extended definition accepts the same inputs as the short form: a container service ID, a factory FQCN with a zero-arg constructor, or a direct factory instance.

For ManyToMany pivot entity access specifically, use a collection factory that supports Cycle pivoted collections. Cycle's Doctrine collection factory provides that support, so install doctrine/collections, register doctrine, and set the relation collection to doctrine.

Manual mapping key compatibility

Manual schema definitions are configured with cycle.schema.manual_mapping_schema_definitions.

Services

Aliases provided by ConfigProvider:

Migration aliases provided only when cycle/migrations is installed:

Repository services

RepositoryFactory exposes a custom Cycle repository as a container service without injecting ORMInterface into application code. Assign the repository class to an entity in the Cycle schema, register it with the factory, and alias your application interface to it:

The factory resolves the repository class from the compiled Cycle schema and asks Cycle for the corresponding entity role. It supports custom read repositories and repositories that add persist methods through EntityManager.

See the Repository Services guide for read and persist repository examples, manual schema configuration, string roles, aliases, and schema-cache refresh requirements.

CLI commands

Commands are registered only when symfony/console is installed.

cycle:schema:* commands:

Other commands:

Migration/seed command availability:

Create migration notes

cycle:migration:create supports --database (-b). Generated filename includes database alias:

CLI usage examples

With laminas-cli:

With standalone Symfony Console (manual command wiring in your app):

Performance note

Compiled schema is stored as plain PHP and loaded by require, which works well with OPcache and avoids PSR-6 serialization overhead in runtime hot paths.

More


All versions of cycle-orm-factory with dependencies

PHP Build Version
Package Version
Requires php Version ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0
cycle/annotated Version ^4.4
cycle/database Version ^2.15
cycle/orm Version ^2.12.3
psr/container Version ^1.0 || ^2.0
sirix/container-resolver Version ^0.2 || ^1.0
spiral/tokenizer Version ^2.14 || ^3.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 sirix/cycle-orm-factory contains the following files

Loading the files please wait ...