PHPackages                             vatps/paypal-rest-api - 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. vatps/paypal-rest-api

ActiveLibrary[Payment Processing](/categories/payments)

vatps/paypal-rest-api
=====================

Very Easy to use PayPal REST API Wrapper Class.

130PHP

Since Oct 7Pushed 10y ago1 watchersCompare

[ Source](https://github.com/vatps/paypal-rest-api)[ Packagist](https://packagist.org/packages/vatps/paypal-rest-api)[ RSS](/packages/vatps-paypal-rest-api/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

PayPal REST API Wrapper
=======================

[](#paypal-rest-api-wrapper)

Very Easy to use PayPal REST Enabled API Wrapper Class in PHP.

Requires PHP 5.4 and curl extension.

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

[](#installation)

You can install the paypal-rest-api using Composer. Just add the following to your composer.json:

```
{
    "require": {
        "vatps/paypal-rest-api": "dev-master"
    }
}

```

You will then need to:

- run `composer install` to get these dependencies added to your vendor directory
- add the autoloader to your application with this line: `require("vendor/autoload.php")`

Alternatively you can just download the PayPal.php file and include it manually.

Laravel Installation
--------------------

[](#laravel-installation)

Run `composer require vatps/paypal-rest-api` in terminal.

Code Example (Create a Payment)
-------------------------------

[](#code-example-create-a-payment)

```
