0x46616c6b / etherpad-lite-client
PHP Client for Etherpad Lite
Installs: 10 751
Dependents: 1
Suggesters: 0
Security: 0
Stars: 14
Watchers: 4
Forks: 9
Open Issues: 10
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-12-06 14:04:32 UTC
README
This package provides an easy access to Etherpad Lite throw there built-in HTTP API.
Supported API Version: 1.3.0 (Release: 1.7.5)
Installation
Install the package via Composer
composer require 0x46616c6b/etherpad-lite-client
Example (after install)
<?php
$client = new \EtherpadLite\Client($apikey);
// if you don't use http://localhost: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();
Testing
vendor/bin/phpunit
# Integration Tests
# > requires a running etherpad lite instance
#
# Environment Variables:
# ----------------------
# API_KEY=cqOtzCYEUyzR23s8tftePVo8HHO
# BASE_URL=http://localhost:9001
vendor/bin/behat -f progress
Contributing
Feel free to contribute to this repository.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request