pullrequestinc / sendwithus
Laravel 5+ bindings for Sendwithus transactional email API
Installs: 52 644
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 4
Forks: 4
Open Issues: 0
Requires
- php: ~8.0|~7.0
- illuminate/support: ~11.0|~10.0|~9.0|~8.0|~7.0|~6.0|~5.0
- sendwithus/api: ^6.3
Requires (Dev)
- fzaninotto/faker: ~1.4
- graham-campbell/testbench: ^5.4
- mockery/mockery: ^1.0
- phpunit/phpunit: ^8.0
README
Laravel5+ bindings for the excellent email service sendwithus. Wraps https://github.com/sendwithus/sendwithus_php with a facade and client manager.
Structure
config/
src/
tests/
vendor/
Install
Via Composer
$ composer require PullRequestInc/sendwithus
Now add PullRequestInc\sendwithus\SendwithusServiceProvider::class to your config/app.php's providers and 'Sendwithus' => PullRequestInc\sendwithus\Facades\Sendwithus::class to the aliases.
$ php artisan vendor:publish
Next, update your .env files with your sendwithus API keys.
SENDWITHUS_API_KEY_PRODUCTION=..................
SENDWITHUS_API_KEY_TESTING=....................
Other environment variables you can set:
SENDWITHUS_API_DEFAULT_KEY (production|testing) Default: production
SENDWITHUS_DEBUG (true|false) Default: false;
Usage
<?php
$emails = Sendwithus::emails();
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ phpunit
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security related issues, please email lyal@pullrequest.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.