Cycle ORM is a modern data mapper for PHP 8.2+, designed to be intuitive and flexible. It offers a high-performance database access layer that simplifies working with databases in PHP applications.
Join our Discord server to connect with other Cycle ORM users and contributors!
- ORM: Core of our project — Data mapper layer.
- Database: Database abstraction layer with query builders and schema introspection for MySQL, PostgreSQL, SQL Server and SQLite.
- Transaction: Runs raw database queries and a scoped Entity Manager inside one database transaction.
- Annotated: Defines entities, columns and relations with PHP attributes.
- Schema Builder: Compiles entity declarations into the ORM schema and syncs database tables.
- Schema Provider: Builds the ORM schema from different sources, with caching.
- Schema Renderer: Renders ORM schemas into various formats, including PHP code, console output and Mermaid.
- Migrations: Migration runner and repository for Cycle Database.
- Schema Migrations Generator: Generates migration files from the difference between the ORM schema and the database.
- Entity Behavior: Entity behaviors like auto timestamps, soft deletes, optimistic locking, hooks and event listeners.
- Entity Behavior UUID: UUID primary keys and columns.
- Entity Behavior Identifier:
ramsey/identifiertypes as entity columns. - Active Record: The Active Record pattern on top of Cycle ORM.
- ORM Promise Mapper: A mapper that loads relations through promise objects instead of proxies.
- Testing: Shared Testo test harness for Cycle ORM packages: per-driver suites and test databases in Docker.
- Skills: Agent skills that teach AI coding assistants to work with Cycle ORM and its attributes.
- Documentation: Official documentation, built from the docs repository.
- Cycle Blog: Stay updated with the latest news and insights directly from our team.
Cycle ORM can be integrated seamlessly with various PHP frameworks, enhancing productivity across different development environments:
- Spiral: Official ORM, supported by
spiral/cycle-bridge. Documentation - Yii 3: Supported by
yiisoft/yii-cycle, enriching Yii framework applications. Documentation - Laravel: Integrate using
wayofdev/laravel-cycle-orm-adapterfor a robust DataMapper ORM solution. Documentation
- RoadRunner: High-performance PHP server and process manager.
- Spiral Framework: Secure and modular PHP framework.
Consider supporting us by becoming a sponsor on GitHub: Become a Sponsor
We welcome contributions of all forms, from code improvements to documentation. Dive into our Contributing Guidelines for more details on how you can contribute.