Download the PHP package paddlehq/paddle-php-sdk without Composer
On this page you can find all versions of the php package paddlehq/paddle-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download paddlehq/paddle-php-sdk
More information about paddlehq/paddle-php-sdk
Files in paddlehq/paddle-php-sdk
Package paddle-php-sdk
Short Description Paddle's PHP SDK for Paddle Billing.
License Apache-2.0
Homepage https://developer.paddle.com/api-reference/overview
Informations about the package paddle-php-sdk
Paddle PHP SDK
Paddle Billing is a complete digital product sales and subscription management platform, designed for modern software businesses. It helps you increase your revenue, retain customers, and scale your operations.
This is a PHP SDK that you can use to integrate Paddle Billing with applications written in PHP.
For working with Paddle in your frontend, use Paddle.js. You can open checkouts, securely collect payment information, build pricing pages, and integrate with Paddle Retain.
Important: This package works with Paddle Billing. It does not support Paddle Classic. To work with Paddle Classic, see: Paddle Classic API reference
Requirements
PHP 8.1 and later.
Composer
You can install the bindings via Composer. Run the following command:
To use the bindings, use Composer's autoload:
Usage
To authenticate, you'll need an API key. You can create and manage API keys in Paddle > Developer tools > Authentication.
Pass your API key while initializing a new Paddle client.
You can also pass an environment to work with the sandbox:
Keep in mind that API keys are separate for your sandbox and live accounts, so you'll need to generate keys for each environment.
Examples
List entities
You can list supported entities with the list
function in the resource. It returns an iterator to help when working with multiple pages.
Create an entity
You can create a supported entity with the create
function in the resource. It accepts the resource's corresponding Create
operation e.g. CreateProduct
. The created entity is returned.
Update an entity
You can update a supported entity with the update
function in the resource. It accepts the id
of the entity to update and the corresponding Update
operation e.g. UpdateProduct
. The updated entity is returned.
Where operations require more than one id
, the update
function accepts multiple arguments. For example, to update an address for a customer, pass the customerId
and the addressId
:
Get an entity
You can get an entity with the get
function in the resource. It accepts the id
of the entity to get. The entity is returned.
Resources
Webhook signature verification
The SDK includes a helper class to verify webhook signatures sent by Notifications from Paddle.
Learn more
All versions of paddle-php-sdk with dependencies
ext-json Version *
ext-mbstring Version *
myclabs/php-enum Version ^1.8
php-http/async-client-implementation Version ^1.0
php-http/client-common Version ^1.5 || ^2.0
php-http/discovery Version ^1.15
php-http/httplug Version ^1.1 || ^2.0
php-http/logger-plugin Version ^1.3
php-http/message Version ^1.5
psr/http-factory Version ^1.0
psr/http-factory-implementation Version ^1.0
psr/log Version ^1.0 || ^2.0 || ^3.0
symfony/property-access Version ^5.4 || ^6.3 || ^7.0
symfony/serializer Version ^5.4 || ^6.3 || ^7.0
symfony/uid Version ^5.4 || ^6.3 || ^7.0