buzzylab / aip
A simple PHP API extension that's provide arabic tools for PHP
Installs: 1 525
Dependents: 0
Suggesters: 0
Security: 0
Stars: 25
Watchers: 3
Forks: 6
Open Issues: 2
Requires
- php: ^7.3|^8.0|^8.1
- illuminate/support: 7.0|^8.0|^9.0|^10.0
README
A simple PHP API extension that's provide arabic tools for PHP . https://github.com/buzzylab/aip
Note: AIP package is a built on the great library Ar-PHP (v4.0.0) which is developed by Khaled Al-Sham'aa.
Contents
Features
- Arabic text auto summarization.
- Advanced Arabic search (stem based).
- Render Arabic text (PDF, GD, SWF).
- Present dates in Arabic or Hijri.
- Convert Hijri date into Unix timestamp.
- Parse Arabic textual datetime into timestamp.
- Transliterate English words in Arabic.
- Transliterate Arabic words in English.
- Spell numbers in Arabic idiom.
- Phonetically alike Arabic words.
- Arabic character set converter.
- Arabic character set auto detection.
- Identify Arabic in multi language documents.
- Identify names & places in Arabic text.
- Guess gender of Arabic names.
- Convert keyboard language programmatically.
- Calculate the time of Muslim prayer.
- Compress string using Huffman-like coding.
- Standardize Arabic text.
- Arabic stemmer.
- Arabic Cities List
- Informations about Arabic countries
- Arabic text normalisation.
- Translate English words into Hieroglyphics.
- Translate English words into Phoenician.
Installation
With Composer
$ composer require buzzylab/aip
Or Add "buzzylab/aip": "~1.0.*"
to composer require
:
{ "require": { "buzzylab/aip": "~1.0.*" } }
Native Integration
<?php require 'vendor/autoload.php'; use Buzzylab\Aip\Arabic; $arabic = new Arabic();
Laravel Integration
After installing the package, open your Laravel config file located at config/app.php
and add the following service provider to the providers
array:
Buzzylab\Aip\Laravel\AipServiceProvider::class
And add the following Facade to the aliases
array
'Arabic' => Buzzylab\Aip\Laravel\Facades\AipFacade::class
Change log
Please see CHANGELOG for more information what has changed recently.
Issues
For the list of all current and former/closed issues see the github issue list. If you find a problem, please follow the same link and create an new issue, I will look at it and get back to you ASAP.
Contributing
I would be glad to accept your contributions if you want to participate and share. Just follow GitHub's guide on how to fork a repository. Clone your repository to your machine, make your change then create a pull request after submitting your change to your repository.
Credits & inspirations
It goes without saying that none of this could have been done without the great arphp library, a big thank you goes out to Khaled Al-Sham'aa.
License
The AIP is open-sourced software licensed under the MIT license.