Is a tool created to retrieve data to your project from database. This is like any other ORM.
- Create simple classes using annotations
- Load data with your classes
- Use semantic filters
- Get JSON without NoSQL
require: {
"evaldobarbosa/charon": "0.5.1"
}
$conn = new PDO('your_dsn');
$dl = new Charon\Loader( $conn );
$dl->load('YourNamespace\Post')
->join('tags->tag')
->join('author')
->equal('post->id',999);
Using PHP Objects based on classes that you wrote
$rs = $dl->get();
Using json
$rs = $dl->get(true);