Skip to content

Allow khaled.alshamaa/ar-php 7.x - #59

Merged
atmonshi merged 2 commits into
still-code:mainfrom
alkoumi:allow-ar-php-7
Nov 29, 2026
Merged

atmonshi merged 2 commits into
still-code:mainfrom
alkoumi:allow-ar-php-7

Conversation

@alkoumi

@alkoumi alkoumi commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Why

composer.json pins khaled.alshamaa/ar-php to ^6.3, so apps using this package cannot install ar-php 7. ar-php 7.0.0 has been out since March 2025, and upcoming PHP 8.5 fixes land in the 7.x line, for example khaled-alshamaa/ar-php#95, which stops utf8Glyphs() from raising ord() deprecations on PHP 8.5.

Change

"khaled.alshamaa/ar-php": "^6.3" → "^6.3|^7.0". Existing 6.3 installs keep working.

Compatibility

ar-php 7.0.0's changelog lists only additions: lazy-loaded data files, arDialect(), a similar_text() equivalent, Urdu and Presentation Forms-A glyphs. Every method this package calls keeps its name and parameters: utf8Glyphs, int2str, money2str, str2int, int2indic, en2ar, ar2en, strtotime, standard, arSummary, arSentiment, arPlural, isFemale, isArabic and the number-format setters.

Tested

vendor/bin/phpunit passes (13 tests) on PHP 8.4 and 8.5 with ar-php 7.0.0, and with the lowest allowed version (6.3.0, --prefer-lowest). The 13 PHPUnit deprecation notices also appear on unmodified main, so they are unrelated to this change.

🤖 Generated with Claude Code

alkoumi and others added 2 commits November 29, 2026 11:25
ar-php 7.0.0 only adds features (lazy-loaded data files, arDialect(),
Urdu glyphs); every method this package calls keeps its signature. The
test suite passes on both 6.3 and 7.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@atmonshi

Copy link
Copy Markdown
Member

thank you @alkoumi

@atmonshi
atmonshi merged commit a0dfd0f into still-code:main Nov 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants