johntaa / ar-php Goto Github PK
View Code? Open in Web Editor NEWAr-PHP Library, Namespace Added - psr4
Ar-PHP Library, Namespace Added - psr4
Hi @Johntaa , Hi Github community .
I'm using Intervention/image on Laravel 5.8 , and I'm trying to write Arabic text on an image .
before using Johantaa/ar-php I get a reversed text but all the letters are showing correctly .
Now using Johantaa/ar-php I got my text without the reverse problem , but some letters are replacing with a black rectangle
ErrorException in Glyphs.php line 281:
mb_strpos(): Empty delimiter
in Glyphs.php line 281
(updated) the word لايوجد making issue.
at HandleExceptions->handleError('2', 'mb_strpos(): Empty delimiter', '/var/www/html/dev/property/vendor/johntaa/ar-php/src/Arabic/Arabic/Glyphs.php', '281', array('str' => 'لايوجد', 'crntChar' => 'ا', 'prevChar' => 'ل', 'nextChar' => 'ي', 'output' => 'ﺪﺟﻮﻳ', '_temp' => '6', 'i' => '1', 'chars' => array('ل', 'ا', 'ي', 'و', 'ج', 'د'), 'max' => '6', 'Reversed' => false, 'flip_arr' => ')]>}', 'ReversedChr' => '([<{', 'form' => '0'))
at mb_strpos('،؟؛ـئبتثجحخسشصضطظعغفقكلمنهي', '') in Glyphs.php line 281
at I18N_Arabic_Glyphs->preConvert('لايوجد') in Glyphs.php line 518
at I18N_Arabic_Glyphs->utf8Glyphs('لايوجد', '50', true)
I dont know if this project still a live but when upgrading to composer 2 i can't load Class 'Johntaa\Arabic\I18N_Arabic' in Laravel project because of error
Class Johntaa\Arabic\Arabic\I18N_Arabic_Transliteration located in C:/AppServ/www/vendor/johntaa/ar-php/src/Arabic\Arabic\Transliteration.php does not comply with psr-4 autoloading standard. Skipping.
Class Johntaa\Arabic\Arabic\I18N_Arabic_WordTag located in C:/AppServ/www/vendor/johntaa/ar-php/src/Arabic\Arabic\WordTag.php does not comply with psr-4 autoloading standard. Skipping.
Class Johntaa\Arabic\I18N_Arabic located in C:/AppServ/www/vendor/johntaa/ar-php/src/Arabic\Arabic.php does not comply with psr-4 autoloading standard. Skipping.
Class Johntaa\Arabic\ArabicException located in C:/AppServ/www/vendor/johntaa/ar-php/src/Arabic\Arabic.php does not comply with psr-4 autoloading standard. Skipping.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.