directmailmanager / php-dmm-api
A simple Object Oriented wrapper for DMM API, written with PHP
Requires
- php: ^8.0
- php-http/client-common: ^2.6
- php-http/discovery: ^1.0
- php-http/httplug: ^2.0
- psr/http-client-implementation: ^1.0
- psr/http-message: ^1.0
Requires (Dev)
- guzzlehttp/guzzle: ^7.5
- guzzlehttp/psr7: ^2.4
- php-http/message: ^1.13
- php-http/mock-client: ^1.0
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-12-07 15:22:12 UTC
README
Official Direct Mail Manager v3 SDK for PHP
A simple Object-Oriented wrapper for DMM API, written with PHP.
Features
- Light and fast thanks to lazy loading of API classes
Prerequisites
First, you will need to first create an account at directmailmanager.com and obtain your Live API Key. You may access your API Keys from the Settings > API Keys after you've created an account.
Requirements
- PHP >= 8.0
- A HTTP client
- A PSR-7 implementation
- (optional) PHPUnit to run tests.
Getting started
Install
To install the SDK you will need to be using Composer
in your project. To install it please see the docs.
composer require directmailmanager/php-dmm-api
The package (directmailmanager/php-dmm-api
) is not tied to any specific library that sends HTTP messages. Instead,
it uses Httplug to let users choose whichever
PSR-7 implementation and HTTP client they want to use.
If you just want to get started quickly you should run the following command:
composer require directmailmanager/php-dmm-api php-http/curl-client
This is basically what the metapackage (directmailmanager/php-dmm-api
) provides.
This will install the library as well as an HTTP client adapter that use Guzzle as a transport
method (provided by Httplug).You do not have to use those
packages if you do not want to. You may
use any package that provides php-http/async-client-implementation
and http-message-implementation
.
Documentation
See the PHP API docs.