forked from adnane-ka/laravel-speaks-arabic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Arabic.php
executable file
·33 lines (30 loc) · 1.21 KB
/
Arabic.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
namespace Adnane\Arabic;
use Adnane\Arabic\Caller;
class Arabic
{
use Caller;
/**
* Here where you can define new methods & refrence them
* to theire containing instances , as they will be handled
* & declared dynamicly by this instance.
* you may override methods' names and name theme as you
* or your project desire !
*/
private static $methods =
[
'toWords' => [ Ar\Tafkit::class ,'toWords' ],
'fromWords' => [ Ar\Tafkit::class ,'fromWords' ],
'toOrdinal' => [ Ar\Tafkit::class ,'toOrdinal' ],
'toIndianNums' => [ Ar\Tafkit::class ,'toIndianNums' ],
'toHijri' => [ Ar\Tawkit::class ,'GregorianToHijri' ],
'fromHijri' => [ Ar\Tawkit::class ,'HijriToGregorian' ],
'toRelative' => [ Ar\Tawkit::class ,'toRelative' ],
'fromRelative' => [ Ar\Tawkit::class ,'fromRelative' ],
'removeHarakat' => [ Ar\Strings::class ,'removeHarakat' ],
'toKeyboardInput' => [ Ar\Strings::class ,'toKeyboardInput' ],
'toSpelled' => [ Ar\Strings::class ,'toSpelled' ],
'countWords' => [ Ar\Strings::class ,'utf8WordCount'],
'containsAr' => [ Ar\Strings::class ,'containsArabic'],
];
}