PHPackages                             braintree/braintree\_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. [Payment Processing](/categories/payments)
4. /
5. braintree/braintree\_php

ActiveLibrary[Payment Processing](/categories/payments)

braintree/braintree\_php
========================

Braintree PHP Client Library

6.32.0(3mo ago)55647.3M—3.6%227[17 issues](https://github.com/braintree/braintree_php/issues)[5 PRs](https://github.com/braintree/braintree_php/pulls)20MITPHPPHP &gt;=7.3.0CI passing

Since Jul 30Pushed 2w ago96 watchersCompare

[ Source](https://github.com/braintree/braintree_php)[ Packagist](https://packagist.org/packages/braintree/braintree_php)[ RSS](/packages/braintree-braintree-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (139)Used By (20)

Braintree PHP library
=====================

[](#braintree-php-library)

The Braintree PHP library provides integration access to the Braintree Gateway.

TLS 1.2 required
----------------

[](#tls-12-required)

> **The Payment Card Industry (PCI) Council has [mandated](https://blog.pcisecuritystandards.org/migrating-from-ssl-and-early-tls) that early versions of TLS be retired from service. All organizations that handle credit card information are required to comply with this standard. As part of this obligation, Braintree has updated its services to require TLS 1.2 for all HTTPS connections. Braintrees require HTTP/1.1 for all connections. Please see our [technical documentation](https://github.com/paypal/tls-update) for more information.**

Dependencies
------------

[](#dependencies)

The following PHP extensions are required:

- curl
- dom
- hash
- openssl
- xmlwriter

PHP version &gt;= 7.3 is required. The Braintree PHP SDK is tested against PHP versions 7.3 and 7.4, and 8.0.

*The PHP core development community has released [End-of-Life branches](https://www.php.net/eol.php) for PHP versions 5.4 - 7.2, and are no longer receiving security updates. As a result, Braintree does not support these versions of PHP.*

Versions
--------

[](#versions)

> ⚠️ **The SSL certificates for PHP SDK versions older than 3.27.0 are set to expire by March 30, 2026. If you do not update your SDK to the latest version with the updated certificates by March 30, 2026, 100% of your impacted traffic will fail**

Braintree employs a deprecation policy for our SDKs. For more information on the statuses of an SDK check our [developer docs](https://developer.paypal.com/braintree/docs/reference/general/server-sdk-deprecation-policy).

Major version numberStatusReleasedDeprecatedUnsupported6.x.xActiveMarch 2021TBATBA5.x.xInactiveMarch 2020March 2023March 20244.x.xDeprecatedMay 2019March 2022March 20233.x.xDeprecatedMay 2015March 2022March 2023Documentation
-------------

[](#documentation)

- [Official documentation](https://developer.paypal.com/braintree/docs/start/hello-server/php)

Updating from an Inactive, Deprecated, or Unsupported version of this SDK? Check our [Migration Guide](https://developer.paypal.com/braintree/docs/reference/general/server-sdk-migration-guide/php) for tips.

Quick Start Example
-------------------

[](#quick-start-example)

```
