2017 © Pedro Peláez
 

library potato-orm

A simple PHP ORM.

image

opeyemiabiodun/potato-orm

A simple PHP ORM.

  • Monday, January 11, 2016
  • by andela-oogunjimi
  • Repository
  • 1 Watchers
  • 2 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Potato-ORM

Latest Version on Packagist ![Software License][ico-license] Build Status Code Coverage Scrutinizer Code Quality ![Total Downloads][ico-downloads], (*1)

CheckPoint 2 - Potato ORM

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)

Install

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();

Change log

Please see CHANGELOG for more information what has changed recently., (*5)

Testing

bash $ composer test, (*6)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*7)

Security

If you discover any security related issues, please email opeyemi.ogunjimi@andela.com instead of using the issue tracker., (*8)

Credits

License

The MIT License (MIT). Please see License File for more information., (*9)

The Versions

11/01 2016

dev-master

9999999-dev https://github.com/andela-oogunjimi/Potato-ORM

A simple PHP ORM.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Opeyemi Abiodun Ogunjimi

potato-orm opeyemiabiodun