PivotPHP Cycle ORM v1.0.0 Release Notes
🗄️ PivotPHP Cycle ORM v1.0.0
Overview
First stable release of PivotPHP Cycle ORM integration - a robust, type-safe ORM extension for PivotPHP Core.
Key Features
- Seamless Integration: Works perfectly with PivotPHP Core
- Type Safety: Full PHPStan Level 9 compliance
- Repository Pattern: Built-in repository pattern support
- Migration Support: Database migrations out of the box
- Performance Monitoring: Query logging and profiling
- Middleware Integration: Transaction and health check middleware
Installation
composer require pivotphp/cycle-ormQuick Start
<?php
use PivotPHP\Core\Core\Application;
use PivotPHP\CycleORM\CycleServiceProvider;
use PivotPHP\CycleORM\Middleware\CycleMiddleware;
$app = new Application();
// Register Cycle ORM
$app->register(new CycleServiceProvider($app));
$app->use(new CycleMiddleware($app));
// Use in routes
$app->get('/users', function($req, $res) {
$users = $req->orm->getRepository(User::class)->findAll();
$res->json($users);
});
$app->run();📦 Package Information
PivotPHP Core
- Package: pivotphp/core
- Version: 1.0.0
- License: MIT
- PHP: ^8.1
- Repository: https://github.com/CAFernandes/pivotphp-core
PivotPHP Cycle ORM
- Package: pivotphp/cycle-orm
- Version: 1.0.0
- License: MIT
- PHP: ^8.1
- Repository: https://github.com/CAFernandes/pivotphp-cycle-orm