Skip to content

guiwoda/doctrine-money

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doctrine integration for Money

Integration between moneyphp/money and Doctrine ORM.

Install

Via Composer

$ composer require moneyphp/money-doctrine

Drivers

This package provides XML, YAML and Fluent implementations, feel free to use the one that suits your project.

// XML
$configuration = Setup::createXMLMetadataConfiguration([
    // your mappings...
    '/path/to/vendor/moneyphp/doctrine-money/src/xml',
]);

// YAML
$configuration = Setup::createYAMLMetadataConfiguration([
    // your mappings...
    '/path/to/vendor/moneyphp/doctrine-money/src/yaml',
]);

// Fluent
$fluent = new FluentDriver([
    // your mappings...
    Money\Doctrine\Fluent\MoneyMapping::class,
    Money\Doctrine\Fluent\CurrencyMapping::class,
]);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages