0x46616c6b / etherpad-lite-client
Etherpad Lite 的 PHP 客户端
v0.7.0
2021-02-23 19:17 UTC
Requires
- php: ^7.3|^7.4|^8.0
- guzzlehttp/guzzle: ~7.2
Requires (Dev)
- behat/behat: ^3.8
- phpunit/phpunit: ~8.5
- dev-master
- v0.7.0
- v0.6.0
- v0.5.0
- v0.4.2
- v0.4.1
- v0.4.0
- v0.3.0
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- dev-dependabot/composer/phpunit/phpunit-9.6.4
- dev-dependabot/composer/behat/behat-3.12.0
- dev-dependabot/github_actions/actions/checkout-3.1.0
- dev-dependabot/composer/guzzlehttp/guzzle-7.5.0
- dev-dependabot/composer/guzzlehttp/psr7-2.2.1
This package is auto-updated.
Last update: 2024-09-06 13:12:20 UTC
README
此软件包通过内置的 HTTP API 提供对 Etherpad Lite 的便捷访问。
支持的 API 版本:1.3.0(发布:1.7.5)
安装
通过 Composer 安装此软件包
composer require 0x46616c6b/etherpad-lite-client
示例(安装后)
<?php
$client = new \EtherpadLite\Client($apikey);
// if you don't use https://:9001
//$client = new \EtherpadLite\Client($apikey, 'http://example.com:9001');
/** @var $response \EtherpadLite\Response */
$response = $client->checkToken();
echo $response->getCode();
echo $response->getMessage();
echo $response->getData();
测试
vendor/bin/phpunit
# Integration Tests
# > requires a running etherpad lite instance
#
# Environment Variables:
# ----------------------
# API_KEY=cqOtzCYEUyzR23s8tftePVo8HHO
# BASE_URL=https://:9001
vendor/bin/behat -f progress
贡献
欢迎为此仓库做出贡献。
- 进行分支操作!
- 创建您的功能分支:
git checkout -b my-new-feature
- 提交您的更改:
git commit -am '添加一些功能'
- 推送到分支:
git push origin my-new-feature
- 提交拉取请求