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

ActiveLibrary[Payment Processing](/categories/payments)

thecodingcompany/laravel-paypal-light
=====================================

Laravel PayPal Light library for Google App Engine. This library does NOT require Curl.

v1.0.3(9y ago)159MITPHPPHP &gt;=5.5.0

Since Nov 6Pushed 9y ago1 watchersCompare

[ Source](https://github.com/TheCodingCompany/Laravel-PayPal-Light)[ Packagist](https://packagist.org/packages/thecodingcompany/laravel-paypal-light)[ Docs](https://github.com/TheCodingCompany/Laravel-PayPal-Light)[ RSS](/packages/thecodingcompany-laravel-paypal-light/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

Laravel-PayPal-Light
====================

[](#laravel-paypal-light)

Laravel PayPal Light library for Google App Engine

Installation using Composer
===========================

[](#installation-using-composer)

```
composer require thecodingcompany/laravel-paypal-light

```

Examples
========

[](#examples)

Create Payment Example
----------------------

[](#create-payment-example)

```
require_once __DIR__.'/src/PayPalLight/HttpRequest.php';
require_once __DIR__.'/src/PayPalLight/PayPalLight.php';
require_once __DIR__.'/src/PayPalLight/PayPalPayment.php';
require_once __DIR__.'/src/PayPalLight/CreditCardPayment.php';
require_once __DIR__.'/src/PayPalLight/PayPalTransaction.php';

use CodingCompany\PayPal\PayPalPayment as PayPalPayment;
use CodingCompany\PayPal\PayPalTransaction as PayPalTransaction;

$p = new PayPalPayment(array(
    'client_id'         => 'AddMFxCjj3QgJZT4kYgrgegbfdbgthre9Qj24o_P8Ldag7yeu2A',
    'client_secret'     => 'EFNXQgBjL9PQO0ZeuC5_4567547y6htet5ert34435_tct4nFU7g'
));

$p->set_endpoint("https://api.paypal.com");

$transaction = new PayPalTransaction();
$transaction->amount = array(
    "total" => "1.00",
    "currency" => "USD"
);
$transaction->description = "PayPal transaction";
$p->set_transaction($transaction);

$p->set_return_url("http://localhost:8000/paypal/callback");
$p->set_cancel_url("http://localhost:8000/paypal/cancel");

$response = $p->authorize_payment();

```

User wil be routed to PayPal to authorize the payment. After that the user will be redirected to the 'RETURN' URL supplied.

Authorize Payment Example
-------------------------

[](#authorize-payment-example)

```
require_once __DIR__.'/src/PayPalLight/HttpRequest.php';
require_once __DIR__.'/src/PayPalLight/PayPalLight.php';
require_once __DIR__.'/src/PayPalLight/PayPalPayment.php';
require_once __DIR__.'/src/PayPalLight/CreditCardPayment.php';
require_once __DIR__.'/src/PayPalLight/PayPalTransaction.php';

use CodingCompany\PayPal\PayPalPayment as PayPalPayment;
use CodingCompany\PayPal\PayPalTransaction as PayPalTransaction;

$p = new PayPalPayment(array(
    'client_id'         => 'AddMFxCjj3QgJZT4kYgrgegbfdbgthre9Qj24o_P8Ldag7yeu2A',
    'client_secret'     => 'EFNXQgBjL9PQO0ZeuC5_4567547y6htet5ert34435_tct4nFU7g'
));

$p->set_endpoint("https://api.paypal.com");

$response = $p->execute_payment(array(
    "paymentId" => "PAY-554",
    "token" => "EC-45645",
    "PayerID" => "455454"
));

```

$response looks like:

Array ( \[id\] =&gt; PAY-554 \[intent\] =&gt; sale \[state\] =&gt; approved \[cart\] =&gt; 10E457GK130324L \[payer\] =&gt; Array ( \[payment\_method\] =&gt; paypal etc etc etc ) )

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

Every ~0 days

Total

4

Last Release

3523d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fed446a0fab5b78203177cd58558c0afecaca5643644bd5e44cd1349942a6c6a?d=identicon)[digitalhuman](/maintainers/digitalhuman)

---

Top Contributors

[![digitalhuman](https://avatars.githubusercontent.com/u/780848?v=4)](https://github.com/digitalhuman "digitalhuman (26 commits)")

---

Tags

phplaravelpaypalgaegoogle app enginePayPalLight

### Embed Badge

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

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

###  Alternatives

[tomatophp/filament-payments

Manage your payments inside FilamentPHP app with multi payment gateway integration

532.4k](/packages/tomatophp-filament-payments)[logicalgrape/paypal-ipn-laravel

A PayPal IPN client for Laravel.

3416.2k](/packages/logicalgrape-paypal-ipn-laravel)

PHPackages © 2026

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