abstract-comment-api / php-rest-client
此包最新版本(v1.0)没有可用的许可证信息。
v1.0
2020-08-25 00:48 UTC
Requires
- ext-json: *
- guzzlehttp/guzzle: 6.5.x-dev
- phpunit/phpunit: ^7.5
Requires (Dev)
- donatj/mock-webserver: dev-master
This package is auto-updated.
Last update: 2024-09-25 10:31:45 UTC
README
抽象评论服务客户端
安装
composer require abstract-comment-api/php-rest-client
使用示例
use pakman\RestClient\ClientBuilder; $commentApi = ClientBuilder::createCommentApiClient('https://example.com'); $comment = $commentApi->create('User name', 'User comment'); $commentApi->update($comment->id, 'User updated name', 'User updated comment'); $comments = $commentApi->getList(); foreach ($comments as $comment) { echo $comment->id; echo $comment->name; echo $comment->text; }