Download the PHP package lotfio/mail-templator without Composer
On this page you can find all versions of the php package lotfio/mail-templator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package mail-templator
MailTemplator (Easy templates for your emails).
🔥 Introduction :
MailTemplator is lightweight PHP package that helps you create, edit and customize email templates.
:pushpin: Requirements :
- PHP >= 8
- PHPUnit >= 9 (for testing purpose)
:rocket: Installation & Use :
:zap: Testing :
:sunny: Static analysis :
:pencil2: Usage :
- Create your custom Mail Template in your preferred folder withing your project.
- Mail template class name should ends with Template (MyCustomTemplate, MySecondTemplate).
:point_up: Available Directives
- @LOGO@, @OPENLINE@, @HEADER@, @CONTENT@, @FOOTER@, @SUBFOOTER@, @POWEREDBY@
- You can customize and update the content of these directives with setters and also with protected properties
- Example :
:raised_hand: Custom directives
- Then you can pass the value with the template
setTemplate(new MyTemplate, ['username' => $username]):muscle: Custom Static Template
- By default templator uses Free Responsive HTML Email Template
- You can use your custom static template
:email: Send mail with Templator
- Send mail with your template
- Email subject will follow Template class name
:rocket: Laravel Integration
-
A recommended directory structure should look like this
-
Mail folder
- Templates folder
- Customer Mailer (PHPmailer or SwiftMailer)
-
Make sure to register your custom mailer to laravel AppServiceProvider
- Example usage withing a controller method
:helicopter: TODO
- Adding database templates support
:computer: Contributing
- Thank you for considering to contribute to MailTemplator. All the contribution guidelines are mentioned here.
:page_with_curl: ChangeLog
- Here you can find the ChangeLog.
:beer: Support the development
- Share MailTemplator and lets get more stars and more contributors.
- If this project helped you reduce time to develop, you can give me a cup of coffee :) : Paypal. 💖
:clipboard: License
- MailTemplator is an open-source software licensed under the MIT license.
All versions of mail-templator with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8
The package lotfio/mail-templator contains the following files
Loading the files please wait ...