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

ActiveLibrary

ambitionphp/paypal-laravel
==========================

A Laravel 5 wrapper for PayPal

017PHP

Since Apr 16Pushed 6y agoCompare

[ Source](https://github.com/ambitionphp/paypal-laravel)[ Packagist](https://packagist.org/packages/ambitionphp/paypal-laravel)[ RSS](/packages/ambitionphp-paypal-laravel/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

PayPal Laravel
==============

[](#paypal-laravel)

> A Laravel 6 wrapper for PayPal

Requirements
------------

[](#requirements)

- PHP &gt;= 5.5

This package wraps [paypal/rest-api-sdk-php](https://github.com/paypal/PayPal-PHP-SDK) package.

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

[](#installation)

Require the package

```
composer require pulkitjalan/paypal-laravel
```

Laravel 5.5 uses Package Auto-Discovery, so you don't need to manually add the ServiceProvider.

If you don't use auto-discovery, add the following to the `providers` array in your `config/app.php`

```
PulkitJalan\PayPal\PayPalServiceProvider::class,
```

Next add the following to the `aliases` array in your `config/app.php`. Pick and choose if you want or add all 3.

```
'PayPal' => PulkitJalan\PayPal\Facades\PayPal::class,
```

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

[](#configuration)

The config is set in `config/services.php`

```
'paypal' => [
    'client_id' => env('PAYPAL_CLIENT_ID'),
    'client_secret' => env('PAYPAL_CLIENT_SECRET'),
    'mode' => env('PAYPAL_MODE'), // default is sandbox
    // 'log' => [
    //     'enabled' => true // default is false
    //     'file' => 'paypal.log' // default is laravel.log
    //     'level' => 'DEBUG' // default is DEBUG
    // ],
],
```

Usage
-----

[](#usage)

Main use is to get one of the PayPal api classes.

```
use PulkitJalan\PayPal\PayPal

class App {
    protected $paypal;

    public function __construct(PayPal $paypal)
    {
        $this->paypal = $paypal;
    }

    public function payout()
    {
        $payouts = $this->paypal->payout(); // returns PayPal\Api\Payout
        $senderBatchHeader = $this->paypal->payoutSenderBatchHeader(); // returns PayPal\Api\PayoutSenderBatchHeader
        ...
        $senderItem = $this->paypal->payoutItem();  // returns PayPal\Api\PayoutItem
        ...
        $payouts->setSenderBatchHeader($senderBatchHeader)
            ->addItem($senderItem);
        ...
        $payout->create([], $this->paypal->getApiContext());
    }
}
```

Similar Packages
----------------

[](#similar-packages)

- [netshell/paypal](https://github.com/net-shell/laravel-paypal)
- [srmklive/paypal](https://github.com/srmklive/laravel-paypal)
- [anouar/paypalpayment](https://github.com/anouarabdsslm/laravel-paypalpayment)

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ddff88901fe95772277efdefb74ba68d41c212f61d4ad6dc2ac369dc688c63a?d=identicon)[ambitionphp](/maintainers/ambitionphp)

---

Top Contributors

[![pulkitjalan](https://avatars.githubusercontent.com/u/4124930?v=4)](https://github.com/pulkitjalan "pulkitjalan (6 commits)")

### Embed Badge

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

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

PHPackages © 2026

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