What is Idiorm?
masterIdiorm is a lightweight, nearly-zero-configuration object-relational mapper (ORM) and fluent query builder for PHP 5 and above. It is built on top of PDO and uses prepared statements throughout to protect against SQL injection.
Key characteristics:
- No boilerplate: Requires no model classes, XML configuration, or code generation; it works out of the box with just a connection string.
- Database Agnostic: Supports SQLite, MySQL, Firebird, and PostgreSQL.
- Fluent Interface: Supports method chaining for filtering and applying actions to multiple results.
- Minimal footprint: Consists of one main class,
ORM, with other classes prefixed withIdiormto minimize global namespace pollution. - PSR-1 Compliant: In PHP 5.3+, you can use camelCase instead of underscores (e.g.,
findMany()instead offind_many()).
Note: Idiorm is currently in maintenance only mode. It receives bug fixes and security patches, but no new features will be added. For new projects, the maintainer recommends using the Eloquent database library from Laravel.