axazara / mailbluster-laravel
This is simple PHP Package for Laravel to interact with MailBluster API.
Installs: 4 791
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Forks: 0
pkg:composer/axazara/mailbluster-laravel
Requires
- php: ^8.1
- illuminate/contracts: ^9.0 || ^10.0 || ^11.0
Requires (Dev)
- axazara/php-cs: ^0.1
- insolita/unused-scanner: ^2.4
- larastan/larastan: ^2.4
- nunomaduro/collision: ^6.0
- orchestra/testbench: ^7.22
- phpstan/extension-installer: ^1.3
- phpstan/phpstan-deprecation-rules: ^1.1
- phpstan/phpstan-phpunit: ^1.3
- phpunit/phpunit: ^9.6 || ^10.0 || ^11.0
- roave/security-advisories: dev-latest
This package is auto-updated.
Last update: 2025-10-15 19:24:21 UTC
README
This is simple laravel package to interact with MailBluster API.
MailBluster::createLead('lead@exemple.com') // To create a lead
Installation
You can install the package via composer:
composer require axazara/mailbluster-laravel
You must publish the config file with:
php artisan mailbluster:install
This is the contents of the published config file:
return [
'api_url' => env('MAILBLUSTER_API_URL', 'https://api.mailbluster.com/api'),
'api_key' => env('MAILBLUSTER_API_KEY', ''),
];
Setup
To use the MailBluster API, you need to set the MAILBLUSTER_API_KEY environment variables in your .env file.
MAILBLUSTER_API_KEY=MAILBLUSTER_API_KEY_HERE
MAILBLUSTER_API_URLyou can get this from MailBluster API doc.MAILBLUSTER_API_KEYyou can get this from your MailBluster account dashboard.
IMPORTANT
- Save your API key as an environment variable in your
.envfile. Do not hardcode it in your code.- You must not share your API key with anyone.
- You must not commit your API key to version control.
Usage
This package provides a facade to interact with MailBluster API.
Lead
Read leads docs docs
Fields
Read fields docs docs
Products
Read products docs docs
Contribution
You can contribute to this package by forking the repository and submitting a pull request to the dev-main branch.
Local Development
To avoid error in local development or testing environment you can set the MAILBLUSTER_API_URL environment variable to test in your .env file, this will prevent package to send email to MailBluster API.
⚠️Be sure to set the MAILBLUSTER_API_URL environment variable to the correct value when deploying to production.
Credits
Copyright
MailBluster is not affiliated with Axa Zara. All rights reserved.
License
The MIT License (MIT). Please see License File for more information.