currency-converter-php:汇率用于PHP的货币转换器库

时间:2021-05-08 06:27:01
【文件属性】:
文件名称:currency-converter-php:汇率用于PHP的货币转换器库
文件大小:25KB
文件格式:ZIP
更新时间:2021-05-08 06:27:01
php exchange-rate currency-converter-php currency-converter-library PHP currency-converter-php 汇率/货币转换器库,具有从国家/地区代码缓存和识别货币的功能。 入门 <?php require 'vendor/autoload.php' ; $ converter = new CurrencyConverter \ CurrencyConverter ; echo $ converter -> convert ( 'USD' , 'NPR' ); // will print something like 97.44 // caching currency $ cacheAdapter = new CurrencyConverter \ Cache \ Adapter \ FileSystem (__DIR__ . '/cache/' ); $ cacheAdapter -> setCacheTimeout ( DateInterval
【文件预览】:
currency-converter-php-master
----.gitignore(29B)
----src()
--------CountryToCurrency.php(6KB)
--------Exception()
--------CurrencyConverterInterface.php(334B)
--------CurrencyConverter.php(4KB)
--------Provider()
--------Cache()
----.travis.yml(330B)
----LICENSE(1KB)
----composer.json(966B)
----CHANGELOG.md(515B)
----examples()
--------cache()
--------zend-cache-adapter.php(485B)
--------simple.php(248B)
--------filesystem-cache.php(356B)
----README.md(2KB)
----phpunit.xml(675B)
----tests()
--------resources()
--------CurrencyConverterTest()
--------Bootstrap.php(400B)
----.scrutinizer.yml(95B)
----docs()
--------cache-adapter.md(3KB)
--------rate-provider.md(31B)

网友评论