{"repo":"riverside/php-orm","free":true,"listed":false,"github":"https://github.com/riverside/php-orm","clone":"git clone https://github.com/riverside/php-orm.git","description":":dolphin: PHP micro-ORM and query builder","language":"PHP","stars":11,"topics":["php","orm","pdo","php-pdo","query-builder","micro-orm","mysql","db-wrapper","pdo-mysql","pdo-sqlite"],"license":"MIT","category":"databases-storage","readme_excerpt":"php-orm PHP micro-ORM and query builder. Build GitHub pages Stable License ----- ------------ ------ ------- [![CI][x1]][y1] [![pages-build-deployment][x4]][y4] [![Latest Stable Version][x2]][y2] [![License][x3]][y3] Requirements - PHP = 7.1 - PHP extensions: - PDO ( ext-pdo ) Installation If Composer is not installed on your system yet, you may go ahead and install it using this command line: Next, add the following require entry to the composer.json file in the root of your project. Finally, use Composer to install php-orm and its dependencies: Configuration Include autoload in your project: Configure database credentials by setting up the following environment variables: USERNAME , PASSWORD , DATABASE , HOST , PORT , DRIVER , CHARSET , COLLATION . They must be prefixed with $connection property value, part of your model, in capital letters and underscore. The default value of $connection property is 'default'. For example: Drivers The following drivers are supported: mysql , oci , firebird , pgsql , sqlite , sybase , mssql , dblib , cubrid , 4D . Database Table: users Name Type Collation Attributes Null Extra --- --- --- --- --- --- id int(10) UNSIGNED No AUTO INCREMENT name varchar(255) utf8mb4 general ci Yes email varchar(255) utf8mb4 general ci Yes Models Define your own models: Query Builder - with model: create an instance of a model using the factory method. Then chain multiple methods. The following is example of simple CRUD: - without model: create a new instance o","default_branch":null,"files":null,"tree":[],"storefront":"/r/riverside","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/riverside/php-orm/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}