Skip to content

ne0h12/orfogrammka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Орфограммка

Личный кабинет

PHP http клиент для личного кабинета

Пример использования

<?php

require_once __DIR__ . '/vendor/autoload.php';

use Orfogrammka\ApiClient;
use Orfogrammka\Orfogrammka;

$client = new ApiClient();
$config = [
    'email'    => 'account@orfogrammka.ru',
    'password' => 'secret'
];

$orfogrammka = new Orfogrammka($client, $config);
$result = $orfogrammka->checkText('<p>Hellow world</p>', 'Hellow world');

/**
 * Output: возможно, ошибка в английском слове
 */
echo $result['annotations']['annotations'][0]['description'];;

/**
 * Output: Hellow
 */
echo $result['annotations']['annotations'][0]['selection'];

About

HttpApi client for orfogrammka.ru

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published