dev-master
9999999-dev https://github.com/andela-oogunjimi/Potato-ORMA simple PHP ORM.
MIT
The Requires
- php >=5.6.0
- vlucas/phpdotenv 2.*
- phpunit/dbunit ^2.0
The Development Requires
by Opeyemi Abiodun Ogunjimi
potato-orm opeyemiabiodun
Wallogit.com
2017 © Pedro Peláez
A simple PHP ORM.
![Software License][ico-license]
![Total Downloads][ico-downloads], (*1)
A Simple PHP ORM (Object Relational Mapper). PSR-2 coding standard was adopted in writing the package. The PSR-4 autoloading convention was also adopted., (*2)
Via Composer, (*3)
``` bash $ composer require opeyemiabiodun/potato-orm, (*4)
## Usage ``` php #Create a record in the database $user = new User(); $user->name = "Tayo"; $user->address = "54, Kilani street, Akarigbo, Jiyanland."; $user->phone = "07834531265"; $user->save(); #Find a record from the database $user = User::find($id); #Update a record $user = User::find($id); $user->address = "No. 1 Update grove, off The Past Street, Now Savedland."; $user->save(); #Delete a record -- returns a boolean $result = User::destroy($id): #Find all users in the database - Returns object array $users = User::getAll();
Please see CHANGELOG for more information what has changed recently., (*5)
bash
$ composer test, (*6)
Please see CONTRIBUTING and CONDUCT for details., (*7)
If you discover any security related issues, please email opeyemi.ogunjimi@andela.com instead of using the issue tracker., (*8)
The MIT License (MIT). Please see License File for more information., (*9)
A simple PHP ORM.
MIT
potato-orm opeyemiabiodun