sambitar / arabic-restore
Restore scrambled Arabic text with an OpenAI agent.
v0.1.0
2026-10-01 01:44 UTC
Requires
- php: >=8.3
- guzzlehttp/guzzle: ^7.9
Requires (Dev)
- phpunit/phpunit: ^11
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Restore scrambled Arabic text with an OpenAI agent.
Install
composer require sambitar/arabic-restore
Set OPENAI_API_KEY in the environment, or in a .env file in the directory you run from.
Usage
use function Lab\unscramble; echo unscramble('ابحرم');
Pass a model when you do not want the default, gpt-5.6-luna:
echo unscramble('ابحرم', 'gpt-5.6-terra');
From the shell, after install:
vendor/bin/lab 'ابحرم'