PHPackages                             legionhq/laravel-payrex - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. legionhq/laravel-payrex

ActiveLibrary[Payment Processing](/categories/payments)

legionhq/laravel-payrex
=======================

Laravel package for the PayRex payment platform

v1.1.0(1mo ago)138MITPHPPHP ^8.2CI passing

Since Mar 14Pushed 1mo agoCompare

[ Source](https://github.com/whoami15/payrex-laravel)[ Packagist](https://packagist.org/packages/legionhq/laravel-payrex)[ Docs](https://github.com/whoami15/payrex-laravel)[ GitHub Sponsors](https://github.com/whoami15)[ RSS](/packages/legionhq-laravel-payrex/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (31)Versions (8)Used By (0)

PayRex for Laravel
==================

[](#payrex-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/94fc970a5e44eaee375aeae11a30c322d24ce96e629a4e18289a80359b0aa79c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6567696f6e68712f6c61726176656c2d7061797265782e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/legionhq/laravel-payrex)[![GitHub Tests Action Status](https://camo.githubusercontent.com/bc3326d77cf54cc1616fc89458b79e889f626ada96362d161bf46e3509562436/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f77686f616d6931352f7061797265782d6c61726176656c2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/whoami15/payrex-laravel/actions?query=workflow%3Arun-tests+branch%3Amain)[![PHPStan](https://camo.githubusercontent.com/d4f857f1a285af0d5ef7f77375323a2170925f4757618cf388fb2accb87675da/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f77686f616d6931352f7061797265782d6c61726176656c2f7068707374616e2e796d6c3f6272616e63683d6d61696e266c6162656c3d737461746963253230616e616c79736973267374796c653d666c61742d737175617265)](https://github.com/whoami15/payrex-laravel/actions?query=workflow%3Aphpstan+branch%3Amain)[![Code Coverage](https://camo.githubusercontent.com/e3549b1faedcd761a99f66b8b8bef19aca92f3cfb0cb16c520ded3293ebce267/68747470733a2f2f636f6465636f762e696f2f67682f77686f616d6931352f7061797265782d6c61726176656c2f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/whoami15/payrex-laravel)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/8212915f97c17d6ba29cdb55d0f6eb7e2dc5f5f97fc4cfb1eef7d03593973608/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f77686f616d6931352f7061797265782d6c61726176656c2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/whoami15/payrex-laravel/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/6bd966987c8a70c50c9ae4ae69bdf59b1d0c4f4e3e6c88c283bcf1214ba6ff9e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6567696f6e68712f6c61726176656c2d7061797265782e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/legionhq/laravel-payrex)

Unofficial Laravel package for [PayRex](https://payrex.com) payment platform. Easily accept payments via credit/debit cards, GCash, Maya, BillEase, QR Ph and more.

Documentation
-------------

[](#documentation)

You'll find full documentation on the [docs site](https://payrexlaravel.com).

Basic Usage
-----------

[](#basic-usage)

```
use LegionHQ\LaravelPayrex\Facades\Payrex;

// Create a payment intent
$paymentIntent = Payrex::paymentIntents()->create([
    'amount' => 10000, // ₱100.00 in cents
    'currency' => 'PHP',
    'payment_methods' => ['card', 'gcash', 'maya'],
    'description' => 'Order #1234',
]);

// Create a checkout session
$session = Payrex::checkoutSessions()->create([
    'currency' => 'PHP',
    'line_items' => [
        ['name' => 'Premium Plan', 'amount' => 99900, 'quantity' => 1],
    ],
    'payment_methods' => ['card', 'gcash'],
    'success_url' => route('checkout.success'),
    'cancel_url' => route('checkout.cancel'),
]);

return redirect()->away($session->url);
```

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require legionhq/laravel-payrex
```

Publish the config file:

```
php artisan vendor:publish --tag="payrex-config"
```

Add your API keys to `.env`:

```
PAYREX_PUBLIC_KEY=your_public_key
PAYREX_SECRET_KEY=your_secret_key
PAYREX_WEBHOOK_SECRET=your_webhook_secret
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](SECURITY.md) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Daryl Legion](https://github.com/whoami15)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance91

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

5

Last Release

49d ago

Major Versions

v0.1.0 → v1.0.0-beta12026-03-18

PHP version history (2 changes)v0.1.0PHP ^8.3

v1.0.0-beta1PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/d600d871ae03a16871c4fc2ed49054a25cdaf12f32da91e0a750bbcbc10fea80?d=identicon)[legionhq](/maintainers/legionhq)

---

Top Contributors

[![whoami15](https://avatars.githubusercontent.com/u/16274153?v=4)](https://github.com/whoami15 "whoami15 (8 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

checkoutlaravelpayment-gatewaypayment-intentspaymentspayrexphilippinesphpwebhookslaravelwebhookspaymentscheckoutpayment gatewayphilippinespayrexpayment-intents

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/legionhq-laravel-payrex/health.svg)

```
[![Health](https://phpackages.com/badges/legionhq-laravel-payrex/health.svg)](https://phpackages.com/packages/legionhq-laravel-payrex)
```

###  Alternatives

[laravel/reverb

Laravel Reverb provides a real-time WebSocket communication backend for Laravel applications.

1.5k9.4M48](/packages/laravel-reverb)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)[spatie/laravel-site-search

A site search engine

300129.1k](/packages/spatie-laravel-site-search)[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4845.9k](/packages/sebdesign-laravel-viva-payments)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[asciisd/knet

Knet package is provides an expressive, fluent interface to KNet's payment services.

141.1k](/packages/asciisd-knet)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
