Download the PHP package paybysquare/laravel without Composer
On this page you can find all versions of the php package paybysquare/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download paybysquare/laravel
More information about paybysquare/laravel
Files in paybysquare/laravel
Package laravel
Short Description Laravel integration for paybysquare/php: config defaults, facade, and Blade QR component.
License MIT
Informations about the package laravel
paybysquare/laravel
Laravel integration for paybysquare/php, the Pay By Square
(Slovak payment QR standard) payload generator. Provides config-driven
defaults, a facade, and a Blade component for rendering QR codes as inline SVG.
Requirements
- PHP >= 8.2
- Laravel 11, 12, or 13
Installation
The service provider is auto-discovered.
SVG rendering (the qrSvg() method and the Blade component) additionally
requires bacon/bacon-qr-code:
If you only generate payload strings (e.g. to feed a front-end QR library), you do not need it.
Configuration
Publish the config file:
config/paybysquare.php defines defaults applied when the caller omits them:
| Key | Env variable | Default |
|---|---|---|
currency |
PAYBYSQUARE_CURRENCY |
EUR |
iban |
PAYBYSQUARE_IBAN |
null |
swift |
PAYBYSQUARE_SWIFT |
'' |
beneficiary_name |
PAYBYSQUARE_BENEFICIARY_NAME |
null |
With iban and beneficiary_name configured, generating a payment payload
only needs an amount.
Usage
Facade
payload() and qrSvg() also accept a PayBySquare\Payment instance.
Config defaults are only merged into array input; invalid input throws
PayBySquare\ValidationException (its field property names the
offending key).
Blade component
Outputs the QR code as inline SVG. Requires bacon/bacon-qr-code.
Testing
License
MIT
All versions of laravel with dependencies
paybysquare/php Version ^0.1
illuminate/support Version ^11.0|^12.0|^13.0