gdronov / example-com
Library for Example.com comment`s service
v1.0.0
2022-08-27 08:43 UTC
Requires
- php: >=7.2
Requires (Dev)
- phpunit/phpunit: ^9
This package is auto-updated.
Last update: 2025-06-27 15:24:16 UTC
README
Install
composer require gdronov/example-com
Quickstart example
require 'vendor/autoload.php'; $apiClient = new Gdronov\ExampleCom\ApiClient('my-api-key-for-example-com'); $service = new Gdronov\ExampleCom\CommentHandler($apiClient); // Get comments $list = $service->getList($count, $offset); // Add comment $newCommentId = $service->add('Grigory', 'New comment'); // Edit comment $service->edit($commentId, 'Alex', 'Edited comment');