everapi/freecurrencyapi-php
Composer 安装命令:
composer require everapi/freecurrencyapi-php
包简介
A PHP wrapper for the freecurrencyapi.com API
关键字:
README 文档
README
freecurrencyapi-php - PHP Free Currency Converter API
This package is a PHP wrapper for freecurrencyapi.com, a free currency conversion API, that aims to make the usage of the API as easy as possible in your project.
Installation
You can install the package via composer:
composer require everapi/freecurrencyapi-php
Usage
Initialize the API with your API Key (get one for free at freecurrencyapi.com):
$freecurrencyapi = new \FreeCurrencyApi\FreeCurrencyApi\FreeCurrencyApiClient('YOUR-API-KEY');
Afterwards you can use the endpoints of the API like this:
echo $freecurrencyapi->latest([ 'base_currency' => 'EUR', 'currencies' => 'USD', ]);
Other available functions / endpoints are:
statuscurrencieslatesthistorical
Learn more about endpoints, parameters and response data structure in the docs.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 29.52k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-05-26