{"id":30793993,"url":"https://github.com/sendgrid/smtpapi-php","last_synced_at":"2025-09-05T16:26:29.563Z","repository":{"id":12809105,"uuid":"15484019","full_name":"sendgrid/smtpapi-php","owner":"sendgrid","description":"SendGrid's smtpapi library in PHP","archived":false,"fork":false,"pushed_at":"2023-04-10T00:15:45.000Z","size":343,"stargazers_count":69,"open_issues_count":1,"forks_count":63,"subscribers_count":201,"default_branch":"main","last_synced_at":"2024-11-09T12:41:29.861Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://sendgrid.com","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/sendgrid.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2013-12-27T23:48:01.000Z","updated_at":"2024-06-20T11:29:23.000Z","dependencies_parsed_at":"2024-06-18T12:25:05.318Z","dependency_job_id":"548ec98e-6fc1-4893-b68e-9281f1f29641","html_url":"https://github.com/sendgrid/smtpapi-php","commit_stats":{"total_commits":194,"total_committers":45,"mean_commits":4.311111111111111,"dds":0.8814432989690721,"last_synced_commit":"7e0821dc606064276938443a08148728a07ae60a"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/sendgrid/smtpapi-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sendgrid%2Fsmtpapi-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sendgrid%2Fsmtpapi-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sendgrid%2Fsmtpapi-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sendgrid%2Fsmtpapi-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sendgrid","download_url":"https://codeload.github.com/sendgrid/smtpapi-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sendgrid%2Fsmtpapi-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273782728,"owners_count":25167204,"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","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-09-05T16:26:23.987Z","updated_at":"2025-09-05T16:26:29.548Z","avatar_url":"https://github.com/sendgrid.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Twilio SendGrid Logo](twilio_sendgrid_logo.png)\n\n[![BuildStatus](https://github.com/sendgrid/smtpapi-php/actions/workflows/test-and-deploy.yml/badge.svg)](https://github.com/sendgrid/smtpapi-php/actions/workflows/test-and-deploy.yml)\n[![Latest Stable Version](https://poser.pugx.org/sendgrid/smtpapi/version.png)](https://packagist.org/packages/sendgrid/smtpapi)\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/sendgrid/smtpapi.svg?style=flat-square)](https://packagist.org/packages/sendgrid/smtpapi )\n[![Twitter Follow](https://img.shields.io/twitter/follow/sendgrid.svg?style=social\u0026label=Follow)](https://twitter.com/sendgrid)\n[![GitHub contributors](https://img.shields.io/github/contributors/sendgrid/smtpapi-php.svg)](https://github.com/sendgrid/smtpapi-php/graphs/contributors)\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\n**This module helps build Twilio SendGrid's SMTP API headers.**\n\nLearn more about the SMTP API at [Twilio SendGrid's documentation](https://sendgrid.com/docs/API_Reference/SMTP_API/index.html).\n\n\u003ca name=\"announcements\"\u003e\u003c/a\u003e\n# Announcements\nAll the updates to this module are documented in our [CHANGELOG](CHANGELOG.md).\n\n# Table of Contents\n\n* [Installation](#installation)\n* [Quick Start](#quick-start)\n* [Usage](#usage)\n* [Announcements](#announcements)\n* [How to Contribute](#how-to-contribute)\n* [About](#about)\n* [Support](#support)\n* [License](#license)\n\n\u003ca name=\"installation\"\u003e\u003c/a\u003e\n# Installation\n\n## Prerequisites\n\n- PHP version 7.3, 7.4, 8.0, or 8.1\n- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=smtpapi-php)\n\n## Install with Composer\n\nThe following recommended installation requires [composer](http://getcomposer.org).\n\nAdd the following to your `composer.json` file.\n\n```json\n{\n    \"require\": {\n        \"sendgrid/smtpapi\": \"^0.7.0\"\n    }\n}\n```\n\nThen at the top of your script require the autoloader:\n\n```bash\nrequire 'vendor/autoload.php';\n```\n\n#### Alternative: Install package from zip\n\nIf you are not using Composer, simply download and install the **[latest packaged release of the library as a zip](https://github.com/sendgrid/smtpapi-php/releases/download/0.7.0/smtpapi-php.zip)**.\n\n[**⬇︎ Download Packaged Library ⬇︎**](https://github.com/sendgrid/smtpapi-php/releases/download/0.7.0/smtpapi-php.zip)\n\nThen require the library from package:\n\n```php\nrequire('path/to/smtpapi-php/smtpapi-php.php');\n```\n\nThe previous versions of the library can be downloaded directly from [GitHub](https://github.com/sendgrid/smtpapi-php/releases).\n\n## Setup Environment Variables\n\n### Environment Variable\n\nUpdate the development environment with your [SENDGRID_API_KEY](https://app.sendgrid.com/settings/api_keys), for example:\n\n```bash\necho \"export SENDGRID_API_KEY='YOUR_API_KEY'\" \u003e sendgrid.env\necho \"sendgrid.env\" \u003e\u003e .gitignore\nsource ./sendgrid.env\n```\n\n\u003ca name=\"quick-start\"\u003e\u003c/a\u003e\n# Quick Start\n\n```php\n$header = new Smtpapi\\Header();\n$header-\u003eaddTo('test1@example.com');\n$header-\u003eaddTo('test2@example.com');\nprint $header-\u003ejsonString();\n```\n\n\u003ca name=\"usage\"\u003e\u003c/a\u003e\n# Usage\n\n- [Twilio SendGrid Docs](https://sendgrid.com/docs/API_Reference/SMTP_API/index.html)\n- [Example Code](examples)\n\n\u003ca name=\"how-to-contribute\"\u003e\u003c/a\u003e\n## How to Contribute\n\nWe encourage contributions to our projects; please see our [CONTRIBUTING](CONTRIBUTING.md) guide for details.\n\nQuick links:\n\n- [Feature Request](CONTRIBUTING.md#feature_request)\n- [Bug Reports](CONTRIBUTING.md#submit_a_bug_report)\n- [Improvements to the Codebase](CONTRIBUTING.md#improvements_to_the_codebase)\n- [Review Pull Requests](CONTRIBUTING.md#code-reviews)\n\n\u003ca name=\"about\"\u003e\u003c/a\u003e\n# About\n\nsmtpapi-php is maintained and funded by Twilio SendGrid, Inc. The names and logos for smtpapi-php are trademarks of Twilio SendGrid, Inc.\n\n\u003ca name=\"support\"\u003e\u003c/a\u003e\n# Support\n\nIf you need help using SendGrid, please check the [Twilio SendGrid Support Help Center](https://support.sendgrid.com).\n\n\u003ca name=\"license\"\u003e\u003c/a\u003e\n# License\n[The MIT License (MIT)](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsendgrid%2Fsmtpapi-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsendgrid%2Fsmtpapi-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsendgrid%2Fsmtpapi-php/lists"}