Skip to content

ORM Library for PHP and OCI8 library to convert from procedural programming to object oriented programming.

License

Notifications You must be signed in to change notification settings

adrianharabula/super-simple-oci-orm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Super Simple PHP OCI ORM

ORM Library for PHP and OCI8 library to convert from procedural programming to object oriented programming

Instructions

  1. Put this folder in www folder
  2. Copy Config.php.example to Config.php and complete with correct credentials:
    class Config {
        static $DB_HOST = 'localhost';
        static $DB_PORT = '1521';
        static $DB_USER = 'system';
        static $DB_PASS = 'oracle';
        static $DB_SID  = 'xe';
    }
  3. Run index.php
  4. Sample ORM query with this library
    $db = new Database\Database;
    $user_id = 1;
    $result = $db->query("SELECT * FROM users WHERE id = :p1")
                 ->bind(":p1", $user_id)
                 ->execute()
                 ->result();
    print_r($result);

About

ORM Library for PHP and OCI8 library to convert from procedural programming to object oriented programming.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages