Download the PHP package byrcsc/laravel-payrex without Composer
On this page you can find all versions of the php package byrcsc/laravel-payrex. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download byrcsc/laravel-payrex
More information about byrcsc/laravel-payrex
Files in byrcsc/laravel-payrex
Package laravel-payrex
Short Description Unofficial PayRex SDK for Laravel: typed resources, readonly DTOs, and first-class webhook handling.
License MIT
Homepage https://github.com/byrcsc/laravel-payrex
Informations about the package laravel-payrex
Laravel PayRex
An unofficial Laravel SDK for the PayRex payments API: typed resources, readonly DTOs, and webhook handling that feels like the rest of your app.
Built for Laravel projects accepting payments in the Philippines and shared with the community, it brings PayRex's documented API into familiar Laravel conventions.
Read the full documentation for installation, resources, webhooks, pagination, testing, and security guidance.
| Laravel | Supported PHP versions |
|---|---|
| 12.x | 8.2, 8.3, 8.4, 8.5 |
| 13.x | 8.3, 8.4, 8.5 |
Installation
Install the package and publish its configuration:
Add your PayRex test credentials:
See the installation guide for all configuration options and the optional customer migration.
Quick start
Use the facade or inject PayrexClient. Both resolve to the same singleton.
Amounts are integers in the smallest currency unit: 10_000 is ₱100.00. Never
send a floating-point amount.
What is included
- Typed resources for payments, checkout, customers, refunds, payouts, billing, and webhook endpoints.
- Readonly data objects that retain the untouched API payload on
$raw. - Verified webhooks dispatched as generic and type-specific Laravel events.
- Typed exceptions, response metadata, and conservative retries for
GETrequests. - Automatic cursor iteration and Laravel
CursorPaginatorsupport. - An Eloquent customer concern and Artisan commands for managing webhooks.
Http::fake()support throughout the client.
Important behavior
- Mutating requests are never retried. PayRex documents no idempotency keys, so replaying an ambiguous request could duplicate a payment or refund.
- Queue webhook listeners and deduplicate them using the PayRex event ID. Signature freshness checks do not prevent the same valid event from arriving more than once.
- PayRex does not expose a subscription resource. Recurring billing must be modelled explicitly, such as with a billing statement for each cycle.
- Keep
PAYREX_SECRET_KEYon the server. Only the public key is intended for browser use with PayRex Elements.
Documentation
- Installation and setup
- Quick start
- Client and resources
- Receiving webhooks
- Testing
- Security and operations
Support and contributing
Ask usage questions in GitHub Discussions. For reproducible package bugs, open an issue. See CONTRIBUTING.md before opening a pull request.
Report vulnerabilities privately by following SECURITY.md.
Credits
API behavior is referenced against the official
PayRex documentation and
payrex/payrex-php SDK.
License
MIT. See CHANGELOG.md.
All versions of laravel-payrex with dependencies
ext-json Version *
illuminate/console Version ^12.0||^13.0
illuminate/contracts Version ^12.0||^13.0
illuminate/database Version ^12.0||^13.0
illuminate/http Version ^12.0||^13.0
illuminate/support Version ^12.0||^13.0
spatie/laravel-package-tools Version ^1.16