jamm / datamapper
Map objects to storage (MySQL or Redis), without relations mapping
dev-master
2013-03-23 18:38 UTC
Requires
- php: >=5.4.0
Suggests
- jamm/memory: allows to use Redis gateway
- jamm/tester: run unit-tests
This package is not auto-updated.
Last update: 2024-12-21 14:07:09 UTC
README
It's DataMapper to map objects into storages: MySQL or Redis.
Main classes are:
Mapper.php - basic mapper, which can use:
Redis\Gateway.php - gateway to Redis storage
or
MySQL\Gateway.php - gateway to MySQL
To understand, how it works, read about patterns: Data Mapper and Table Data Gateway
Gateways uses MetaTable to map schema of your table, this schema can be fetched from existing database, or imported by array, or constructed directly in code.