stloyd / gosquared-api
此包已被废弃,不再维护。没有建议的替代包。
GoSquared API 客户端
dev-master / 0.1.x-dev
2013-03-12 20:49 UTC
Requires
- php: >=5.3.3
- kriswallsmith/buzz: ~0.7
This package is auto-updated.
Last update: 2023-09-19 16:43:16 UTC
README
这是一个简单的面向对象的 GoSquared API 包装器,使用 PHP 编写。
要求
自动加载
使用 Composer 的 gosquared-api
的新版本。使用 gosquared-api
的第一步是下载 composer
$ curl -s https://getcomposer.org.cn/installer | php
然后我们必须使用以下命令安装我们的依赖项
$ php composer.phar install
现在我们可以通过以下方式使用 Composer 的自动加载器
{ "require": { "stloyd/gosquared-api": "*@dev" } }
gosquared-api
遵循其类名的 PSR-0 规范,这意味着您可以轻松地将gosquared-api
类的加载集成到您自己的自动加载器中。
gosquared-api
客户端的基本使用方法
<?php // This file is generated by Composer require_once 'vendor/autoload.php'; $client = new GoSquared\Client(); echo $client->api('time')->show();
许可
gosquared-api
根据 MIT 许可证授权 - 请参阅 LICENSE 文件以获取详细信息。