PHPackages                             pulkitjalan/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. [Payment Processing](/categories/payments)
4. /
5. pulkitjalan/paypal-laravel

AbandonedArchivedLibrary[Payment Processing](/categories/payments)

pulkitjalan/paypal-laravel
==========================

A Laravel 5 wrapper for PayPal

12.3k2PHP

Since Aug 7Pushed 8y ago1 watchersCompare

[ Source](https://github.com/pulkitjalan/paypal-laravel)[ Packagist](https://packagist.org/packages/pulkitjalan/paypal-laravel)[ RSS](/packages/pulkitjalan-paypal-laravel/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#paypal-laravel)

> A Laravel 5 wrapper for PayPal

[![Total Downloads](https://camo.githubusercontent.com/9aa6e0790350093d48b0dd0fbaea87716735c54b4cd21df40242f58ccc2632e8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70756c6b69746a616c616e2f70617970616c2d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pulkitjalan/paypal-laravel)

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

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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/1c8dabba7c421c44b7d28698dfacd338f88f1cff6ef2207650ce77de0edd7a83?d=identicon)[pulkitjalan](/maintainers/pulkitjalan)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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