{"id":15042237,"url":"https://github.com/shershennm/yii2-sendgrid","last_synced_at":"2025-10-04T05:31:27.989Z","repository":{"id":57049256,"uuid":"46273489","full_name":"shershennm/yii2-sendgrid","owner":"shershennm","description":"Sendgrid wrapper for Yii 2","archived":false,"fork":true,"pushed_at":"2019-05-27T13:58:04.000Z","size":73,"stargazers_count":7,"open_issues_count":0,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-02T15:56:32.411Z","etag":null,"topics":["emails","sendgrid","sendgrid-php","yii2","yii2-extension"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"bryglen/yii2-sendgrid","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shershennm.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}},"created_at":"2015-11-16T12:33:20.000Z","updated_at":"2021-04-16T15:22:22.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/shershennm/yii2-sendgrid","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shershennm/yii2-sendgrid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shershennm%2Fyii2-sendgrid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shershennm%2Fyii2-sendgrid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shershennm%2Fyii2-sendgrid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shershennm%2Fyii2-sendgrid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shershennm","download_url":"https://codeload.github.com/shershennm/yii2-sendgrid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shershennm%2Fyii2-sendgrid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278267463,"owners_count":25958869,"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-10-04T02:00:05.491Z","response_time":63,"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":["emails","sendgrid","sendgrid-php","yii2","yii2-extension"],"created_at":"2024-09-24T20:47:01.261Z","updated_at":"2025-10-04T05:31:27.732Z","avatar_url":"https://github.com/shershennm.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Yii 2 shershennm SendGrid\n=========================\nSendgrid Mailer for Yii 2\n\n\u003e forked from [bryglen/yii2-sendgrid](https://github.com/bryglen/yii2-sendgrid.git)\n\n**3.1.0 update** \n\nMethods which returned `\\SendGrid\\Mail\\EmailAddress` or array with this type, now returns plain email string or `['email' =\u003e 'name']` array or array with this values.\n\nInstallation\n------------\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```\nphp composer.phar require --prefer-dist shershennm/yii2-sendgrid \"^3.1\"\n```\n\nor add\n\n```\n\"shershennm/yii2-sendgrid\": \"^3.1\"\n```\n\nto the require section of your `composer.json` file.\n\n\nUsage\n-----\n\nOnce the extension is installed, simply use it in your code by  :\n\nTo use Mailer, you should configure it in the application configuration like the following,\n\n```php\n'components' =\u003e [\n\t...\n\t'sendGrid' =\u003e [\n\t\t'class' =\u003e 'shershennm\\sendgrid\\Mailer',\n\t\t'apiKey' =\u003e 'your api key',\n\t]\n\t...\n],\n```\n\nTo send an email, you may use the following code:\n\n```php\n$sendGrid = Yii::$app-\u003esendGrid;\n$message = $sendGrid-\u003ecompose('contact/html', ['contactForm' =\u003e $form])\n$message-\u003esetFrom('from@domain.com')\n\t-\u003esetTo($form-\u003eemail)\n\t-\u003esetSubject($form-\u003esubject)\n\t-\u003esend($sendGrid);\n\t//also you can use sendgrid substitutions\n\t-\u003esetSendGridSubstitution('template id', [\n\t\t':var1' =\u003e 'var1value',\n\t\t':var2' =\u003e 'var2value',\n\t]);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshershennm%2Fyii2-sendgrid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshershennm%2Fyii2-sendgrid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshershennm%2Fyii2-sendgrid/lists"}