Skip to content

PivotPHP Cycle ORM v1.0.0 Release Notes

Choose a tag to compare

@CAFernandes CAFernandes released this 07 Jul 20:31
· 11 commits to main since this release

🗄️ 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-orm

Quick 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

PivotPHP Cycle ORM