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

AbandonedLibrary[Payment Processing](/categories/payments)

rixafy/paypal
=============

Lightweight paypal API for creating and receiving paypal payments

v1.0.0(7y ago)0107MITPHP

Since May 14Pushed 5y agoCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Paypal
======

[](#paypal)

💳 Lightweight PHP paypal library for creating and handling payments

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

[](#installation)

```
composer require rixafy/paypal

```

Example usage
=============

[](#example-usage)

Create payment URL for user
---------------------------

[](#create-payment-url-for-user)

```
$paypalBuilder = new PaypalLinkBuilder();

$paypalBuilder->setIsShoppingCart(true);
$paypalBuilder->setAccount('yourEmail@gmail.com');
$paypalBuilder->setCurrencyCode('EUR');
$paypalBuilder->setCallBack('https://api.yoursite.com/ipn-receiver');
$paypalBuilder->setLanguage('en_US');
$paypalBuilder->setCustom('customValue'); // should be payment id
$paypalBuilder->setImage('https://example.com/image.png');
$paypalBuilder->setStoreInfo('YourBusinessName', 'BuyNow', 'WPS', 'US');
$paypalBuilder->addItem("Product 1", 5, 10); // qty 5, price 10
$paypalBuilder->addItem("Product 2", 1, 15); // qty 1, price 15
$paypalBuilder->setCustomParameter(0, 'Order ID:', 1885); // up to 6 custom parameters

echo 'Paypal URL is ' . $paypalBuilder; // redirect user to this URL
```

Accept IPN request from paypal
------------------------------

[](#accept-ipn-request-from-paypal)

```
$paypal = new Paypal($debug = false);

try {
  $paypalData = $paypal->verifyRequest($postData);

} catch (PaypalValidationException $e) {
  // payment error, invalid payment or some problem with transaction

} catch (PaypalRequestException $e) {
  // request is not from paypal domain, probably fake
}

$paymentId = $paypalData->getCustom(); // customValue
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

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

2557d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4bf4ee88447a7ca740f8af98fb7d3616e62db0401458102425b2322d0cc4019d?d=identicon)[delacry](/maintainers/delacry)

---

Top Contributors

[![delacry](https://avatars.githubusercontent.com/u/45132928?v=4)](https://github.com/delacry "delacry (17 commits)")

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/rixafy-paypal/health.svg)](https://phpackages.com/packages/rixafy-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)
