Download the PHP package danielefavi/slim-orm without Composer
On this page you can find all versions of the php package danielefavi/slim-orm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download danielefavi/slim-orm
More information about danielefavi/slim-orm
Files in danielefavi/slim-orm
Download danielefavi/slim-orm
More information about danielefavi/slim-orm
Files in danielefavi/slim-orm
Vendor danielefavi
Package slim-orm
Short Description Lightweight ORM with an API interface similar to Laravel's ORM Eloquent.
License MIT
Package slim-orm
Short Description Lightweight ORM with an API interface similar to Laravel's ORM Eloquent.
License MIT
Please rate this library. Is it a good library?
Informations about the package slim-orm
Slim ORM - A lightweight ORM
Slim ORM is a lightweight PHP ORM with an API interface similar to the Laravel's ORM (Eloquent).
Please note this ORM has very basic query functionalities; for example it does not support relationships (like belongsToMany
or belogsTo
).
Please check some examples below.
Installation
Installation via composer
Setup
Setting up the DB object with MySQL:
Setting up the DB object with SQLite:
Usage
Query Examples
Simple query example
Pagination
Return the paginated result (10 items per page).
Full Query example
Model
Defining a model
The model class must:
- Extend the class
DfTools\SlimOrm\Model
. - Specify the database table the model represents, in the protected attribute
$table
. - Specify the primary key of the the database table of the model.
Extra
Unittest
For more examples please check the examples
folder.
All versions of slim-orm with dependencies
PHP Build Version
Package Version
No informations.
The package danielefavi/slim-orm contains the following files
Loading the files please wait ....