9nekra / example-com-client
Simple client for example.com service.
v0.2.1
2019-11-19 13:27 UTC
Requires
- php: ~7.1
- ext-json: *
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- phpunit/phpunit: >=7.0
- squizlabs/php_codesniffer: ^3.0
This package is auto-updated.
Last update: 2024-05-20 00:17:14 UTC
README
Данный проект представляет клиента для вымышленного сервиса комментариев example.com
Install
Via Composer
$ composer require 9nekra/example-com-client:^0
Usage
Получение комментариев
use Nekra\ExampleComClient\ExampleClientBuilder; $exampleClient = ExampleClientBuilder::create(); $comments = $exampleClient->getComments();
Добавление комментария
use \Nekra\ExampleComClient\Comment; $comment = new Comment(['name' => 'Name 1', 'text' => 'text two']); $exampleClient->postComment($comment);
Изменение комментария
use \Nekra\ExampleComClient\Comment; $comment = new Comment(['id' => 1, 'name' => 'New Name 22','text' => 'text two']); $exampleClient->updateComment($comment);
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email 9nekra@gmail.com instead of using the issue tracker.
Credits
- Alexander
- [All Contributors][link-contributors]
License
The MIT License (MIT). Please see License File for more information.