{"id":37008937,"url":"https://github.com/jdtsoftware/laravel-email-templates","last_synced_at":"2026-01-14T00:50:58.788Z","repository":{"id":56997601,"uuid":"85436471","full_name":"jdtsoftware/laravel-email-templates","owner":"jdtsoftware","description":"Laravel 5 database driven email templates","archived":false,"fork":false,"pushed_at":"2018-06-09T22:29:59.000Z","size":24,"stargazers_count":22,"open_issues_count":2,"forks_count":8,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-08-13T16:59:38.048Z","etag":null,"topics":["email","laravel-5-package","php","templates"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jdtsoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-18T22:37:21.000Z","updated_at":"2024-01-04T15:48:35.000Z","dependencies_parsed_at":"2022-08-21T14:50:13.824Z","dependency_job_id":null,"html_url":"https://github.com/jdtsoftware/laravel-email-templates","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/jdtsoftware/laravel-email-templates","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdtsoftware%2Flaravel-email-templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdtsoftware%2Flaravel-email-templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdtsoftware%2Flaravel-email-templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdtsoftware%2Flaravel-email-templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdtsoftware","download_url":"https://codeload.github.com/jdtsoftware/laravel-email-templates/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdtsoftware%2Flaravel-email-templates/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28407254,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["email","laravel-5-package","php","templates"],"created_at":"2026-01-14T00:50:57.902Z","updated_at":"2026-01-14T00:50:58.229Z","avatar_url":"https://github.com/jdtsoftware.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![StyleCI](https://styleci.io/repos/85436471/shield)](https://styleci.io/repos/85436471)\n\n# Laravel Email Templates\n\nDatabase driven email templates for \u003e= Laravel 5.4 and PHP 7.\n\n## Configuration\n\nFirst register the service provider in config/app.php:\n\n```php\n'providers' =\u003e [\n    # ...\n    JDT\\LaravelEmailTemplates\\ServiceProvider::class,\n],\n```\n\nThen, in the same file, add the facade to the aliases config:\n\n```php\n'aliases' =\u003e [\n    # ...\n    'EmailTemplate' =\u003e JDT\\LaravelEmailTemplates\\Facades\\EmailTemplates::class,\n]\n```\n\nNext, run the migrations:\n\n```\n$ php artisan migrate\n```\nThis will set up 2 tables; email_template and email_layout.\n\n## Usage\n\nThe package is built in such a way that it plays nicely with the existing Laravel Mailer functionality.\n\nGiven a template existing in the above table with the handle 'registration', email can be sent simply as below:\n\n```php\n$mail = \\EmailTemplate::fetch('registration', ['name' =\u003e 'Jon']);\n \n\\Mail::to('foo@bar.com', $mail);\n```\n\nYou can of course pass the language to translate the chosen email, providing you have created an email for that\nhandle/language combination.\n\n```php\n$mail = \\EmailTemplate::fetch('registration', ['name' =\u003e 'Jon'], 'es');\n \n\\Mail::to('foo@bar.com', $mail);\n```\n\nThis package doesn't rely on a templating engine such as Blade or Twig to handle any \nof the email messages, but does provide it's own view class adhering to Laravel contracts.\n\nThis means that you can pass data to the email just as you would any other view, without \nhaving to worry about the choice of templating package you use elsewhere in your project.\n\n```php\n$mail = \\EmailTemplate::fetch('registration', ['first_name' =\u003e 'Jon']);\n \n$mail-\u003ewith('last_name', 'Braud');\n \n$mail-\u003ewith([\n    'verify_url'=\u003e 'https:/....',\n    'signup_time' =\u003e \\Carbon\\Carbon::now()-\u003etoDateTimeString()\n]);\n \n\\Mail::to('foo@bar.com', $mail);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdtsoftware%2Flaravel-email-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdtsoftware%2Flaravel-email-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdtsoftware%2Flaravel-email-templates/lists"}