Matt-di/ethiopia-eims ? reverse-engineered prompt
Reverse engineered prompt
Build me a clean PHP client for Ethiopia’s Ministry of Revenue EIMS API.
I want a package that can register invoices, cancel them, verify them by IRN, check status, and register sales receipts. It should work in plain PHP first, and also have a nice Laravel integration with a facade, config file, artisan commands, and a way to fake the client in tests.
Please make it use simple DTO style inputs and result objects, not models or database stuff. It should support seller details, buyer details, invoice items, and helpers that can calculate totals for me when possible. Add token caching if a PSR 16 cache is available, plus logging and retry handling for temporary failures.
Include PHPUnit tests and make the package feel polished enough to ship, with clear docs and sensible defaults. If you need to check the latest API details, look them up online first.
Are you gonna build this?
make sure you review the code using coderabbit