Download the PHP package nouralhadi/stemmer without Composer

On this page you can find all versions of the php package nouralhadi/stemmer. 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 stemmer

PHP ISRI Stemmer

The first free and open source Arabic stemmer ever written in PHP for Laravel framework implementing ISRI algorithm.

Due to lack of support for Arabic language despite its wonderful features and grammar, and as an Arabian open source tech geek in love with technologies, I felt like it's my duty to help my native language to rise, and help making Arab programmers life a bit easier.

This package contains the ISRI Stemming class build from scratch by myself and willing to make this project for global PHP use (not restricted to Laravel) next step will be Symfony :heart_eyes: .

Please note that this is just the beginning, and I'm willing to continue building a project that will serve the whole Arab language.

Install

You can install this package using composer:

composer require nouralhadi/stemmer

For Laravel < 5.5, You should add the package to your service providers array in config/app.php:

\Nouralhadi\Stemmer\StemmerServiceProvider::class,

How to use

You can visit this route /stemmer after installing this package to access the testing page of the package.

The only feature it contains (for now) is the stem feature, which accepts an arabic word and return its root.

You can use the Stemmer class by Injecting it inside your caller function / controller:

use Nouralhadi\Stemmer\Http\Helpers\ISRIStemmer;
public function test(ISRIStemmer $stemmer){
    $string = 'وزراء';
    echo $stemmer->stem($string);
    // Resulting: وزر
} 

Or you can stem a complete sentence by splitting into words and steam each:

use Nouralhadi\Stemmer\Http\Helpers\ISRIStemmer;
public function test(ISRIStemmer $stemmer){
    $string = 'كتب المستخدم رسالة إلى مدير الموقع';
    $words = mb_split(' ',$string);

    $ret = [];
    foreach ($words as $word){
        array_push($ret, $this->Stemmer->stem($word));
    }
    $result = implode(' ', $ret);
    // Resulting: كتب خدم رسل ألى دير وقع 
}

Contribute

Anyone willing to contribute to this project is welcomed, any help of any kind will be appreciated, and if you're ready to help then please reach out to my personal email [email protected].

License

This Project is an open-sourced software licensed under the GPLv3 License.


All versions of stemmer with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.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 nouralhadi/stemmer contains the following files

Loading the files please wait ....