承接 everapi/currencyapi-php 相关项目开发

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

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

everapi/currencyapi-php

最新稳定版本:v1.0.0

Composer 安装命令:

composer require everapi/currencyapi-php

包简介

A PHP wrapper for the currencyapi.com API

README 文档

README

currencyapi-php - PHP Currency Converter

Latest Version on Packagist Total Downloads

This package is a PHP wrapper for currencyapi.com 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/currencyapi-php

Usage

Initialize the API with your API Key (get one for free at currencyapi.com):

$currencyApi = new \CurrencyApi\CurrencyApi\CurrencyApiClient('YOUR-API-KEY');

Afterwards you can use the endpoints of the API like this:

echo $currencyApi->latest([
    'base_currency' => 'EUR',
    'currencies' => 'USD',
]);

Endpoints accessible with a free account:

  • status
  • currencies
  • latest
  • historical

These advanced endpoints currently require a paid subscription:

  • convert
  • range

Learn more about endpoints, parameters and response data structure in the docs.

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-05-05