{"id":19423221,"url":"https://github.com/atomjoy/proton","last_synced_at":"2025-02-25T04:29:21.530Z","repository":{"id":176364891,"uuid":"657196209","full_name":"atomjoy/proton","owner":"atomjoy","description":"Html email blade components for Laravel. Html email footer signature example.","archived":false,"fork":false,"pushed_at":"2024-08-27T07:33:45.000Z","size":4021,"stargazers_count":19,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-28T10:37:18.518Z","etag":null,"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"],"latest_commit_sha":null,"homepage":"https://github.com/atomjoy/proton","language":"HTML","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/atomjoy.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-22T14:21:49.000Z","updated_at":"2024-09-13T19:49:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"89c9a36c-1d49-4ec0-8867-a1d0156b861d","html_url":"https://github.com/atomjoy/proton","commit_stats":null,"previous_names":["atomjoy/proton"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomjoy%2Fproton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomjoy%2Fproton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomjoy%2Fproton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomjoy%2Fproton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atomjoy","download_url":"https://codeload.github.com/atomjoy/proton/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240603062,"owners_count":19827635,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["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"],"created_at":"2024-11-10T13:37:28.674Z","updated_at":"2025-02-25T04:29:21.481Z","avatar_url":"https://github.com/atomjoy.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Html Email Components (Blade)\r\n\r\nHtml email blade components for Laravel. Html email footer signature example. Products html email newsletter (RWD).\r\n\r\n## Install package\r\n\r\n```sh\r\n# Create laravel project\r\ncomposer create-project laravel/laravel:^11.0 email-app\r\n# Or\r\ncomposer create-project laravel/laravel email-app\r\ncd email-app\r\ncomposer require atomjoy/proton\r\n```\r\n\r\n### Send email example\r\n\r\n```php\r\n\u003c?php\r\nuse App\\Models\\User;\r\nuse Proton\\Mail\\DefaultMail;\r\nuse Proton\\Mail\\RegisterMail;\r\nuse Proton\\Mail\\PasswordMail;\r\nuse Proton\\Mail\\F2aMail;\r\n\r\nRoute::get('/proton', function () {\r\n  // User (required columns: id, name, code)\r\n  // $user = User::first();\r\n\r\n  $user = User::factory(1)-\u003emake([\r\n    'email' =\u003e 'user@laravel.com'\r\n  ])-\u003efirst();\r\n\r\n  // Send email sample\r\n  Mail::to('user@laravel.com')-\u003esend(new DefaultMail());\r\n\r\n  // User reset password, use null for example\r\n  Mail::to('user@laravel.com')-\u003esend(new PasswordMail($user, '321-XXX-123'));\r\n  Mail::to('user@laravel.com')-\u003elocale('pl')-\u003esend(new PasswordMail($user, '321-XXX-123'));\r\n\r\n  // User activation link (User model required columns: id, name, code), use null for example\r\n  Mail::to('user@laravel.com')-\u003esend(new RegisterMail($user));\r\n  Mail::to('user@laravel.com')-\u003elocale('pl')-\u003esend(new RegisterMail($user));\r\n\r\n  // Code email\r\n  Mail::to('user@laravel.com')-\u003esend(new F2aMail($user, 888777));\r\n  Mail::to('user@laravel.com')-\u003elocale('pl')-\u003esend(new F2aMail($user, 888777));\r\n\r\n  // Show example email view\r\n  return view('proton::email.newsletter');\r\n  // return view('proton::email.default');\r\n  // return view('proton::email.password');\r\n  // return view('proton::email.register');\r\n  // return view('proton::email.signature');\r\n  // return view('proton::email.f2a', ['user' =\u003e $user, 'password' =\u003e 888777]);\r\n});\r\n```\r\n\r\n## Edit email templates\r\n\r\n```sh\r\n# Edit package email views in resources/views/vendor/proton\r\nphp artisan vendor:publish --tag=proton-views --force\r\n\r\n# Edit translations (optional)\r\nphp artisan vendor:publish --tag=proton-lang --force\r\n\r\n# Copy images (optional)\r\nphp artisan vendor:publish --tag=proton-mail --force\r\n\r\n# Create config file (optional)\r\nphp artisan vendor:publish --tag=proton-config --force\r\n```\r\n\r\n## Create Laravel mail class\r\n\r\n```sh\r\n# Or create your own mail class\r\nphp artisan make:mail PromoMail\r\n```\r\n\r\n## Email images\r\n\r\n### Newsletter email\r\n\r\n\u003cimg src=\"https://raw.githubusercontent.com/atomjoy/proton/main/proton-newsletter.png\" width=\"100%\"\u003e\r\n\r\n### Example email\r\n\r\n\u003cimg src=\"https://raw.githubusercontent.com/atomjoy/proton/main/proton-email.png\" width=\"100%\"\u003e\r\n\r\n### Activation email\r\n\r\n\u003cimg src=\"https://raw.githubusercontent.com/atomjoy/proton/main/proton-register.png\" width=\"100%\"\u003e\r\n\r\n### Password email\r\n\r\n\u003cimg src=\"https://raw.githubusercontent.com/atomjoy/proton/main/proton-password.png\" width=\"100%\"\u003e\r\n\r\n### 2FA email\r\n\r\n\u003cimg src=\"https://raw.githubusercontent.com/atomjoy/proton/main/proton-f2a.png\" width=\"100%\"\u003e\r\n\r\n### Html email signature image\r\n\r\n\u003cimg src=\"https://raw.githubusercontent.com/atomjoy/proton/main/proton-signature.png\" width=\"100%\"\u003e\r\n\r\n## LICENSE\r\n\r\nThis project is licensed under the terms of the GNU GPLv3 license.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomjoy%2Fproton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatomjoy%2Fproton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomjoy%2Fproton/lists"}