Download the PHP package seoservice2020/laravel-phpmorphy without Composer
On this page you can find all versions of the php package seoservice2020/laravel-phpmorphy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download seoservice2020/laravel-phpmorphy
More information about seoservice2020/laravel-phpmorphy
Files in seoservice2020/laravel-phpmorphy
Package laravel-phpmorphy
Short Description laravel-phpmorphy - Laravel wrapper for phpMorphy.
License MIT
Homepage https://github.com/SEOService2020/laravel-phpmorphy
Informations about the package laravel-phpmorphy
laravel-phpmorphy
is a Laravel wrapper for phpMorphy library with PHP7 support.
phpMorphy is a morphological analyzer library for Russian, Ukrainian, English and German languages.
Installation
Run the following command from your terminal:
Or add this to require section in your composer.json
file:
then run
Configuration
The defaults are set in config/morphy.php
. Copy this file to your own config directory to modify the values. You can publish the config using this command:
This is the contents of the published file:
Usage
Wrapper automatically prepares input word for phpMorphy: it applies trim
to word and converts it to uppercase or lowercase, depending on the dictionary options.
Using the wrapper directly:
Or via Laravel Facade:
Note:
You can access morphy properties only directly from morphy object, not facade.
Add facade support
This package allows Laravel to support facade out of the box, but you may explicitly add facade support to config/app.php:
Section
Section
Change log
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-phpmorphy with dependencies
seoservice2020/phpmorphy Version ^2.2.2
illuminate/support Version ^7.0|^8.0