https://github.com/peterfox/laravel-extendable-mail-message
https://github.com/peterfox/laravel-extendable-mail-message
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/peterfox/laravel-extendable-mail-message
- Owner: peterfox
- License: mit
- Created: 2024-03-31T20:34:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-27T16:40:07.000Z (5 months ago)
- Last Synced: 2025-01-27T17:37:52.550Z (5 months ago)
- Language: PHP
- Size: 46.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Codeowners: .github/CODEOWNERS
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# Laravel Extendable Mail Message
[](https://packagist.org/packages/peterfox/laravel-extendable-mail-message)
[](https://github.com/peterfox/laravel-extendable-mail-message/actions?query=workflow%3Arun-tests+branch%3Amain)
[](https://github.com/peterfox/laravel-extendable-mail-message/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
[](https://packagist.org/packages/peterfox/laravel-extendable-mail-message)A package to use a mail message for notification that's easier to extend
## Installation
You can install the package via composer:
```bash
composer require peterfox/laravel-extendable-mail-message
```## Usage
```php
use Illuminate\Notifications\Notification;class MyNotification extends Notification
{
public function toMail(object $notifiable): MailMessage
{
return PeterFox\MailMessage::make()
->error()
->subject('Invoice Payment Failed')
->line('...');
}
}
```## Testing
```bash
composer test
```## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [Peter Fox](https://github.com/peterfox)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.