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

ActiveLibrary[Payment Processing](/categories/payments)

azizyus/paypal-extra
====================

1.0(4y ago)070MITPHP

Since Aug 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/azisyus/paypal-extra)[ Packagist](https://packagist.org/packages/azizyus/paypal-extra)[ RSS](/packages/azizyus-paypal-extra/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (0)

undefined but necessary request for paypal-connect, this request simply represents this page; [https://developer.paypal.com/docs/api/identity/v1/#userinfo\_get](https://developer.paypal.com/docs/api/identity/v1/#userinfo_get) (/v1/identity/oauth2/userinfo)

INSTALL
-------

[](#install)

`composer require azizyus/paypal-extra`

### USAGE

[](#usage)

```
$scopes = $_GET['scope'];
$code = $_GET['code'];
$clientId = 'CLIENT_ID';
$clientSecret = 'CLIENT_SECRET';

$environment = new SandboxEnvironment($clientId, $clientSecret);
$client = new PayPalHttpClient($environment);

$request = new AccessTokenRequest($environment);
$request->body = [
    'grant_type' => 'authorization_code',
    'code' => $code
];

$response = $client->execute($request);
if($response->statusCode === 200)
{
    $accessToken = $response->result->access_token;
    $userResponse = $client->execute(new UserInfoRequest($accessToken));
    if($userResponse->statusCode === 200)
    {
        $result = $userResponse->result;
        header('Content-Type: application/json');
        echo json_encode($result);
    }
}

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1735d ago

### Community

Maintainers

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

---

Top Contributors

[![azisyus](https://avatars.githubusercontent.com/u/26818892?v=4)](https://github.com/azisyus "azisyus (5 commits)")

### Embed Badge

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

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

###  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)
