updevru/php-esputnik-api

为 e-sputnik.com REST api 的库

dev-master 2017-03-22 20:38 UTC

This package is auto-updated.

Last update: 2024-09-29 04:08:54 UTC


README

使用 Esputnik API

要求

  • PHP >= 5.6
  • Guzzle 6.0+ 库,
  • (可选) PHPUnit 运行测试。

安装

composer require n10ty/php-esputnik-api

基本用法

<?php

// This file is generated by Composer
require_once 'vendor/autoload.php';

$client = new \Esputnik\Client();
$client->authenticate('login', 'password');

$repositories = $client->api('balance')->show();

$client 对象,您可以访问所有命名空间。

灵感来自

KnpLabs/php-github-api

许可证

MIT 许可证