Skip to content

jp7io/interadmin-orm

Repository files navigation

InterAdmin - ORM

Codeship Status for jp7internet/interadmin-orm Test Coverage Code Climate Issue Count

Description

InterAdmin ORM. Before version 3.2 it was a part of jp7internet/classes.

The API is heavily inspired by Laravel Eloquent, most methods and arguments are exactly the same.

Docs

Sample code

$usedCeltas = Carro::where('modelo', 'Celta')
    ->where('ano', '<',  date('Y'))
    ->orderBy('ano', 'desc')
    ->orderBy('preco') // newer and cheaper first
    ->take(20) // page with 20 itens
    ->get(); // get all cars, first() would only bring the first car

Docs for v2.* versions

Tests

cp .env.example .env.testing
php vendor/bin/codecept run --coverage

About

InterAdmin ORM - Query data from InterAdmin CMS using Eloquent syntax

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages