Download the PHP package edsononildo/orm without Composer
On this page you can find all versions of the php package edsononildo/orm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download edsononildo/orm
More information about edsononildo/orm
Files in edsononildo/orm
Package orm
Short Description Implementação do padrão de projeto active record em PHP
License MIT
Homepage https://github.com/EdsonOnildoJR/activerecord.php
Informations about the package orm
activerecord.php
Implementação do padrão de projeto active record em PHP
Table of Contents
- Prerequisites
- Supported Databases
- Installation
- Basic CRUD
- Retrieve
- Create
- Update
- Delete
- Contributing
- Security
- Credits
- License
Prerequisites
- PHP 7.1+
- PDO driver for your respective database
Supported Databases
- MySQL
- SQLite
- PostgreSQL
- Oracle
Installation
Require via composer
Create an index.php file and require the autoload.php of composer
After that, let's to do all necessary configuration
Basic CRUD
Retrieve
These are your basic methods to find and retrieve records from your database:
Create
Here we create a new post by instantiating a new object and then invoking the save() method:
Update
To update you would just need to find a record first and then change one of its attributes.
Delete
Deleting a record will not destroy the object. This means that it will call sql to delete the record in your database but you can still use the object if you need to.
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
Contributing
Please see CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Edson Onildo
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of orm with dependencies
ext-pdo Version *