2017 © Pedro Peláez
 

symfony-bundle money-bundle

image

astina/money-bundle

  • Friday, August 30, 2013
  • by pkraeutli
  • Repository
  • 17 Watchers
  • 0 Stars
  • 928 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Astina Money Bundle

Symfony bundle for 99designs/money-php., (*1)

Adds exchange rate entity and a service for conversion., (*2)

Installation

Step 1: Add to composer.json

"require":  {
    "astina/money-bundle":"dev-master",
}

Step 2: Enable the bundle

Enable the bundle in the kernel:, (*3)

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Astina\Bundle\MoneyBundle\AstinaMoneyBundle(),
    );
}

Usage

**Note***: CurrencyExchangeRate entities need to be created for the exchanges you need., (*4)

$moneyChf = new Money\Money(190, 'CHF');

$moneyConverter = $container->get('astina_money.money_converter');
$moneyEur = $moneyConverter->convert($money, 'EUR');

The Versions

30/08 2013

dev-master

9999999-dev http://astina.ch

  Sources   Download

MIT

The Requires

 

29/04 2013

0.1.0

0.1.0.0

  Sources   Download

The Requires