Search by

jengo / schema

gilads-otiannoh254

A schema package for CodeIgniter 4 applications.

v1.0.23 2026-08-19 09:10 UTC

README

Declarative schema-driven querying, relationship derivation, entity hydration, infinite-scrolling cursor pagination, and automated TypeScript definitions generation for CodeIgniter 4 and the Jengo Framework.

Documentation: https://lipex-org.github.io/jengophp.com/packages/schema

Installation

composer require jengo/schema
php spark jengo:schema setup

Quick Start

use App\Schemas\OrderSchema;
use function Jengo\Schema\query;

// Query with automatic relationship derivation and pagination
$result = query(OrderSchema::class)
    ->where('status', 'completed')
    ->derive(['user', 'items'])
    ->sort('created_at', 'DESC')
    ->paginate(page: 1, limit: 15)
    ->get();

$orders = $result->data;

Documentation

For full guides on PHP 8 schema attributes, relationship derivation, cursor pagination, virtual schemas, Open mode, and TypeScript generator options, visit https://lipex-org.github.io/jengophp.com/packages/schema.

License

Released under the MIT License.