rest-full / orm
Assemble and run the predefined queries.
1.0.0
2024-01-27 08:31 UTC
Requires
- php: >=7.3
- ext-pdo: *
- monolog/monolog: 1.*
- rest-full/container: 1.*
- rest-full/error: 1.*
- rest-full/event: 1.*
- rest-full/filesystem: 1.*
- rest-full/http: 1.*
This package is auto-updated.
Last update: 2024-04-27 12:38:26 UTC
README
About Rest-full ORM
Rest-full ORM is a small part of the Rest-Full framework.
You can find the application at: rest-full/app and you can also see the framework skeleton at: rest-full/rest-full.
Installation
- Download Composer or update
composer self-update
. - Run
php composer.phar require rest-full/orm
or composer installed globallycompser require rest-full/orm
or composer.json"rest-full/orm": "1.0.0"
and install or update.
Usage
This ORM
<?php
require_once __DIR__ . '/../vendor/autoload.php';
require_once __DIR__ . '/../config/pathServer.php';
use App\AppModel;
use Restfull\Core\Aplication;
$app = new Aplication();
$app->bootstrapDatabase(
'default',
[
'drive' => 'mysql',
'username' => 'sws',
'password' => 'SWS25!!89',
'host' => 'localhost',
'dbname' => 'miguelcoutoonl'
]
);
$table = new AppModel();
$exeute = $table->tableRegistry(
['main' => [['table' => 'usuarios']], 'join' => [['usuarios' => [['table' => []]]]]]
)->dataQuery(['fields' => ['usuarios']])->find('first')->getIterator()->itens();
print_r($exeute);
License
The rest-full framework is open-sourced software licensed under the MIT license.