ar-php icon indicating copy to clipboard operation
ar-php copied to clipboard

does not comply with psr-4 autoloading standard.

Open hawkiq opened this issue 4 years ago • 4 comments

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.

hawkiq avatar Jan 14 '21 10:01 hawkiq

I confirm with composer 1 there is no issue, with composer 2 yes. So anyone with a project using this library need to empty vendor/ then downgrade to composer 1 : composer self-update --1

redamakhchan avatar May 21 '21 10:05 redamakhchan

I confirm with composer 1 there is no issue, with composer 2 yes. So anyone with a project using this library need to empty vendor/ then downgrade to composer 1 : composer self-update --1

I know that's what I did, but this is not acceptable , i think I should search for another repo because this seems dead

hawkiq avatar Jun 10 '21 10:06 hawkiq

I updated this package to match psr-4 and composer 2 it also support laravel https://github.com/cobraprojects/ar-php

cobraprojects avatar Nov 06 '21 15:11 cobraprojects

I updated this package to match psr-4 and composer 2

it also support laravel

https://github.com/cobraprojects/ar-php

Sir you're life saver , thanks for contribution

hawkiq avatar Nov 06 '21 20:11 hawkiq