{"repo":"davebarnwell/model-orm-php","free":true,"listed":false,"github":"https://github.com/davebarnwell/model-orm-php","clone":"git clone https://github.com/davebarnwell/model-orm-php.git","description":"PHP ORM Model class which provides table column/property mapping, CRUD, and dynamic finders/counters on a database table using PDO","language":"PHP","stars":22,"topics":["database-table","php-model","php","dynamic-finders","pdo","crud","mysql","orm","ormlite"],"license":"MIT","category":"databases-storage","readme_excerpt":"Model ORM for PHP ================= Freshsauce\\Model\\Model gives you the sweet spot between raw PDO and a full framework ORM: fast setup, familiar model-style workflows, and complete freedom to drop to SQL whenever you want. If you want database-backed PHP models without pulling in a heavyweight stack, this library is built for that job. When it fits Use this library when you want: - Active-record style models without adopting a full framework ORM - Direct access to SQL and PDO when convenience helpers stop helping - A small API surface that stays easy to understand in legacy or custom PHP apps Skip it if you need relationship graphs, migrations, or a chainable query builder comparable to framework ORMs. Why teams pick it - Lightweight by design: point a model at a table and start reading and writing records. - PDO-first: keep the convenience methods, keep full access to SQL, keep control. - Framework-agnostic: use it in custom apps, legacy codebases, small services, or greenfield projects. - Productive defaults: CRUD helpers, dynamic finders, counters, hydration, and timestamp handling are ready out of the box. - Practical opt-ins: transaction helpers, configurable timestamp columns, and attribute casting stay lightweight but cover common app needs. - Portable across databases: exercised against MySQL/MariaDB, PostgreSQL, and SQLite. Install in minutes Requirements: - PHP 8.3+ - ext-pdo - A PDO driver such as pdo mysql or pdo pgsql Quick start Create a table. This example us","default_branch":null,"files":null,"tree":[],"storefront":"/r/davebarnwell","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/davebarnwell/model-orm-php/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."}