Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alireaza/doctrine-orm

Doctrine ORM
https://github.com/alireaza/doctrine-orm

composer doctrine orm php

Last synced: about 2 months ago
JSON representation

Doctrine ORM

Awesome Lists containing this project

README

        

# Doctrine ORM

## Install

Via Composer
```bash
$ composer require alireaza/doctrine-orm
```

## Usage

```php
use AliReaza\Doctrine\ORM\Doctrine;

$doctrine = new Doctrine([
'driver' => 'pdo_mysql',
'host' => 127.0.0.1,
'port' => 3306,
'user' => 'root',
'password' => '',
'dbname' => 'database_name'
], [
'app/Entities'
]);

$em = $doctrine->getEntityManager();
```

## License

The MIT License (MIT). Please see [License File](LICENSE) for more information.