2017 © Pedro Peláez
 

library charon

A little ORM with a simple syntax

image

evaldobarbosa/charon

A little ORM with a simple syntax

  • Sunday, October 25, 2015
  • by evaldobarbosa
  • Repository
  • 2 Watchers
  • 3 Stars
  • 101 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Charon

Is a tool created to retrieve data to your project from database. This is like any other ORM., (*1)

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');, (*2)

$dl = new Charon\Loader( $conn );, (*3)

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, (*4)

  $rs = $dl->get();

Using json, (*5)

  $rs = $dl->get(true);

Example

https://github.com/evaldobarbosa/charon-example, (*6)

The Versions

25/10 2015

dev-master

9999999-dev https://github.com/evaldobarbosa/charon

A little ORM with a simple syntax

  Sources   Download

LGPL-3.0

The Requires

 

by Evaldo Barbosa

orm database json entity

07/06 2014

0.5.1

0.5.1.0 https://github.com/evaldobarbosa/charon

A little ORM with a simple syntax

  Sources   Download

LGPL-3.0

The Requires

 

by Evaldo Barbosa

orm database json entity

23/05 2014

0.5.0

0.5.0.0 https://github.com/evaldobarbosa/charon

A little ORM with a simple syntax

  Sources   Download

LGPL-3.0

The Requires

 

by Evaldo Barbosa

orm database json entity