realrashid / raast-qr
Generate P2P Raast payment payloads and ready-to-display QR codes from Pakistani IBANs, right inside Laravel. Fluent builder, Blade component, validation rule and Artisan command included. No network calls, nothing stored.
Requires
- php: ^8.3
- ext-mbstring: *
- endroid/qr-code: ^5.0|^6.0
- laravel/framework: ^12.61.1|^13.12.0
Requires (Dev)
- laravel/pint: ^1.0
- mockery/mockery: ^1.6
- nunomaduro/collision: ^8.5.0
- orchestra/testbench: ^10.0||^11.0
- pestphp/pest: ^3.0|^4.0
- pestphp/pest-plugin-arch: ^3.0|^4.0
- pestphp/pest-plugin-laravel: ^3.0|^4.0
Suggests
- ext-gd: Required to render PNG QR codes.
- ext-imagick: Alternative image backend for PNG rendering.
Provides
None
Conflicts
None
Replaces
None
README
Raast QR is your definitive guide to Generating Raast Payment QR Codes in Laravel. With a fluent, expressive API built for Pakistani IBANs, Raast QR turns manual bank transfers into a single scan.
Across Pakistan, countless stores still show a customer an IBAN and an amount, then ask them to type both into their banking app. Every character is a chance to get it wrong. That's where Raast QR comes in. We've fine-tuned the process, giving you a complete solution for everything QR-related — the account and the amount arrive pre-filled, and nothing ever leaves your server.
Quick Look
use RealRashid\RaastQr\Facades\RaastQr; RaastQr::iban('PK33ABCD0000000000000000') ->amount('2500') ->toDataUrl();
<x-raast-qr :amount="$order->total" size="320" />
Demo Application
Khokha is a Laravel app showing dynamic invoice codes, a printable static counter card, and a builder with real IBAN validation. It lives in its own repository:
git clone https://github.com/realrashid/khokha.git
cd khokha
composer install
cp .env.example .env
php artisan key:generate
php artisan serve
Documentation
Ready to explore all the features and options Raast QR offers? Dive into our comprehensive documentation:
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
If you discover a security vulnerability in Raast QR, please help us maintain the security of this project by responsibly disclosing it to us. To report a security vulnerability, please send an email to realrashid05@gmail.com. We'll address the issue as promptly as possible.
Disclaimer
Raast QR is an independent open-source package. It is not affiliated with, authorized by, or endorsed by the State Bank of Pakistan or Raast Payments Pakistan. It generates person-to-person QR codes only, and never touches, confirms, or reverses a payment.
Credits
Support My Work
If you find Raast QR helpful and would like to support my work, you can buy me a coffee. Your support will help keep this project alive and thriving. It's a small token of appreciation that goes a long way.
License
The MIT License (MIT). Please see License File for more information.
Made with ❤️ from Pakistan

