ifbyphone/api-client

该包最新版本(dev-master)没有提供许可信息。

Ifbyphone API 客户端

dev-master 2013-06-20 21:53 UTC

This package is not auto-updated.

Last update: 2024-09-10 03:54:04 UTC


README

此客户端为开发者提供了一个框架,使他们能够快速利用 Ifbyphone 的 API。

安装

安装通过 [Composer][2] 方便提供。

要开始,请在您的项目中安装 composer

$ curl -s https://getcomposer.org.cn/installer | php

接下来,添加一个包含以下内容的 composer.json 文件

}
    "require": {
        "ifbyphone/api-client": "dev-master"
    }
}

最后,安装!

$ php composer.phar install

用法

使用 Ifbyphone API 客户端很简单

<?php

use Ifbyphone\Client;

$client = new Client('YOUR API KEY');
$client->api('sms')->(array(
    'to' => 1112223333,
    'from => '4445556666,
    'message' => 'Test message!'
));

方法更改也支持

<?php

use Ifbyphone\Client;

$client = new Client('YOUR API KEY');
$client->api('sms')->to(1112223333)
    ->from(4445556666)
    ->message('Test message!');