jschaedl / Iban

[Deprecated] Validating and generating international :bank: bank account numbers (IBAN)
MIT License
61 stars 25 forks source link

added dependecy to php match extension #18

Closed keywan-ghadami-oxid closed 8 years ago

keywan-ghadami-oxid commented 9 years ago

not tested, but maybe this kind of additional information in the composer.json helps to clarify the requirement of the php math extension

majkel89 commented 8 years ago

+1

bobmulder commented 8 years ago

Because this extension isn't installed on my server I created the method thats used by the library myself. I would suggest that instead of adding this to the composer.json to prevent failures for those who doesn't have the extension installed.

majkel89 commented 8 years ago

I assume you have written something like this:

if (!function_exists('bcmod')) {
    function bcmod() {
        // ...
    }
}

that should be boundled with library.

But still bcmath should be added to composer as suggestion

https://getcomposer.org/doc/04-schema.md#suggest

bobmulder commented 8 years ago

As suggestion that would be better I think.

You are right about the code ;)

majkel89 commented 8 years ago

does the author is still alive ?

keywan-ghadami-oxid commented 8 years ago

seems so. last commit from @jschaedl was two days ago on an other project.

jschaedl commented 8 years ago

I added ext-bcmath as suggestion to composer.json and merged this pull request via command line.

majkel89 commented 8 years ago

you should add bcmod polyfill too as described in https://github.com/jschaedl/Iban/issues/17

jschaedl commented 8 years ago

Would be nice if you can do it yourself and make a pull request then. Thank you.