Download the PHP package seoservice2020/phpmorphy without Composer

On this page you can find all versions of the php package seoservice2020/phpmorphy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package phpmorphy

phpMorphy (reloaded)

Latest Stable Version Total Downloads tests codecov License

phpMorphy is morphological analyzer library for Russian, Ukrainian, English and German languages.

This version supports only PHP 7.2, 7.3 and 7.4.

This library allows to retrieve following morph information for any word:

Installation

Run the following command from your terminal:

Or add this to require section in your composer.json file:

then run

Usage

See examples in examples directory.

Building dictionaries

To build your dictionary from one of the sources:

1) Create an XML file from dictionary source native format, e.g. for AOT, use bin/dict-processing/convert-mrd2xml.php script:

Also for Russian language, you may use `bin/dict-processing/convert-russian-jo.php` to convert XML with Russian dictionary into format without `ё` letter.

2) Build phpMorphy dictionaries files using bin/dict-build/build-dict.php:

At now package has some morphy builder tool for Windows (see `bin/morph-builder/` folder), but you can specify your own morphy builder tool version.
**Important! Morphy builder executable should be in `bin/morphy_builder.exe` file.**

You may need to provide source-specific data for script, e.g. for [AOT](http://aot.ru/) you will need to provide path to [AOT sources](https://github.com/sokirko74/aot) root.

Both morphy builder path and AOT path arguments are optional. As it was before, you also may provide environment variables:

* `MORPHY_DIR` - morphy builder tool root path
* `RML` - AOT sources root path

Environment variables are checked first for backward compatibility.

Example:

Exporting dictionaries

If you need to use some specific dictionaries with phpMorphy, there are categorized dictionaries in dicts/categorized/ folder. All dictionaries are uppercase.

Default dictionaries are:

Speed (DEPRECATED)

Single word mode

mode base form all forms all forms with gram. info
FILE 1000 800 600
SHM 2200 1100 800
MEM 2500 1200 900

Bulk mode

mode base form all forms all forms with gram. info
FILE 1700 800 700
SHM 3200 800 700
MEM 3500 800 700

Note:

All values are words per second speed. Test platform: PHP 5.2.3, AMD Duron 800 with 512Mb memory, WinXP.


All versions of phpmorphy with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2 <8.0
ext-mbstring Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package seoservice2020/phpmorphy contains the following files

Loading the files please wait ....