承接 leewillis77/open-exchange-rates-api 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

leewillis77/open-exchange-rates-api

Composer 安装命令:

composer require leewillis77/open-exchange-rates-api

包简介

A PHP wrapper for the 'open exchange rates' API.

README 文档

README

A PHP wrapper around the Open Exchange Rates API.

Installation

  • Clone the repository
  • Make sure you have composer set up and working
  • Install dependencies by running composer install
  • Copy the sample config file (config/config.yml.sample) to config/config.yml
  • Update config/config.yml with your API credentials from "open exchange rates"
  • API responses are cached in the cache/ subfolder - disallow access to this in your web server config.

Notes

  • Docblocks are missing in many places - patches welcome
  • PHPUnit is set up, and some test cases are present. More would be welcome.
  • Requires PHP 5.3 or above.

Examples

See the examples folder for a simple example of how to use the API wrapper. This is designed to get you going, and is not a complete reference, or see the code sample below:

use OpenExchangeRates\Config;
use OpenExchangeRates\Request\ConversionRequest;

require('vendor/autoload.php');

$config = new Config('config/config.yml');
$request = new ConversionRequest($config);

try {
    $response = $request->convert(100, 'USD', 'GBP');
} catch (\Exception $e) {
    die('Request exception received: '.$e->getMessage());
}
echo "100 USD is " . $response . " GBP\n";

Disclaimer

This API is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the the developer(s) be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.

Although every attempt is made to ensure quality, NO guarantees are given whatsoever of accuracy, validity, availability, or fitness for any purpose - please use at your own risk.

统计信息

  • 总下载量: 27
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2014-01-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固