Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/berliozframework/atlaspackage
Atlas ORM package for Berlioz Framework
https://github.com/berliozframework/atlaspackage
Last synced: about 1 month ago
JSON representation
Atlas ORM package for Berlioz Framework
- Host: GitHub
- URL: https://github.com/berliozframework/atlaspackage
- Owner: BerliozFramework
- License: mit
- Created: 2018-08-16T16:00:14.000Z (over 6 years ago)
- Default Branch: 1.x
- Last Pushed: 2021-11-26T10:09:42.000Z (about 3 years ago)
- Last Synced: 2024-11-16T10:36:32.953Z (about 1 month ago)
- Language: PHP
- Size: 42 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Atlas ORM package for Berlioz Framework
[![Latest Version](https://img.shields.io/packagist/v/berlioz/atlas-package.svg?style=flat-square)](https://github.com/BerliozFramework/AtlasPackage/releases)
[![Software license](https://img.shields.io/github/license/BerliozFramework/AtlasPackage.svg?style=flat-square)](https://github.com/BerliozFramework/AtlasPackage/blob/1.x/LICENSE)
[![Quality Grade](https://img.shields.io/codacy/grade/35cc79cf05c8460793c569e5b2fe1bbe/1.x.svg?style=flat-square)](https://www.codacy.com/manual/BerliozFramework/AtlasPackage)
[![Total Downloads](https://img.shields.io/packagist/dt/berlioz/atlas-package.svg?style=flat-square)](https://packagist.org/packages/berlioz/atlas-package)This package is intended to provide **Atlas** in **Berlioz Framework**.
> Atlas is a database framework for PHP to help you work with your persistence model, while providing a path to refactor towards a richer domain model as needed.
>
> [Official website of Atlas](http://atlasphp.io/)For more information, and use of Berlioz Framework, go to website and online documentation :
https://getberlioz.com## Installation
### Composer
You can install **Atlas Package** with [Composer](https://getcomposer.org/), it's the recommended installation.
```bash
$ composer require berlioz/atlas-package
```### Dependencies
* **PHP** >= 7.1
* Packages:
* **berlioz/core**
* **atlas/orm**
* **atlas/cli**## Usage
Package add a service named `atlas`, who correspond to the `\Atlas\Orm\Atlas` class.
See [**Atlas ORM** documentation](http://atlasphp.io/) for more information.
## Configuration
Default configuration:
```json
{
"atlas": {
"pdo": {
"connection_locator": {
"default": {
"dsn": null,
"username": null,
"password": null
},
"read": {},
"write": {}
}
},
"orm": {
"atlas": {
"transaction_class": "Atlas\\Orm\\Transaction\\AutoTransact",
"log_queries": "%berlioz.debug%"
}
}
}
}
```