Download the PHP package m.rahimi/astro-orm without Composer
On this page you can find all versions of the php package m.rahimi/astro-orm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download m.rahimi/astro-orm
More information about m.rahimi/astro-orm
Files in m.rahimi/astro-orm
Package astro-orm
Short Description Simple Object Relational Mapper for manipulate data with fluent interface.
License MIT
Homepage https://github.com/Mohammadreza-73/Astro-ORM
Informations about the package astro-orm

object-relational mapper (ORM), lets you query and manipulate data with fluent api from a database using an object-oriented paradigm.
📌 Requirements
- PHP >= 7.2
- PDO Extension
⬇️ Installation
You can install the package via the composer:
👀 How its works
1. Setup your database configs
Fill the file with your database configuration.
NOTE: You Can use any database extensions, like: PDO, Mysqli, Sqlite,etc. Just define its array key.
2. Implements Connection Contract
In this project i use PDO driver. so i create Database/PDODatabaseConnection.php
file and implements contracts methods.
3. Use Query Builder
Now get database configs, create new instanse of PDODatabaseConnection
and connect to DB.
Insert
Insert Data: return last insert id
update
Update Data: return true if successful
Multiple where
Multiple orWhere
Delete
Delete Data: return true if successful
Fetch
Fetch first row
Fetch first row or throw exception on failure
Find ID
Find ID or throw exception on failure
Find with value
Get specific rows
Sort rows
Testing
Run the tests with:
Contributing
Contributions are welcome! To contribute, please familiarize yourself with CONTRIBUTE.md
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.