alcohol / iso4217

ISO 4217 PHP Library
MIT License
142 stars 21 forks source link

Rework. More OO friendly interface. #1

Closed makasim closed 9 years ago

makasim commented 9 years ago

Changes:

Code:

<?php

$euro = new \Alcohol\ISO4217::findByAlpha3('EUR');

// or

$euro = new \Alcohol\ISO4217::findByNumeric('978');

$euro->getName();    // Euro
$euro->getAlpha3();  // EUR
$euro->getNumeric(); // 978
$euro->getExp();     // 2
$euro->getCountry(); // ['AD', 'AT' ... 'YT', 'ZW']

TODO:

makasim commented 9 years ago

@alcohol ping

makasim commented 9 years ago

Background, I want to use this library in Payum.

alcohol commented 9 years ago

Hi @makasim. While I appreciate your consideration for using my library in your project, I have some concerns with this pull request.

As it stands right now, I will not be merging this pull request in it's current form. I'm sorry if this inconveniences your attempt to integrate my library in your project.

makasim commented 9 years ago

Okay, I will copy\paste classes to my own code base.

Thanks.