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

ActiveLibrary[Payment Processing](/categories/payments)

lightshire/laravel-paypal
=========================

A Basic Laravel PHP Wrapper for the Paypal API

6180PHP

Since Feb 11Pushed 12y ago2 watchersCompare

[ Source](https://github.com/lightshire/laravel-paypal)[ Packagist](https://packagist.org/packages/lightshire/laravel-paypal)[ RSS](/packages/lightshire-laravel-paypal/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

\###OVERVIEW This paypal laravel wrapper is created for simultaneous or bulk differentials in the paypal sandbox. This is a pet project for my own REST API for a reservation system. (LOLS)

\###INSTALLATION add the following from your `composer.json`

```
	"lightshire/laravel-paypal": "dev-master"
```

\####SERVICE PROVIDER

```
	'providers'	=> array(
			'Lightshire\Paypal\PaypalServiceProvider',
			'Lightshire\Paypal\IpnServiceProvider'
		)
```

\####FACADE

```
'facades' 	=> array(
			'Paypal'		=> 'Lightshire\Paypal\Facades\Facade',
			'IpnListener'	=> 'Lightshire\Paypal\Facades\IpnListenerFacade'
		)
```

\#####Uses -there is no definite use as of the moment!

\####deploying config files You could easily deploy the config files by running

```
	php artisan config:publish lightshire/laravel-paypal
```

you should see the following

```
	return array(
			'endpoint' 		=> 'api.sandbox.paypal.com',
			'client_id'		=> 'nil',
			'secret' 		=> 'nil',
			'mode' 			=> 'sandbox'
		);
```

change `mode` with `live` or `sandbox` depending on your paypal configuration.

Once you have already created your own paypal application you will be given a `Client ID` and a `Secret`. Those values should replace the `nil` inside the array.

\####Adding pre-made artisan commands an artisan command `command:paypalconfig` was created in order to easily edit the embedded `sdk_config.ini` of the paypal API. to install:

add the following to `app/start/artisan.php`

```
Artisan::add(new Lightshire\Paypal\PaypalConfig);
```

\####Initiating a Paypal instance connection To initiate a paypal instance, after all configuration

```
Paypal::make();
```

since there will only be one instance per connection, directly creating an nstance via `new Paypal` would not override the instance, instead run the `make` method. To get the current instance, connect via:

```
Paypal::getInstance()
```

\###Using the Instant Payment Notification of Paypal for secure transactions paypal requires to have a vaiable callback to initiate an IPNListener

example

```
$mode 		= Config::get('laravel-paypal::config.mode');
$listener 	= new IpnListener();

if($mode == 'sandbox') {
	$listener->use_sandbox = true;
}

try {
	$verified = $listener->processIpn();
}catch(Exception $exs) {
	//an error occured
	exit(0);
}

if($verified) {
	//verified
}else {
	//not verified
}
```

You could also directly wait for a confirmation that would return `true` or `false` by using

```
Paypal::IPNConfirmer()
```

\####Credits Credits to -

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

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/89c90411d4adf92cfbf90f3f51288a55fa55f31f4cf5605fec3f770d90bf62f1?d=identicon)[imcorleone](/maintainers/imcorleone)

---

Top Contributors

[![lightshire](https://avatars.githubusercontent.com/u/3846598?v=4)](https://github.com/lightshire "lightshire (36 commits)")

### Embed Badge

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

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

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