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

ActiveLibrary[Payment Processing](/categories/payments)

naif/laravel-paypal
===================

Laravel PayPal to communicate with PayPal API to get current balance and transactions

254513[2 issues](https://github.com/naifalshaye/laravel-paypal/issues)PHP

Since Mar 31Pushed 4y agoCompare

[ Source](https://github.com/naifalshaye/laravel-paypal)[ Packagist](https://packagist.org/packages/naif/laravel-paypal)[ RSS](/packages/naif-laravel-paypal/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel PayPal Package
======================

[](#laravel-paypal-package)

To communicate with PayPal API to get current balance and transactions.

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

[](#installation)

```
composer require naif/laravel-paypal

```

If your Laravel below 5.5 you need to add service provider and alias to config/app.php

```
Naif\LaravelPayPal\LaravelPayPalServiceProvider::class,

'PayPal' => Naif\LaravelPayPal\Facades\LaravelPayPal::class,

```

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

[](#configuration)

Publish the package config file:

```
php artisan vendor:publish --provider="Naif\LaravelPayPal\LaravelPayPalServiceProvider"
```

Configuration will be published at \[config/laravel-paypal.php\].

API KEYS
--------

[](#api-keys)

Get your API access from PayPal website

Paypal &gt; Profile &gt; Profile and settings &gt; My selling tools &gt; API access &gt; NVP/SOAP API integration (Classic)

[![Package screenshot](https://github.com/naifalshaye/nova-paypal/raw/master/screenshots/auth.png)](https://github.com/naifalshaye/nova-paypal/blob/master/screenshots/auth.png)

Add these to your .env

```
LARAVEL_PAYPAL_USERNAME=
LARAVEL_PAYPAL_PASSWORD=
LARAVEL_PAYPAL_SIGNATURE=

```

Usage
-----

[](#usage)

```
use Naif\LaravelPayPal\LaravelPayPal;

$paypal = new LaravelPayPal();

//Get Current Balance

$balance = $paypal->getBalance();

Response:
[
  "balance" => array:5 [▼
      "ACK" => "Success"
      "L_AMT0" => "120.62"
      "L_SEVERITYCODE0" => null
      "L_ERRORCODE0" => null
      "L_LONGMESSAGE0" => null
    ]
]

//Get Transactions

$transactions = $paypal->getTransactions();
You can specify the number of days and number of transactions to retreive. Default (7 days, 10 transations)

Response:
[
 "transactions" => array:3 [▼
     0 => array:11 [▼
       "timestamp" => "2019-01-17"
       "timezone" => "GMT"
       "type" => "Payment"
       "email" => "naif@naif.io"
       "name" => "Naif Alshaye"
       "transaction_id" => "3DR402287R3992703"
       "status" => "Completed"
       "amt" => "1.00"
       "currency_code" => "USD"
       "fee_amount" => "-0.34"
       "net_amount" => "0.66"
     ]
 ]
]

```

Support:
--------

[](#support)

License
-------

[](#license)

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

###  Health Score

21

—

LowBetter than 17% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 Bus Factor1

Top contributor holds 73.3% 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/323a5cbb1087ce4edc9deec40b03736b6d43a3ca205615b346108ed57f58e50e?d=identicon)[naifdev](/maintainers/naifdev)

---

Top Contributors

[![naifalshaye](https://avatars.githubusercontent.com/u/23122187?v=4)](https://github.com/naifalshaye "naifalshaye (11 commits)")[![h9k](https://avatars.githubusercontent.com/u/1579124?v=4)](https://github.com/h9k "h9k (4 commits)")

### Embed Badge

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

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

###  Alternatives

[pagseguro/php

Biblioteca de integração com o PagSeguro

23260.3k6](/packages/pagseguro-php)[msilabs/bkash

bKash Payment Gateway API for Laravel Framework.

182.2k](/packages/msilabs-bkash)[xfoxawy/2checkout

2Checkout API Service Provider

101.1k](/packages/xfoxawy-2checkout)

PHPackages © 2026

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