blueskan / Laraloop by blueskan

Sendloop wrapper for Laravel 5
1,329
1
2
Package Data
Maintainer Username: blueskan
Maintainer Contact: batikansenemoglu@gmail.com (Batıkan Senemoğlu)
Package Create Date: 2016-05-18
Package Last Update: 2016-06-15
Home Page: https://sendloop.com/
Language: PHP
License: GNU GPL v3
Last Refreshed: 2024-03-25 03:03:57
Package Statistics
Total Downloads: 1,329
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

Laraloop - Sendloop Wrapper For Laravel 5

Laraloop is a simple wrapper for Sendloop & Sendloop MTA API services, this package coming with 2 facades.

You can use Sendloop libraries in your controllers or services like Laraloop::methodName() or LaraloopMTA::methodName()

###For installation you just follow these simple steps:

First install package:

php composer require senemoglu/laraloop

Second publish vendor configurations via Artisan CLI:

php artisan vendor:publish

After this step, config/laraloop.php file will be created, and you can set your API_KEY etc.

Then add service provider into your app.php configuration file:

Senemoglu\Laraloop\LaraloopServiceProvider::class

Finally add facades for easy access to Sendloop Methods (optionally, but strongly recommended):

'Laraloop' => Senemoglu\Laraloop\Facades\Laraloop::class,
'LaraloopMTA' => Senemoglu\Laraloop\Facades\LaraloopMTA::class

You can look Sendloop Documentations for details about API.

###Simple Example For Mta:

$message = new \Sendloop\MTA\Message();
$message->setFrom("Batıkan Senemoğlu", "me@batikansenemoglu.com");
$message->setSubject("My sweet subject");
$message->setHTMLContent("My sweet content too");

$transactionId = LaraloopMTA::send('target@foobarbaz.com', $message);