{"id":36979561,"url":"https://github.com/php-monsters/laravel-postal-driver","last_synced_at":"2026-01-13T22:49:10.870Z","repository":{"id":302795372,"uuid":"1013633324","full_name":"php-monsters/laravel-postal-driver","owner":"php-monsters","description":"Laravel mail transport driver for Postal API","archived":false,"fork":false,"pushed_at":"2025-11-03T20:08:39.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-27T13:36:26.739Z","etag":null,"topics":["composer-package","driver","laravel","laravel-package","laravel-postal","mail","mail-driver","mailer","postal"],"latest_commit_sha":null,"homepage":"https://docs.postalserver.io/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/php-monsters.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-04T08:06:18.000Z","updated_at":"2025-11-05T12:32:13.000Z","dependencies_parsed_at":"2025-07-05T13:16:30.080Z","dependency_job_id":null,"html_url":"https://github.com/php-monsters/laravel-postal-driver","commit_stats":null,"previous_names":["php-monsters/laravel-postal-driver"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/php-monsters/laravel-postal-driver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-monsters%2Flaravel-postal-driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-monsters%2Flaravel-postal-driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-monsters%2Flaravel-postal-driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-monsters%2Flaravel-postal-driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-monsters","download_url":"https://codeload.github.com/php-monsters/laravel-postal-driver/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-monsters%2Flaravel-postal-driver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28403742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","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":["composer-package","driver","laravel","laravel-package","laravel-postal","mail","mail-driver","mailer","postal"],"created_at":"2026-01-13T22:49:10.792Z","updated_at":"2026-01-13T22:49:10.844Z","avatar_url":"https://github.com/php-monsters.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Postal Mail Driver\n\nA custom Laravel mail transport driver to send emails via the [Postal](https://postal.atech.media) mail server using its **HTTP API** instead of SMTP.\nOfficial documentation: https://apiv1.postalserver.io/controllers/send/message.html\n---\n\n## 📦 Features\n\n- Send transactional emails via Postal HTTP API\n- Uses Laravel's native `Mail::to()-\u003esend()` interface\n- Clean, framework-native mail transport driver\n- Compatible with Laravel version 8.0+\n\n---\n\n## 🚀 Installation\n\n### Step 1: Require the package (from local path or Git)\n\nIf using local development:\n\n```bash\ncomposer require php-monsters/laravel-postal-driver\n```\n\nOr add to your composer.json:\n\n```json\n\"repositories\": [\n  {\n    \"type\": \"path\",\n    \"url\": \"./packages/PhpMonsters/LaravelPostalDriver\"\n  }\n],\n\"require\": {\n  \"php-monsters/laravel-postal-driver\": \"*\"\n}\n```\nThen run:\n```bash\ncomposer update\n```\n\n## ⚙️ Configuration\n### Step 2: Set up .env variables\n```dotenv\nMAIL_DRIVER=postal\nPOSTAL_API_KEY=your_postal_api_key_here\nPOSTAL_API_ENDPOINT=https://postal.yourdomain.com\n```\n\n### Step 3: Configure config/mail.php\nAdd to the mailers array:\n```php\n'mailers' =\u003e [\n    'postal' =\u003e [\n        'transport' =\u003e 'postal',\n        'key' =\u003e env('POSTAL_API_KEY'),\n        'endpoint' =\u003e env('POSTAL_API_ENDPOINT'),\n    ],\n],\n```\n\n## ✉️ Usage\nUse Laravel's standard Mail facade:\n```php\nuse App\\Mail\\TestMail;\nuse Illuminate\\Support\\Facades\\Mail;\n\nMail::to('recipient@example.com')-\u003esend(new TestMail());\n```\nYour Mailable class should work as usual.\n\n## 📐 Under the Hood\nThis driver makes HTTP POST requests to:\n```bash\nPOST /api/v1/send/message\n```\nWith headers:\n```http request\nX-Server-API-Key: {your_api_key}\nContent-Type: application/json\n```\nPayload:\n\n```json\n{\n  \"to\": \"recipient@example.com\",\n  \"from\": \"you@yourdomain.com\",\n  \"subject\": \"Subject Line\",\n  \"plain_body\": \"Text version\",\n  \"html_body\": \"\u003cp\u003eHTML version\u003c/p\u003e\"\n}\n```\n\n## 🛠 Requirements\n- Laravel 8 or newer \n- Postal mail server with API access \n- PHP 8.0+ \n- Guzzle 7+\n\n## 📝 License\nThis project is open-sourced under the MIT license.\n\n## 🤝 Credits\nMade with ❤️ by Aboozar Ghaffari\n\nPostal by [Atech Media](https://postal.atech.media)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-monsters%2Flaravel-postal-driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-monsters%2Flaravel-postal-driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-monsters%2Flaravel-postal-driver/lists"}