2017 © Pedro Peláez
 

library datamonkey

A simple database ORM for PHP projects build on top of Doctrine.

image

devsdmf/datamonkey

A simple database ORM for PHP projects build on top of Doctrine.

  • Thursday, January 19, 2017
  • by devsdmf
  • Repository
  • 1 Watchers
  • 7 Stars
  • 637 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 10 Open issues
  • 14 Versions
  • 0 % Grown

The README.md

logo DataMonkey

Join the chat at https://gitter.im/devsdmf/datamonkey, (*1)

Build Status Coverage Status Latest Stable Version Total Downloads Documentation Status License, (*2)

A simple database ORM for PHP projects build on top of Doctrine., (*3)

Installation

$ composer require devsdmf/datamonkey

Usage

Creating an entity:, (*4)

namespace Vendor\Package;

use DataMonkey\Entity\ExportableEntity;
use DataMonkey\Entity\ExportAbstract;

class MyEntity extends ExportAbstract implements ExportableEntity
{
    /**
     * @pk
     * @db_ref id_entity
     * @strategy auto
     */
    public $id = null;

    /**
     * @db_ref foo_column
     */
    public $foo = null;
}

Creating a factory:, (*5)

namespace Vendor\Package;

use DataMonkey\Entity\Factory\AbstractFactory;
use Vendor\Package\MyEntity;

class MyFactory extends AbstractFactory
{

    public function create($options = null)
    {
        return MyEntity::factory($options);
    }
}

Creating an repository, (*6)

namespace Vendor\Package;

use DataMonkey\Repository\Repository;

class MyRepository extends Repository
{

    protected $_name = 'mytable';
}

Persisting an entity:, (*7)

use Vendor\Package\MyEntity;
use Vendor\Package\MyFactory;
use Vendor\Package\MyRepository;

// Configure your doctrine DBAL connection
$connection = new \Doctrine\DBAL\Connection(...);

$entity = new MyEntity();
$entity->foo = 'bar';

$repo = new MyRepository($connection, new MyFactory());
$repo->save($entity);

Done!, (*8)

Documentation

Tests

$ composer install --dev
$ ./vendor/bin/phpunit

License

This library is licensed under the MIT license., (*9)

The Versions

19/01 2017

dev-master

9999999-dev

A simple database ORM for PHP projects build on top of Doctrine.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lucas Mendes de Freitas

orm devsdmf datamonkey

19/01 2017

dev-develop

dev-develop

A simple database ORM for PHP projects build on top of Doctrine.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lucas Mendes de Freitas

orm devsdmf datamonkey

19/01 2017

1.2.3

1.2.3.0

A simple database ORM for PHP projects build on top of Doctrine.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lucas Mendes de Freitas

orm devsdmf datamonkey

20/11 2016

1.2.2

1.2.2.0

A simple database ORM for PHP projects build on top of Doctrine.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lucas Mendes de Freitas

orm devsdmf datamonkey

18/05 2016

1.2.1

1.2.1.0

A simple database ORM for PHP projects build on top of Doctrine.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lucas Mendes de Freitas

orm devsdmf datamonkey

18/05 2016

1.2.0

1.2.0.0

A simple database ORM for PHP projects build on top of Doctrine.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lucas Mendes de Freitas

orm devsdmf datamonkey

17/05 2016

1.1.4

1.1.4.0

A simple database ORM for PHP projects build on top of Doctrine.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lucas Mendes de Freitas

orm devsdmf datamonkey

18/03 2016

1.1.3

1.1.3.0

A simple database ORM for PHP projects build on top of Doctrine.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lucas Mendes de Freitas

orm devsdmf datamonkey

17/11 2015

1.1.2

1.1.2.0

A simple database ORM for PHP projects build on top of Doctrine.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lucas Mendes de Freitas

orm devsdmf datamonkey

10/06 2015

1.1.1

1.1.1.0

A simple database ORM for PHP projects build on top of Doctrine.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lucas Mendes de Freitas

orm devsdmf datamonkey

13/02 2015

1.1.0

1.1.0.0

A simple database ORM for PHP projects build on top of Doctrine.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lucas Mendes de Freitas

orm devsdmf datamonkey

06/02 2015

1.0.2

1.0.2.0

A simple database ORM for PHP projects build on top of Doctrine.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lucas Mendes de Freitas

orm devsdmf datamonkey

23/01 2015

1.0.1

1.0.1.0

A simple database ORM for PHP projects build on top of Doctrine.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lucas Mendes de Freitas

orm devsdmf datamonkey

23/01 2015

1.0.0

1.0.0.0

A simple database ORM for PHP projects build on top of Doctrine.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lucas Mendes de Freitas

orm devsdmf datamonkey