Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boshurik/mapper-bundle
MapperBundle
https://github.com/boshurik/mapper-bundle
mapper symfony-bundle
Last synced: about 1 month ago
JSON representation
MapperBundle
- Host: GitHub
- URL: https://github.com/boshurik/mapper-bundle
- Owner: BoShurik
- Created: 2019-02-26T20:33:17.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-22T14:03:37.000Z (12 months ago)
- Last Synced: 2024-10-01T15:27:58.391Z (3 months ago)
- Topics: mapper, symfony-bundle
- Language: PHP
- Homepage:
- Size: 29.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MapperBundle [![Build Status](https://travis-ci.com/BoShurik/mapper-bundle.svg?branch=master)](https://travis-ci.com/BoShurik/mapper-bundle)
Integrates [boshurik/mapper](https://github.com/BoShurik/mapper) to Symfony
## Usage
```bash
composer require boshurik/mapper-bundle
```Bundle introduce two interfaces
`BoShurik\MapperBundle\Mapper\Mapping\MappingInterface` and
`BoShurik\MapperBundle\Mapper\Mapping\ReverseMappingInterface`
for one-way and two-way mappings respectively## Code generation
Code generation based on [PHP-Parser](https://github.com/nikic/PHP-Parser)
```bash
composer require nikic/php-parser
```### Generating model
```bash
bin/console mapper:generate:model
```### Generating mapping
```bash
bin/console mapper:generate:mapping
```