Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atomjoy/proton
Html email blade components for Laravel. Html email footer signature example.
https://github.com/atomjoy/proton
blade-components blade-email-template email-blade-components email-signature email-signatures html-email html-email-template html-email-templates html-email-theme laravel-email laravel-email-template laravel-emails laravel-html-email laravel-html-emails proton-email proton-email-template proton-html-email proton-html-email-template
Last synced: about 2 months ago
JSON representation
Html email blade components for Laravel. Html email footer signature example.
- Host: GitHub
- URL: https://github.com/atomjoy/proton
- Owner: atomjoy
- Created: 2023-06-22T14:21:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-27T07:33:45.000Z (4 months ago)
- Last Synced: 2024-09-28T10:37:18.518Z (3 months ago)
- Topics: blade-components, blade-email-template, email-blade-components, email-signature, email-signatures, html-email, html-email-template, html-email-templates, html-email-theme, laravel-email, laravel-email-template, laravel-emails, laravel-html-email, laravel-html-emails, proton-email, proton-email-template, proton-html-email, proton-html-email-template
- Language: HTML
- Homepage: https://github.com/atomjoy/proton
- Size: 3.83 MB
- Stars: 19
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel Html Email Components (Blade)
Html email blade components for Laravel. Html email footer signature example. Products html email newsletter (RWD).
## Install package
```sh
# Create laravel project
composer create-project laravel/laravel:^11.0 email-app
# Or
composer create-project laravel/laravel email-app
cd email-app
composer require atomjoy/proton
```### Send email example
```php
make([
'email' => '[email protected]'
])->first();// Send email sample
Mail::to('[email protected]')->send(new DefaultMail());// User reset password, use null for example
Mail::to('[email protected]')->send(new PasswordMail($user, '321-XXX-123'));
Mail::to('[email protected]')->locale('pl')->send(new PasswordMail($user, '321-XXX-123'));// User activation link (User model required columns: id, name, code), use null for example
Mail::to('[email protected]')->send(new RegisterMail($user));
Mail::to('[email protected]')->locale('pl')->send(new RegisterMail($user));// Code email
Mail::to('[email protected]')->send(new F2aMail($user, 888777));
Mail::to('[email protected]')->locale('pl')->send(new F2aMail($user, 888777));// Show example email view
return view('proton::email.newsletter');
// return view('proton::email.default');
// return view('proton::email.password');
// return view('proton::email.register');
// return view('proton::email.signature');
// return view('proton::email.f2a', ['user' => $user, 'password' => 888777]);
});
```## Edit email templates
```sh
# Edit package email views in resources/views/vendor/proton
php artisan vendor:publish --tag=proton-views --force# Edit translations (optional)
php artisan vendor:publish --tag=proton-lang --force# Copy images (optional)
php artisan vendor:publish --tag=proton-mail --force# Create config file (optional)
php artisan vendor:publish --tag=proton-config --force
```## Create Laravel mail class
```sh
# Or create your own mail class
php artisan make:mail PromoMail
```## Email images
### Newsletter email
### Example email
### Activation email
### Password email
### 2FA email
### Html email signature image
## LICENSE
This project is licensed under the terms of the GNU GPLv3 license.