1. Go to this page and download the library: Download atm-code/ar-php-laravel library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
php
dump(ArPhpLaravel::guessGender('محمد')); // Male
php
dump(ArPhpLaravel::strtotime('الخميس القادم', time(), 'l dS F Y')); // Thursday 13th May 2021
php
dump(ArPhpLaravel::arSentiment(TEXT));
php
dump(ArPhpLaravel::standard(TEXT));
php
dump(ArPhpLaravel::arSummary(TEXT));
php
dump(ArPhpLaravel::money2str(123, 'SAR', 'ar')); // مئة و ثلاثة و عشرون ريالا
dump(ArPhpLaravel::money2str(123, 'SAR', 'en')); // 123 Riyal
dump(ArPhpLaravel::money2str(123, 'EGP', 'ar')); // مئة و ثلاثة و عشرون جنيها