https://github.com/dripemail/drip-php
An object-oriented PHP wrapper for Drip's API
https://github.com/dripemail/drip-php
api-wrapper php
Last synced: 6 months ago
JSON representation
An object-oriented PHP wrapper for Drip's API
- Host: GitHub
- URL: https://github.com/dripemail/drip-php
- Owner: DripEmail
- License: mit
- Created: 2014-08-27T17:09:31.000Z (almost 12 years ago)
- Default Branch: main
- Last Pushed: 2025-03-12T19:52:52.000Z (over 1 year ago)
- Last Synced: 2025-09-27T11:44:39.061Z (9 months ago)
- Topics: api-wrapper, php
- Language: PHP
- Homepage:
- Size: 105 KB
- Stars: 25
- Watchers: 29
- Forks: 38
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Drip API Wrapper - PHP
An object-oriented PHP wrapper for Drip's REST API v2.0
[](https://github.com/DripEmail/drip-php/actions/workflows/build.yml)
## Installation
Run `composer require dripemail/drip-php`
## Authentication
For private integrations, you may use your personal API Token (found
[here](https://www.getdrip.com/user/edit)) via the `api_key` setting:
```php
$client = new \Drip\Client(["account_id" => "YOUR_ACCOUNT_ID", "api_key" => "YOUR_API_KEY"]);
```
For public integrations, pass in the user's OAuth token via the `access_token`
setting:
```php
$client = new \Drip\Client(["account_id" => "YOUR_ACCOUNT_ID", "access_token" => "YOUR_ACCESS_TOKEN"]);
```
Your account ID can be found [here](https://www.getdrip.com/settings).
Most API actions require an account ID, with the exception of methods like
the "list accounts" endpoint.
## PHP version support
We attempt to support versions of PHP that are supported upstream: http://php.net/supported-versions.php
For the actual supported list, see `.github/workflows/build.yml`.