Download the PHP package nrawe/wabi-orm without Composer
On this page you can find all versions of the php package nrawe/wabi-orm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nrawe/wabi-orm
More information about nrawe/wabi-orm
Files in nrawe/wabi-orm
Package wabi-orm
Short Description A minimalist, (near) zero-config object-relational mapper
License MIT
Informations about the package wabi-orm
WabiORM
WabiORM is a minimalist, (near) zero-config object-relational mapper.
Rationale
"Wabi" is a term borrowed from Japanese asethetics which loosely translates as "deliberately simple in daily living". This is something I miss when working with databases in PHP.
Don't get me wrong, there are some great libraries like Doctrine and Eloquent written to solve this problem and all credit to their authors for the fantastic work they've put in.
However, in probably 80% of what I want to do, they're less simple than I'd like. Additionally, from working with more functional programming ideas in the React/JavaScript world, I find myself wanting some of those characteristics on the server.
Lastly, I caught the train during the MicroPHP years and still look back at that period fondly. The desire for minimalism and focus on the 80% requirement stands in direct contrast to the monoliths, as good as they are, which surround us today.
In all, this is my attempt to find joy in database usage again, and maybe it will bring that to you, too. Or not ¯_(ツ)_/¯
@Glance
Features
- PDO connection middleware
- Works with plain classes
- Simple, powerful query templates
Install
Installation is handled via Composer:
Test
The library ships with a test suite, see specs, which can be run by:
Documentation
This section documents the advanced usage.
- Using connections
- Working with models
- Working with model relationships
- Writing queries with
q()
Roadmap
See ROADMAP.md for details of the planned work.
License
MIT.