Skip to content

alhoqbani/ar-php

Repository files navigation

Build Status Total Downloads

ArUtil

Arabic PHP Utilities

Installation:

composer require arutil/ar-php

ArDateTime

A wrapper to the hijri methods in ar-php library.

To use the ArDateTime: check the documentation.

ArQuery

A query builder to search Arabic words by its variations.

To use the ArQuery: check the documentation.

Ar-php

The Original library from http://ar-php.org/

This is the great library of Khaled Al-Shamaa with small bug fixes.

You can use the original ar-php same as the docs at ar-php.org

The only diffirence is the the main class I18N_Arabic is renamed and namespaced under ArUtil\I18N\Arabic

<?php 
    
    require_once __DIR__ . '/../vendor/autoload.php';
    use ArUtil\I18N\Arabic;
    
    $obj = new Arabic('Numbers');
    echo $obj->int2str(1975);