1. Go to this page and download the library: Download bluebaytravel/mandrill library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bluebaytravel / mandrill example snippets
// Return the users on the Mandrill account.
Mandrill::users()
// Dependency injection example.
$mandrillManager->users()
// You can alias this in config/app.php.
use BlueBayTravel\Mandrill\Facades\Mandrill;
Mandrill::users();
use BlueBayTravel\Mandrill\Facades\Mandrill;
// Writing this…
Mandrill::connection('main')->users();
// ...is identical to writing this
Mandrill::users();
// and is also identical to writing this.
Mandrill::connection()->users();
// This is because the main connection is configured to be the default.
Mandrill::getDefaultConnection(); // This will return main.
// We can change the default connection.
Mandrill::setDefaultConnection('alternative'); // The default is now alternative.
use BlueBayTravel\Mandrill\MandrillManager;
class Foo
{
protected $mandrill;
public function __construct(MandrillManager $mandrill)
{
$this->mandrill = $mandrill;
}
public function bar($id)
{
$this->mandrill->users();
}
}
App::make('Foo')->bar();
bash
php artisan vendor:publish
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.