Download the PHP package natilosir/orm without Composer
On this page you can find all versions of the php package natilosir/orm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download natilosir/orm
More information about natilosir/orm
Files in natilosir/orm
Download natilosir/orm
More information about natilosir/orm
Files in natilosir/orm
Please rate this library. Is it a good library?
Informations about the package orm
Eloquent ORM in PHP
This is a simple and elegant implementation of an ORM (Object-Relational Mapping) for PHP, designed to work with relational databases using fluent query building and Eloquent-style syntax.
Requirements
- PHP >= 8.0
- Composer
Installation
You can install this ORM package via Composer:
Alternatively, you can clone the repository directly:
Example
When using the DB class, make sure to include it with use
.
Select
- Select all data with chaining methods
Search
- Search with multiple conditions
Count
- Count users with where condition
orderBy
- Use the orderBy clause to sort users by email in ascending order with a limit
value
- Use the value function to add multiple columns dynamically with automatic numbering for duplicates.
output
Insert array
- Insert : Inserting new data with an array
Insert model
- Insert new data with model instance
Update array
- Update data with an array
Update model
- Update: Updating data with a model instance
createOrFirst
createOrUpdate
Delete
- Delete data
DISTINCT
- Using DISTINCT in SQL
JSON
- JSON
sql
- show sql
output
query
- Run a custom SQL query
Model
-
Configuration The model is configured to use the
users
table by default. You can change this by modifying the$table
property: - Use
All versions of orm with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
The package natilosir/orm contains the following files
Loading the files please wait ....