PHPackages                             angelleye/paypal-php-library - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. angelleye/paypal-php-library

ActiveLibrary[HTTP &amp; Networking](/categories/http)

angelleye/paypal-php-library
============================

PHP wrapper for PayPal APIs

v3.0.5(5y ago)243440.9k—1%88[16 issues](https://github.com/angellops/paypal-php-library/issues)[1 PRs](https://github.com/angellops/paypal-php-library/pulls)GPL-3.0+PHPPHP &gt;=5.3.0

Since Mar 25Pushed 1mo ago28 watchersCompare

[ Source](https://github.com/angellops/paypal-php-library)[ Packagist](https://packagist.org/packages/angelleye/paypal-php-library)[ Docs](https://github.com/angelleye/paypal-php-library)[ RSS](/packages/angelleye-paypal-php-library/feed)WikiDiscussions release Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (26)Used By (0)

Angell EYE PayPal PHP Library
=============================

[](#angell-eye-paypal-php-library)

This PHP class library for PayPal makes it easy to integrate PayPal APIs, including the [PayPal REST APIs](https://developer.paypal.com/docs/api/overview/) and Classic APIs like the [Payments Standard Button Manager](https://developer.paypal.com/webapps/developer/docs/classic/api/#bm), [Invoicing](https://developer.paypal.com/webapps/developer/docs/classic/api/#invoicing), [General Merchant APIs](https://developer.paypal.com/webapps/developer/docs/classic/api/#merchant), and [Permissions](https://developer.paypal.com/webapps/developer/docs/classic/api/#permissions).

---

Server Requirements
-------------------

[](#server-requirements)

- PHP version 5.3.0 or newer.
- cURL

Installation
------------

[](#installation)

### Video Overview

[](#video-overview)

[![Install via Composer or Manual Download Overview Video](https://camo.githubusercontent.com/2b0dc06157893ac32fad2d392c63248de120e2434e955c5c7447de62894343ed/687474703a2f2f696d672e796f75747562652e636f6d2f76692f66397769386d375f4644632f302e6a7067)](http://www.youtube.com/watch?feature=player_embedded&v=f9wi8m7_FDc)### Composer Install

[](#composer-install)

Create a composer.json file with the following section and run composer update.

```
    "require": {
		"php": ">=5.3.0",
		"ext-curl": "*",
		"angelleye/paypal-php-library": "3.0.*"
	}
```

### Manual Install (without Composer)

[](#manual-install-without-composer)

- [Download](https://github.com/angelleye/paypal-php-library/archive/master.zip) the class library and extract the contents do a directory in your project structure.
- Upload the files to your web server.

Setup
-----

[](#setup)

Open /samples/config/config-sample.php, fill out your details accordingly, and save-as config.php to a location of your choice.

To use the library in your project, include the following into your file(s).

- /path/to/config.php
- autoload.php

Usage
-----

[](#usage)

- Open the template file that corresponds to the API call you'd like to make.

    - Example: If we want to make a call to the RefundTransaction API we open up /templates/RefundTransaction.php
- You may leave the file here, or save this file to the location on your web server where you'd like this call to be made.

    - I like to save the files to a separate location and keep the ones included with the library as empty templates.
    - Note that you can also copy/paste the template code into your own file(s).
- Each template file prepares the PayPal class object for you and includes PHP arrays for every parameter available to that particular API. Simply fill in the array parameters with your own dynamic (or static) data. This data may come from:

    - Session Variables
    - General Variables
    - Database Recordsets
    - Static Values
    - Etc.
- When you run the file you will get a $PayPalResult array that consists of all the response parameters from PayPal, original request parameters sent to PayPal, and raw request/response info for troubleshooting.

    - You may refer to the [PayPal Developer Documentation](https://developer.paypal.com/docs/) for details about what response parameters you can expect to get back from any successful API request.
        - Example: When working with RefundTransaction, I can see that PayPal will return a REFUNDTRANSACTIONID, FEEREFUNDAMT, etc. As such, I know that those values will be included in $PayPalResult\['REFUNDTRANSACTIONID'\] and $PayPalResult\['FEEREFUNDAMT'\] respectively.
- If errors occur they will be available in $PayPalResult\['ERRORS'\]

You may refer to this [overview video](http://www.angelleye.com/overview-of-php-class-library-for-paypal/) of how to use the library, and there are also samples provided in the /samples directory as well as blank templates ready to use under /templates.

If you need additional help you may [place an order for premium support](http://www.angelleye.com/product/paypal-help/).

Fully Functional Demos
----------------------

[](#fully-functional-demos)

The library comes with basic usage samples, but if you feel more comfortable seeing the integration inside a fully functional demo that is built into a basic shopping cart system, take a look at our [demo kits available on our website](https://www.angelleye.com/product-category/php-class-libraries/demo-kits/).

You can find our FREE demos inside /demo directory. If you have purchased any demo then you just need to add those inside demo directory and its ready to go.

Tutorials
---------

[](#tutorials)

- [How to install the Angell EYE PHP Class Library for PayPal](http://www.angelleye.com/install-angell-eye-php-class-library-paypal/)

Supported APIs
--------------

[](#supported-apis)

### REST APIs

[](#rest-apis)

- [Orders API](https://developer.paypal.com/docs/api/orders/v2/)
- [Payments API](https://developer.paypal.com/docs/api/payments/v2/)
- [Invoicing API](https://developer.paypal.com/docs/api/invoicing/v1/)
- [Identity API](https://developer.paypal.com/docs/api/identity/v1/)
- [Billing Plans API](https://developer.paypal.com/docs/api/payments.billing-plans/v1/)
- [Billing Agreements API](https://developer.paypal.com/docs/api/payments.billing-agreements/v1/)
- [PayPal Sync API](https://developer.paypal.com/docs/api/sync/v1/)
- [Customer Disputes API](https://developer.paypal.com/docs/api/customer-disputes/v1/)
- [Payouts API](https://developer.paypal.com/docs/api/payments.payouts-batch/v1/)
- [Vault API](https://developer.paypal.com/docs/api/vault/v1/)
- [Webhooks Management API](https://developer.paypal.com/docs/api/webhooks/v1/)

### Payments Standard Button Manager

[](#payments-standard-button-manager)

- [BMButtonSearch](https://developer.paypal.com/webapps/developer/docs/classic/api/button-manager/BMButtonSearch_API_Operation_NVP/)
- [BMCreateButton](https://developer.paypal.com/webapps/developer/docs/classic/api/button-manager/BMCreateButton_API_Operation_NVP/)
- [BMGetButtonDetails](https://developer.paypal.com/webapps/developer/docs/classic/api/button-manager/BMGetButtonDetails_API_Operation_NVP/)
- [BMGetInventory](https://developer.paypal.com/webapps/developer/docs/classic/api/button-manager/BMGetInventory_API_Operation_NVP/)
- [BMManageButtonStatus](https://developer.paypal.com/webapps/developer/docs/classic/api/button-manager/BMManageButtonStatus_API_Operation_NVP/)
- [BMSetInventory](https://developer.paypal.com/webapps/developer/docs/classic/api/button-manager/BMSetInventory_API_Operation_NVP/)
- [BMUpdateButton](https://developer.paypal.com/webapps/developer/docs/classic/api/button-manager/BMUpdateButton_API_Operation_NVP/)

### Button Manager

[](#button-manager)

- [BMButtonSearch](https://developer.paypal.com/webapps/developer/docs/classic/api/button-manager/BMButtonSearch_API_Operation_NVP/)

### Invoicing

[](#invoicing)

- [CancelInvoice](https://developer.paypal.com/webapps/developer/docs/classic/api/invoicing/CancelInvoice_API_Operation/)
- [CreateAndSendInvoice](https://developer.paypal.com/webapps/developer/docs/classic/api/invoicing/CreateAndSendInvoice_API_Operation/)
- [CreateInvoice](https://developer.paypal.com/webapps/developer/docs/classic/api/invoicing/CreateInvoice_API_Operation/)
- [DeleteInvoice](https://developer.paypal.com/webapps/developer/docs/classic/api/invoicing/DeleteInvoice_API_Operation/)
- [GenerateInvoiceNumber](https://developer.paypal.com/webapps/developer/docs/classic/api/invoicing/GenerateInvoiceNumber_API_Operation/)
- [GetInvoiceDetails](https://developer.paypal.com/webapps/developer/docs/classic/api/invoicing/GetInvoiceDetails_API_Operation/)
- [MarkInvoiceAsPaid](https://developer.paypal.com/webapps/developer/docs/classic/api/invoicing/MarkInvoiceAsPaid_API_Operation/)
- [MarkInvoiceAsRefunded](https://developer.paypal.com/webapps/developer/docs/classic/api/invoicing/MarkInvoiceAsRefunded_API_Operation/)
- [MarkInvoiceAsUnpaid](https://developer.paypal.com/webapps/developer/docs/classic/api/invoicing/MarkInvoiceAsUnpaid_API_Operation/)
- [RemindInvoice](https://developer.paypal.com/webapps/developer/docs/classic/api/invoicing/RemindInvoice_API_Operation/)
- [SearchInvoices](https://developer.paypal.com/webapps/developer/docs/classic/api/invoicing/SearchInvoices_API_Operation/)
- [SendInvoice](https://developer.paypal.com/webapps/developer/docs/classic/api/invoicing/SendInvoice_API_Operation/)
- [UpdateInvoice](https://developer.paypal.com/webapps/developer/docs/classic/api/invoicing/UpdateInvoice_API_Operation/)

### Merchant

[](#merchant)

- [AddressVerify](https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/AddressVerify_API_Operation_NVP/)
- [BAUpdate](https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/BAUpdate_API_Operation_NVP/)
- [BillOutstandingAmount](https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/BillOutstandingAmount_API_Operation_NVP/)
- [Callback (Express Checkout)](https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/Callback_API_Operation_NVP/)
- [CreateBillingAgreement](https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/CreateBillingAgreement_API_Operation_NVP/)
- [CreateRecurringPaymentsProfile](https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/CreateRecurringPaymentsProfile_API_Operation_NVP/)
- [DoAuthorization](https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/DoAuthorization_API_Operation_NVP/)
- [DoCapture](https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/DoCapture_API_Operation_NVP/)
- [DoDirectPayment](https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/DoDirectPayment_API_Operation_NVP/)
- [DoExpressCheckoutPayment](https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/DoExpressCheckoutPayment_API_Operation_NVP/)
- [DoNonReferencedCredit](https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/DoNonReferencedCredit_API_Operation_NVP/)
- [DoReauthorization](https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/DoReauthorization_API_Operation_NVP/)
- [DoReferenceTransaction](https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/DoReferenceTransaction_API_Operation_NVP/)
- [DoVoid](https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/DoVoid_API_Operation_NVP/)
- [GetBalance](https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/GetBalance_API_Operation_NVP/)
- [GetBillingAgreementCustomerDetails](https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/GetBillingAgreementCustomerDetails_API_Operation_NVP/)
- [GetExpressCheckoutDetails](https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/GetExpressCheckoutDetails_API_Operation_NVP/)
- [GetPalDetails](https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/GetPalDetails_API_Operation_NVP/)
- [GetRecurringPaymentsProfileDetails](https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/GetRecurringPaymentsProfileDetails_API_Operation_NVP/)
- GetRecurringPaymentsProfileStatus
- [GetTransactionDetails](https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/GetTransactionDetails_API_Operation_NVP/)
- [ManagePendingTransactionStatus](https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/ManagePendingTransactionStatus_API_Operation_NVP/)
- [ManageRecurringPaymentsProfileStatus](https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/ManageRecurringPaymentsProfileStatus_API_Operation_NVP/)
- [MassPay](https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/MassPay_API_Operation_NVP/)
- [RefundTransaction](https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/RefundTransaction_API_Operation_NVP/)
- [SetCustomerBillingAgreement](https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/SetCustomerBillingAgreement_API_Operation_NVP/)
- [SetExpressCheckout](https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/SetExpressCheckout_API_Operation_NVP/)
- [TransactionSearch](https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/TransactionSearch_API_Operation_NVP/)
- [UpdateRecurringPaymentsProfile](https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/UpdateRecurringPaymentsProfile_API_Operation_NVP/)

### Permissions

[](#permissions)

- [CancelPermissions](https://developer.paypal.com/webapps/developer/docs/classic/api/permissions/CancelPermissions_API_Operation/)
- [GetAccessToken](https://developer.paypal.com/webapps/developer/docs/classic/api/permissions/GetAccessToken_API_Operation/)
- [GetAdvancedPersonalData](https://developer.paypal.com/webapps/developer/docs/classic/api/permissions/GetAdvancedPersonalData_API_Operation/)
- [GetBasicPersonalData](https://developer.paypal.com/webapps/developer/docs/classic/api/permissions/GetBasicPersonalData_API_Operation/)
- [GetPermissions](https://developer.paypal.com/webapps/developer/docs/classic/api/permissions/GetPermissions_API_Operation/)
- [RequestPermissions](https://developer.paypal.com/webapps/developer/docs/classic/api/permissions/RequestPermissions_API_Operation/)

### PayPal Manager (PayFlow Gateway)

[](#paypal-manager-payflow-gateway)

- [PayFlowTransaction](https://www.paypalobjects.com/webstatic/en_US/developer/docs/pdf/payflowgateway_guide.pdf)

### Financing Banners

[](#financing-banners)

- FinancingBannerEnrollment

### Deprecated

[](#deprecated)

- DoMobileCheckoutPayment
- GetAccessPermissionsDetails
- GetAuthDetails
- SetAccessPermissions
- SetAuthFlowParam
- SetMobileCheckout
- UpdateAccessPermissions
- Adaptive Accounts
- Adaptive Payments

Resources
---------

[](#resources)

- [PayPal Checkout](https://developer.paypal.com/docs/checkout/)
- [REST APIs](https://developer.paypal.com/docs/api/overview/)
- [Invoicing Service API](https://developer.paypal.com/docs/invoicing/)
- [Payouts](https://developer.paypal.com/docs/payouts/)
- [Subscriptions](https://developer.paypal.com/docs/subscriptions/)
- [Payments Standard Button Manager Guide](https://developer.paypal.com/webapps/developer/docs/classic/button-manager/integration-guide/NVP/ButtonMgrOverview/)
- [Mass Payments User Guide](https://developer.paypal.com/webapps/developer/docs/classic/mass-pay/integration-guide/MassPayOverview/)
- [PayPal Merchant Setup and Administration Guide](https://developer.paypal.com/webapps/developer/docs/classic/admin/)
- [PayPal Payments Pro Documentation](https://developer.paypal.com/webapps/developer/docs/classic/products/#wpp)

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance58

Moderate activity, may be stable

Popularity56

Moderate usage in the ecosystem

Community27

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 91.9% 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 ~322 days

Recently: every ~574 days

Total

14

Last Release

247d ago

Major Versions

v2.0.4 → v3.0.02019-04-11

v3.0.5 → 219.x-dev2025-09-13

PHP version history (2 changes)v2.0PHP &gt;=5.3.0

219.x-devPHP &gt;=8.0.0

### Community

Maintainers

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

---

Top Contributors

[![tejasmht](https://avatars.githubusercontent.com/u/15337651?v=4)](https://github.com/tejasmht "tejasmht (373 commits)")[![rtconner](https://avatars.githubusercontent.com/u/334533?v=4)](https://github.com/rtconner "rtconner (13 commits)")[![kcppdevelopers](https://avatars.githubusercontent.com/u/13145461?v=4)](https://github.com/kcppdevelopers "kcppdevelopers (6 commits)")[![tejasm-itpath](https://avatars.githubusercontent.com/u/25998242?v=4)](https://github.com/tejasm-itpath "tejasm-itpath (4 commits)")[![deepakmaurya](https://avatars.githubusercontent.com/u/6480958?v=4)](https://github.com/deepakmaurya "deepakmaurya (3 commits)")[![choxnox](https://avatars.githubusercontent.com/u/1287099?v=4)](https://github.com/choxnox "choxnox (2 commits)")[![drewangell](https://avatars.githubusercontent.com/u/64537522?v=4)](https://github.com/drewangell "drewangell (2 commits)")[![tyxla](https://avatars.githubusercontent.com/u/8436925?v=4)](https://github.com/tyxla "tyxla (2 commits)")[![MrFiregore](https://avatars.githubusercontent.com/u/23504988?v=4)](https://github.com/MrFiregore "MrFiregore (1 commits)")

---

Tags

apirestpaypalinvoicingadaptive paymentsexpress checkoutpayflowangelleyepayments pro

### Embed Badge

![Health badge](/badges/angelleye-paypal-php-library/health.svg)

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

###  Alternatives

[mediamonks/rest-api-bundle

MediaMonks Rest API Symfony Bundle

1656.2k1](/packages/mediamonks-rest-api-bundle)

PHPackages © 2026

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