Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peterfox/laravel-extendable-mail-message
https://github.com/peterfox/laravel-extendable-mail-message
Last synced: 5 days 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 (8 months ago)
- Default Branch: main
- Last Pushed: 2024-07-08T17:04:52.000Z (4 months ago)
- Last Synced: 2024-10-12T11:34:36.499Z (about 1 month ago)
- Language: PHP
- Size: 43.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
[![Latest Version on Packagist](https://img.shields.io/packagist/v/peterfox/laravel-extendable-mail-message.svg?style=flat-square)](https://packagist.org/packages/peterfox/laravel-extendable-mail-message)
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/peterfox/laravel-extendable-mail-message/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/peterfox/laravel-extendable-mail-message/actions?query=workflow%3Arun-tests+branch%3Amain)
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/peterfox/laravel-extendable-mail-message/fix-php-code-style-issues.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/peterfox/laravel-extendable-mail-message/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
[![Total Downloads](https://img.shields.io/packagist/dt/peterfox/laravel-extendable-mail-message.svg?style=flat-square)](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.