evaldobarbosa / charon
A little ORM with a simple syntax
Installs: 112
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 2
Open Issues: 0
pkg:composer/evaldobarbosa/charon
Requires
- php: >=5.3
- evaldobarbosa/sanitizer: 0.5.0
This package is not auto-updated.
Last update: 2025-10-21 06:10:14 UTC
README
Is a tool created to retrieve data to your project from database. This is like any other ORM.
With Charon you will:
- Create simple classes using annotations
- Load data with your classes
- Use semantic filters
- Get JSON without NoSQL
Composer:
require: {
"evaldobarbosa/charon": "0.5.1"
}
Usage:
$conn = new PDO('your_dsn');
$dl = new Charon\Loader( $conn );
Filtering post with your tags and related author
$dl->load('YourNamespace\Post')
->join('tags->tag')
->join('author')
->equal('post->id',999);
Choosing output format
Using PHP Objects based on classes that you wrote
$rs = $dl->get();
Using json
$rs = $dl->get(true);