LaravelPackages.net
Acme Inc.
Toggle sidebar
senemoglu/laraloop

Sendloop wrapper for Laravel 5

1.335
1
1.0.1
About senemoglu/laraloop

senemoglu/laraloop is a Laravel package for sendloop wrapper for laravel 5. It currently has 1 GitHub stars and 1.335 downloads on Packagist (latest version 1.0.1). Install it with composer require senemoglu/laraloop. Discover more Laravel packages by senemoglu or browse all Laravel packages to compare alternatives.

Last updated

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", "[email protected]");
$message->setSubject("My sweet subject");
$message->setHTMLContent("My sweet content too");

$transactionId = LaraloopMTA::send('[email protected]', $message);
Comments