Download the PHP package iperamuna/mailu-laravel without Composer
On this page you can find all versions of the php package iperamuna/mailu-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download iperamuna/mailu-laravel
More information about iperamuna/mailu-laravel
Files in iperamuna/mailu-laravel
Package mailu-laravel
Short Description A Laravel SDK for the Mailu API
License MIT
Informations about the package mailu-laravel
Mailu Laravel SDK
A high-performance, developer-friendly Laravel SDK for the Mailu API. Designed for Indunil Peramuna with focus on DTOs, type safety, and clean architecture.
โจ Features
- PHP: ^8.2
- Laravel: ^12.0 || ^13.0
- ๐ Full API Coverage: Support for Users, Domains, Aliases, Alternatives, Relays, and Tokens.
- ๐ก๏ธ Type-Safe DTOs: Heavily utilizes
spatie/laravel-datafor structured, validated data handling. - โก Built-in Caching: Intelligent caching of
GETrequests to optimize performance. - ๐งฑ Modular Architecture: Cleanly separated concerns using traits (
HasUsers,HasDomains, etc.). - ๐งช Pest Powered: Comprehensive test suite written in Pest PHP.
- ๐งฉ Clean Facade: Intuitive
Mailufacade for standard operations.
๐ฆ Installation
You can install the package via composer:
โ๏ธ Configuration
Publish the config file:
Add your credentials to .env:
๐ Usage Examples
1. Simple Facade Usage
The most common way to interact with the SDK.
2. Usage in a Controller
Inject the MailuService directly into your controller methods.
3. Usage in a Filament Resource
Ideal for building custom admin interfaces. Since Mailu returns an array/collection, you can use Filament's Table Builder with custom data.
๐งช Testing
๐ Security
If you discover any security-related issues, please email [email protected].
๐ค Credits
๐ License
The MIT License (MIT). Please see License File for more information.
All versions of mailu-laravel with dependencies
illuminate/support Version ^12.0 || ^13.0
illuminate/http Version ^12.0 || ^13.0
spatie/laravel-data Version ^4.0