1. Go to this page and download the library: Download bluebaytravel/mailchimp 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 / mailchimp example snippets
// Return the users on the Mailchimp account.
Mailchimp::users()
// Dependency injection example.
$mailchimpManager->users()
// You can alias this in config/app.php.
use BlueBayTravel\Mailchimp\Facades\Mailchimp;
Mailchimp::users();
use BlueBayTravel\Mailchimp\Facades\Mailchimp;
// Writing this…
Mailchimp::connection('main')->users();
// ...is identical to writing this
Mailchimp::users();
// and is also identical to writing this.
Mailchimp::connection()->users();
// This is because the main connection is configured to be the default.
Mailchimp::getDefaultConnection(); // This will return main.
// We can change the default connection.
Mailchimp::setDefaultConnection('alternative'); // The default is now alternative.
use BlueBayTravel\Mailchimp\MailchimpManager;
class Foo
{
protected $mailchimp;
public function __construct(MailchimpManager $mailchimp)
{
$this->mailchimp = $mailchimp;
}
public function bar($id)
{
$this->mailchimp->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.