PHPackages                             sytxlabs/laravel-paypal - 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. sytxlabs/laravel-paypal

ActiveLibrary[Payment Processing](/categories/payments)

sytxlabs/laravel-paypal
=======================

A Laravel package to interact with PayPal

1.0.4(2mo ago)31.4k↓51.7%MITPHPPHP ^8.2|^8.3|^8.4|^8.5CI passing

Since Dec 2Pushed 2mo agoCompare

[ Source](https://github.com/SytxLabs/Laravel-PayPal)[ Packagist](https://packagist.org/packages/sytxlabs/laravel-paypal)[ Docs](https://sytxlabs.eu)[ RSS](/packages/sytxlabs-laravel-paypal/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (5)Dependencies (6)Versions (6)Used By (0)

PayPal for Laravel
==================

[](#paypal-for-laravel)

[![MIT Licensed](https://camo.githubusercontent.com/c2bffd81d308ced1cc3b0d66fb0ed453ab478a5e17c988b780f9de986a390ee2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Check code style](https://github.com/SytxLabs/Laravel-PayPal/actions/workflows/code-style.yml/badge.svg?style=flat-square)](https://github.com/SytxLabs/Laravel-PayPal/actions/workflows/code-style.yml)[![Latest Version on Packagist](https://camo.githubusercontent.com/af1ef6b3f953f668817c93e3b4901d393a2b1088493c323c5cf92f4055377d2f/68747470733a2f2f706f7365722e707567782e6f72672f737974786c6162732f6c61726176656c2d70617970616c2f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/sytxlabs/laravel-paypal)[![Total Downloads](https://camo.githubusercontent.com/ed2fd51e3bd9ffee0db41a9eb3bb4ddba15a470b0cc07bc322ca7cf17b8b9941/68747470733a2f2f706f7365722e707567782e6f72672f737974786c6162732f6c61726176656c2d70617970616c2f646f776e6c6f6164733f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/sytxlabs/laravel-paypal)

This package adds a simple way to integrate PayPal payments into your Laravel application.

Prerequisites
-------------

[](#prerequisites)

- A configured Laravel database connection
- PHP 8.2 or higher
- Laravel 10.0 or higher

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

[](#installation)

```
composer require sytxlabs/laravel-paypal
```

Using
-----

[](#using)

- [GuzzleHttp](https://packagist.org/packages/guzzlehttp/guzzle)
- [PayPal API Reference](https://developer.paypal.com/docs/api/overview/)
- [PayPal Account](https://developer.paypal.com/docs/api-basics/sandbox/accounts/)

Configuration
-------------

[](#configuration)

```
php artisan vendor:publish --tag="sytxlabs-paypal-config"
```

the configuration file is located at `config/paypal.php`

Optional Database
-----------------

[](#optional-database)

```
php artisan vendor:publish --tag="sytxlabs-paypal-migrations"
php artisan migrate
```

Usage
-----

[](#usage)

### Create a new PayPal Order

[](#create-a-new-paypal-order)

```
use SytxLabs\PayPal\PayPalOrder;

$paypalOrder = new PayPalOrder();

$paypalOrder->addProduct(new Product('Product 1', 10.00, 1));

$paypalOrder->createOrder();
```

### Redirect to PayPal

[](#redirect-to-paypal)

```
$paypalOrder->approveOrderRedirect();
```

or get the approval link

```
$paypalOrder->getApprovalLink();
```

### Capture the payment

[](#capture-the-payment)

```
$paypalOrder->captureOrder();
```

### Check the payment status

[](#check-the-payment-status)

```
$paypalOrder->captureOrder()->getOrderStatus();
```

License
-------

[](#license)

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

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance83

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~121 days

Total

5

Last Release

86d ago

PHP version history (3 changes)v1.0.0PHP ^8.2|^8.3

1.0.3PHP ^8.2|^8.3|^8.4

1.0.4PHP ^8.2|^8.3|^8.4|^8.5

### Community

Maintainers

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

---

Top Contributors

[![shaunluedeke](https://avatars.githubusercontent.com/u/77498048?v=4)](https://github.com/shaunluedeke "shaunluedeke (87 commits)")

---

Tags

laravelpayment-gatewaypaypallaravelpaymentpaypalpayment gatewaypayment-servicepayment processorpayment solutionpayment system

### Embed Badge

![Health badge](/badges/sytxlabs-laravel-paypal/health.svg)

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

###  Alternatives

[shetabit/multipay

PHP Payment Gateway Integration Package

293355.3k4](/packages/shetabit-multipay)[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4849.3k](/packages/sebdesign-laravel-viva-payments)[luigel/laravel-paymongo

A laravel wrapper for Paymongo API

7961.3k1](/packages/luigel-laravel-paymongo)

PHPackages © 2026

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