rulecom / api-wrapper
Api wrapper for the RULE mailer.
Installs: 13 159
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 5
Forks: 3
Open Issues: 2
Requires
- guzzlehttp/guzzle: >=6.2
Requires (Dev)
- cvuorinen/phpdoc-markdown-public: *
- monolog/monolog: 1.*
- phpdocumentor/phpdocumentor: ~2.8
- phpspec/phpspec: ^2.5
- phpunit/phpunit: ^5.4
- dev-master
- v1.0.11
- v1.0.10
- v1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-update-documentation
- dev-fix-suppressions
- dev-1624-suppressed-types-are-overriden-during-the-import
- dev-fix-checking-subresources
- dev-subscriber-automation-option
- dev-upd
- dev-campaign-api
- dev-tag-api
- dev-suppressions
- dev-customizations
- dev-templates
- dev-transactions
- dev-fixes
This package is auto-updated.
Last update: 2024-11-17 13:34:51 UTC
README
Package wrapping an RULE Mailer api using an guzzlehttp
client as backend for the requests
Installation
Regular composer installation supposed, like:
composer require rulecom/api-wrapper
Integration with Laravel
Use src/LaravelServiceProvider.php
to register API instances in your application.
Create config/rule-api.php
file for the API configuration.
Then you'll be able to disectly use configured API classes
use Rule\ApiWrapper\Api\V2\Subscriber\Subscriber; class Foo { private $subscriberApi; public function __construct(Subscriber $subscriberApi) { $this->subscriberApi = $subscriberApi; } public function createMeSomeSubscriber($params) { //... do something $this->subscriberApi->create([ 'email' => $email, //... see docs for detailes ]); } }
Docs
For the docs please refer docs folder in this repository.