9nekra/example-com-client

Simple client for example.com service.

v0.2.1 2019-11-19 13:27 UTC

This package is auto-updated.

Last update: 2024-05-20 00:17:14 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Данный проект представляет клиента для вымышленного сервиса комментариев 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.