Download the PHP package fecony/yandex-speller without Composer
On this page you can find all versions of the php package fecony/yandex-speller. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fecony/yandex-speller
More information about fecony/yandex-speller
Files in fecony/yandex-speller
Package yandex-speller
Short Description Laravel Wrapper for Yandex Speller API
License MIT
Homepage https://github.com/fecony/yandex-speller
Informations about the package yandex-speller
Laravel Yandex Speller API Wrapper
Simple Laravel Yandex Speller API response wrapper.
Unfortunately Yandex Speller is not supported officially now 🙁
Basic spellchecking is working, but options have no effect on API work...
Installation
You can install the package via composer:
You can publish the package config file
Basic Usage
There are to ways of utilizing the package: using the facade, or using the helper function. On either way you will get the same result, it is totally up to you.
Facade:
Helper function:
Advanced usage
Both YandexSpeller::check()
method and speller()
helper accept four parameters:
string | array $text
text sting or array of strings to check spelling.string | null $lang
used to rewrite config defined $lang parameter, comma separated languages, optional.int | null $options
used to rewrite config defined $options parameter, sum of possible options, optional.string | null $format
used to rewrite config defined $format parameter, 'plain' or 'html', optional.
Configuration
If you need to customize the default config, you can do it directly on the yandex-speller.php
configuration file.
option | default | description |
---|---|---|
lang | 'ru,en' | This option specifies the default languages of the text to be checked. The parameter value should be comma separated. |
format | 'plain' | This option specifies the default format of the text to be checked. |
options | 0 | This option specifies the behaviour of the API. The parameter value is the sum of the option values. Refer to: https://yandex.ru/dev/speller/doc/dg/reference/speller-options.html |
Testing
Roadmap
This package is basic wrapper to make call to Yandex Speller API, it is possible to use any parameters that Yandex Speller is supporting for now. New Features may be made in case you find interesting use cases.
For example:
- [ ] Wrap result to use in other methods.
- [ ] Return text with suggestions applied.
- [ ] etc...
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
- Ricards Tagils
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of yandex-speller with dependencies
guzzlehttp/guzzle Version ^7.2
illuminate/support Version ^8.19
ext-json Version *