Download the PHP package marslankhalid/fbr-ims-laravel without Composer
On this page you can find all versions of the php package marslankhalid/fbr-ims-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package fbr-ims-laravel
FBR IMS Laravel
A small Laravel package for posting invoices to Pakistan FBR's IMS invoice web service. It supports environment-specific endpoints and credentials, typed invoice objects, gateway-fault parsing, and the documented IMS success response.
This community package is not affiliated with or endorsed by FBR. Confirm endpoint, authentication, payload, and tax requirements with FBR before production use.
Requirements
- PHP 8.1+
- Laravel 9–12
Installation
Configure .env:
Usage with arrays
Typed invoice objects
Responses
Successful IMS responses such as the following are normalized:
Gateway faults are preserved, including WSO2 code 900908 (Resource forbidden). Use $response->body and $response->rawBody for audit logging.
Security and idempotency
- Keep tokens in environment variables; never commit them.
- Use a unique
USINfor each business invoice. - Persist the request and complete response before retrying.
- If FBR returns code
100, store the returned invoice number and do not repost the invoice. - A transport timeout is ambiguous: reconcile with FBR before retrying.
Testing
License
MIT
Contributing
Contributions are welcome. Read CODE_OF_CONDUCT.md before opening an issue or pull request.
Security vulnerabilities should be reported privately as described in SECURITY.md, not through public issues.
All versions of fbr-ims-laravel with dependencies
guzzlehttp/guzzle Version ^7.5
illuminate/contracts Version ^9.0 || ^10.0 || ^11.0 || ^12.0
illuminate/support Version ^9.0 || ^10.0 || ^11.0 || ^12.0