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

ActiveLibrary[Payment Processing](/categories/payments)

pkg6/paypal
===========

php client for PayPal SDK

v0.0.1(1y ago)0233↓100%MITPHPPHP &gt;=7.2CI failing

Since Feb 26Pushed 1y agoCompare

[ Source](https://github.com/pkg6/paypal-php)[ Packagist](https://packagist.org/packages/pkg6/paypal)[ RSS](/packages/pkg6-paypal/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (8)Versions (2)Used By (0)

Installation
============

[](#installation)

```
composer require pkg6/paypal

```

Using the Documentation
=======================

[](#using-the-documentation)

- [RestClient](https://github.com/pkg6/paypal-php/wiki/PayPal-REST-APIs)
    ----------------------------------------------------------------------

    [](#restclient)

```
$config = [
    // Can only be 'sandbox' Or 'live'. If empty or invalid, 'live' will be used.
    'mode'           => 'live',
    'client_id'      => 'some-client-id',
    'client_secret'  => 'some-client-secret',
    'app_id'         => 'APP-80W284485P519543T',
     // Can only be 'Sale', 'Authorization' or 'Order'
    'payment_action' => 'Sale',
    'currency'       => 'USD',
     // Change this accordingly for your application.
    'notify_url'     => 'https://your-app.com/paypal/notify',
    // force gateway language  i.e. it_IT, es_ES, en_US ... (for express checkout only)
    'locale'         => 'en_US',
    // Validate SSL when creating api client.
    'validate_ssl'   => true,
];
$rest = new \pkg6\paypal\RestClient($config);
//Get Access Token
$rest->getAccessToken();

```

> For more instructions, see the documentation:
>
>

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance46

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity22

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

437d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/28b119a234a9963e2266b2b493c037b1d7f01d3e17a06a3ffe94481549efa47b?d=identicon)[1751212020](/maintainers/1751212020)

---

Top Contributors

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

---

Tags

paypalREST API

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[shetabit/multipay

PHP Payment Gateway Integration Package

291348.2k3](/packages/shetabit-multipay)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[lemonsqueezy/laravel

A package to easily integrate your Laravel application with Lemon Squeezy.

58596.1k](/packages/lemonsqueezy-laravel)[imdhemy/google-play-billing

Google Play Billing

491.3M5](/packages/imdhemy-google-play-billing)[jms/payment-paypal-bundle

Payment Bundle providing access to the PayPal API

124405.8k1](/packages/jms-payment-paypal-bundle)

PHPackages © 2026

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