{"id":23114195,"url":"https://github.com/buibr/laramic-mailer","last_synced_at":"2025-04-04T00:27:15.966Z","repository":{"id":256234416,"uuid":"854680952","full_name":"buibr/laramic-mailer","owner":"buibr","description":"Dynamic mailing system for laravel application","archived":false,"fork":false,"pushed_at":"2024-09-09T16:22:07.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T12:28:45.217Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/buibr.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-09-09T15:41:48.000Z","updated_at":"2024-09-09T16:21:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"7555a2cd-b0af-41d7-b78f-8a706014d6e4","html_url":"https://github.com/buibr/laramic-mailer","commit_stats":null,"previous_names":["buibr/laramic-mailer"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buibr%2Flaramic-mailer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buibr%2Flaramic-mailer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buibr%2Flaramic-mailer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buibr%2Flaramic-mailer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buibr","download_url":"https://codeload.github.com/buibr/laramic-mailer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247101345,"owners_count":20883761,"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":[],"created_at":"2024-12-17T03:20:19.529Z","updated_at":"2025-04-04T00:27:15.958Z","avatar_url":"https://github.com/buibr.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Laramic Mailer is a Laravel plugin that allows dynamic email configuration based on database-stored settings. This package makes it easy to manage multiple mail configurations and send emails without hardcoding your email settings in .env files.\n\n## Features \n- Dynamic Mail Configuration: Fetch mail settings from the database and apply them on the fly.\n- Seamless Integration: Easily integrates with Laravel's native mail functionality.\n- Multi-Mailer Support: Supports multiple mailers for different use cases.\n- Flexible Setup: Define your own mailer configurations in the database, including SMTP host, port, encryption, and more.\n- Configurable Sender Info: Dynamically configure \"From\" name and address for each mail.\n- Extensible: Customize how mail configurations are stored and retrieved.\n\n## Installation\n\n#### Step 1: Install via Composer\nTo install the package, run the following command:\n```Bash\ncomposer require buibr/laramic-mailer\n```\n\n#### Step 2: Publish Configuration and Migration\nAfter installation, publish the configuration and migration files:\n```Bash\nphp artisan vendor:publish --tag=laramic-mailer-config\nphp artisan migrate\n```\n\n#### Usage\nAdd your mail configurations directly in the database (SMTP host, port, encryption, etc.).\nWhen sending emails, the plugin will fetch the necessary mailer configuration from the database and apply it on the fly.\nYou can define and manage multiple mailers for different purposes, all stored in the database.\n\nExample to use of Dynami MailServer server and laramic with defualt laravel functionality:\n\n```php\n// from\nMail::to($request-\u003euser())-\u003esend(new OrderShipped($order));\n\n// to\nLaramic::use($ticketCommunication-\u003emailServer)\n    -\u003eto($request-\u003euser())\n    -\u003esend(new InvoiceEmail(Invoice $invoice));\n```\n\nAll other laravel Mail or MailManager methods as parent layer of Laramic can be used normaly. See: https://laravel.com/docs/11.x/mail[url](https://laravel.com/docs/11.x/mail)]\n\n#### Testing\n```php\n\u003c?php\nuse Laramic\\Mailers\\Facades\\Laramic;\nuse Laramic\\Mailers\\Models\\Laramic;\n\n// Call this method to send test email to authenticated user\nLaramic::testMail(MailServer $mailServer);\n\n// Call this method to ping the email server, if configuration is wrong, then the ping will fail.\nLaramic::ping(MailServer $mailServer);\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuibr%2Flaramic-mailer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuibr%2Flaramic-mailer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuibr%2Flaramic-mailer/lists"}