PHPackages                             tdc/paypal-rest-php - 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. tdc/paypal-rest-php

ActiveLibrary

tdc/paypal-rest-php
===================

Fork of the deprecated PayPal-PHP-SDK v2.0-beta, with updates for newer APIs

001PHP

Since Apr 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/TinoDidriksen/PayPal-REST-PHP)[ Packagist](https://packagist.org/packages/tdc/paypal-rest-php)[ RSS](/packages/tdc-paypal-rest-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PayPal REST SDK
===============

[](#paypal-rest-sdk)

This is a fork of the now deprecated , with updates for newer APIs.

### Creating a Payment

[](#creating-a-payment)

```
require 'vendor/autoload.php';

use PayPal\v1\Payments\PaymentCreateRequest;
use PayPal\Core\PayPalHttpClient;
use PayPal\Core\SandboxEnvironment;

$environment = new SandboxEnvironment('AdV4d6nLHabWLyemrw4BKdO9LjcnioNIOgoz7vD611ObbDUL0kJQfzrdhXEBwnH8QmV-7XZjvjRWn0kg', 'EPKoPC_haZMTq5uM9WXuzoxUVdgzVqHyD5avCyVC1NCIUJeVaNNUZMnzduYIqrdw-carG9LBAizFGMyK');
$client = new PayPalHttpClient($environment);

$body = [
	"intent" => "sale",
	"transactions" => [
		[
			"amount" => [
				"total" => "10",
				"currency" => "USD"
			]
		]
	],
	"redirect_urls" => [
		"cancel_url" => "http://paypal.com/cancel",
		"return_url" => "http://paypal.com/return"
	],
	"payer" => [
		"payment_method" => "paypal"
	]
];

$request = new PaymentCreateRequest();
$request->body = $body;

try {
	$response = $client->execute($request);
	print_r($response);
} catch (HttpException $ex) {
	echo $ex->statusCode;
	print_r($ex->getMessage());
}
```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 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/69fc240d6926e365959bdc3db2f71f06534011b33bb2ddf78e7815594cd8de69?d=identicon)[TinoDidriksen](/maintainers/TinoDidriksen)

---

Top Contributors

[![TinoDidriksen](https://avatars.githubusercontent.com/u/5411013?v=4)](https://github.com/TinoDidriksen "TinoDidriksen (5 commits)")

### Embed Badge

![Health badge](/badges/tdc-paypal-rest-php/health.svg)

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

PHPackages © 2026

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