You can install the package via composer:
composer require offline-agency/laravel-email-chef
You can publish and run the migrations with:
php artisan vendor:publish --provider="OfflineAgency\LaravelEmailChef\LaravelEmailChefServiceProvider" --tag="laravel-email-chef-migrations"
You can publish the config file with:
php artisan vendor:publish --provider="OfflineAgency\LaravelEmailChef\LaravelEmailChefServiceProvider" --tag="laravel-email-chef-config"
This is the contents of the published config file:
return [
'baseUrl' => 'https://app.emailchef.com/apps/api/v1/',
'login_url' => 'https://app.emailchef.com/api/',
'username' => env('EMAIL_CHEF_USERNAME'),
'password' => env('EMAIL_CHEF_PASSWORD'),
'list_id' => '97322',
'contact_id' => '656023'
];
$laravel-email-chef = new OfflineAgency\LaravelEmailChef();
echo $laravel-email-chef->echoPhrase('Hello, OfflineAgency!');
//List create
$list = new ListsApi();
$list->create([
'list_name' => 'OA list name',
'list_description' => 'description'
]);
//List unsubscribe
$list = new ListsApi();
$list->unsubscribe(
97322, //list_id
53998920 //contact_id
);
//Contacts get count
$contacts = new ContactsApi;
$contacts->count(config('email-chef.list_id'));
We are currently work on this package to implement all endpoints. Enable notifications to be notified when new API are released.
❌ Account
❌ Account infos
❌ Subscription
✅ Lists
✅ Contacts
❌ Predefined Fields
❌ Custom Fields
❌ Blockings
❌ Import Tasks
❌ Segments
❌ Campaigns
❌ Autoresponders
❌ Send mail
❌ SMS
composer test
Please see CONTRIBUTING for details.
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.