PHP code example of fecony / yandex-speller
1. Go to this page and download the library: Download fecony/yandex-speller library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
fecony / yandex-speller example snippets
use Fecony\YandexSpeller\Facade\YandexSpeller;
...
public function index()
{
$result = YandexSpeller::check('Helllo world!');
// Do whatever you want with results
// $this->someService->swapWords($result->getData()->data);
}
public function index()
{
$result = speller('Helllo world!');
// Do whatever you want with results
// $this->someService->swapWords($result->getData()->data);
}
bash
php artisan vendor:publish --tag=yandex-speller