- How do I install goodm4ven/arabicable in a Laravel application?
- Install it with composer require goodm4ven/arabicable. Laravel package auto-discovery should register the service provider; if your application disables discovery, add the provider to your bootstrap configuration manually. Check the README for any optional config publishing step before you deploy.
- Which Laravel and PHP versions does arabicable support?
- The authoritative source is the package's composer.json, which declares its php and laravel/framework constraints. The available evaluation context presumes Laravel 9 through 12 on PHP 8.x, but that should be verified rather than assumed. Confirm the matrix against your runtime before planning an upgrade.
- How do I convert numerals and dates to Arabic with arabicable?
- Arabicable provides chainable helpers for Arabic numeral conversion and Arabic-aware date rendering. Convert at the presentation layer and keep raw numbers and timestamps in storage so sorting, filtering, and search remain stable. Verify the exact helper names and locale behavior in the README for your pinned version.
- How does arabicable handle Arabic pluralization?
- Arabic has dual and plural categories that do not map one-to-one to English, and arabicable provides pluralization helpers for those cases. Use them for user-facing counts and labels while keeping the canonical count in your database. Add tests for each plural category your UI relies on.
- Can arabicable format currency for Arabic locales?
- The package includes currency formatting for Arabic locales, so you can present amounts with Arabic-appropriate symbols and numerals. Store monetary values as decimals or minor units and format only for output. Confirm which currencies and locale formats are covered before using it for billing or invoices.
- How do I localize strings for Arabic users with arabicable's chainable helpers?
- Arabicable offers chainable utilities for localizing strings for Arabic-speaking users. Keep translation source strings in your Laravel lang files and use the package helpers at the display boundary. Because it is a text utility layer, it complements rather than replaces Laravel's localization system.
- What changed in arabicable v1.2.7 for the word rahmah?
- The v1.2.7 release notes describe treating the word rahmah both ways, which points to a normalization change for orthographic variants. The available context does not document the exact rule, so verify whether it folds variants, strips diacritics, or handles transliteration equivalence. Treat normalized strings as API output and test both rahmah forms before relying on the patch.
- Is arabicable safe to use in production with a single maintainer?
- It is a single-maintainer package with low release volume, so plan for contingency rather than assuming long-term support. Pin an exact version and wrap the public API behind a thin internal facade so you can swap implementations if maintenance lapses. Keep your own regression fixtures for the Arabic outputs you depend on, and review composer.json constraints on every update. If maintenance lapses, alternatives include Laravel localization plus dedicated Arabic normalization libraries or search-engine analyzers.
- How should I test arabicable normalization and Arabic output for regressions?
- Create fixtures that assert expected output for the rahmah variants and for a sample of unaffected Arabic text. Add idempotence checks if you normalize the same value more than once. If you persist normalized output, include a backfill test that re-normalizes stored values and compares search or dedupe keys before and after composer updates.
- Will arabicable conflict with MySQL collations or Elasticsearch Arabic analyzers?
- Stacking arabicable's normalization with MySQL collation behavior or Elasticsearch Arabic analyzers can produce different keys on write and query paths. Pick one source of truth: either normalize in the package and configure downstream analyzers to match, or let the search layer normalize and use arabicable mainly for display formatting. Test write/query parity with the same Arabic fixtures.