{"id":25415171,"url":"https://github.com/stefanpoensgen/sptecgmailapimailerbundle","last_synced_at":"2025-10-31T07:32:11.666Z","repository":{"id":60865294,"uuid":"546242141","full_name":"stefanpoensgen/SptecGmailApiMailerBundle","owner":"stefanpoensgen","description":"Symfony Mailer Transport for Gmail API including Google OAuth2 authentication.","archived":false,"fork":false,"pushed_at":"2022-10-23T16:44:58.000Z","size":14,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-18T04:16:39.317Z","etag":null,"topics":["gmail-api","google-api","hacktoberfest","symfony","symfony-bundle"],"latest_commit_sha":null,"homepage":"","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/stefanpoensgen.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":"2022-10-05T19:16:04.000Z","updated_at":"2022-11-15T17:45:49.000Z","dependencies_parsed_at":"2022-10-06T01:25:48.972Z","dependency_job_id":null,"html_url":"https://github.com/stefanpoensgen/SptecGmailApiMailerBundle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanpoensgen%2FSptecGmailApiMailerBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanpoensgen%2FSptecGmailApiMailerBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanpoensgen%2FSptecGmailApiMailerBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanpoensgen%2FSptecGmailApiMailerBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stefanpoensgen","download_url":"https://codeload.github.com/stefanpoensgen/SptecGmailApiMailerBundle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239148031,"owners_count":19589709,"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":["gmail-api","google-api","hacktoberfest","symfony","symfony-bundle"],"created_at":"2025-02-16T15:21:48.121Z","updated_at":"2025-10-31T07:32:11.384Z","avatar_url":"https://github.com/stefanpoensgen.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gmail Api Mailer Bundle\n\nSymfony Mailer Transport for Gmail API including Google OAuth2 authentication.\n\n## Requirements\n* Symfony \u003e= 5.4\n\n## Installation\n\n#### Step 1: Download the Bundle\nUse [Composer](http://getcomposer.org/) to install this bundle:\n\n```\ncomposer require sptec/gmail-api-mailer-bundle\n```\n\n#### Step 2: Enable the Bundle\n```php\n// config/bundles.php\n\nreturn [\n    // ...\n    Sptec\\GmailApiMailerBundle\\SptecGmailApiMailerBundle =\u003e ['all' =\u003e true],\n];\n```\n\n## Configuration\n### Google API Client\nIf you don't use [Symfony Flex](https://github.com/symfony/flex) you have create the following configuration\n```yaml\n# config/packages/google_apiclient.yaml\nservices:\n  Google_Client:\n    class: Google_Client\n    calls:\n      - [setClientId, ['%env(GOOGLE_CLIENT_ID)%']]\n      - [setClientSecret, ['%env(GOOGLE_CLIENT_SECRET)%']]\n```\n\n### .env\n```dotenv\n###\u003e google/apiclient ###\nGOOGLE_CLIENT_ID=\nGOOGLE_CLIENT_SECRET=\n###\u003c google/apiclient ###\n\n###\u003e symfony/mailer ###\nMAILER_DSN=gmail+api://null\n###\u003c symfony/mailer ###\n```\n\n## Usage\n```\nbin/console sptec:google:auth\n```\nYour Google access token will be stored as json environment variable `GOOGLE_ACCESS_TOKEN` \nby using [Symfony's secrets management system](https://symfony.com/doc/current/configuration/secrets.html).\n\n## Google Credentials\n1. Open the [Google Cloud console](https://console.cloud.google.com/).\n2. At the top-left, click Menu menu \u003e APIs \u0026 Services \u003e Credentials.\n3. Click Create Credentials \u003e OAuth client ID.\n4. Click Application type \u003e Web application.\n5. Enter a name for the OAuth client ID. (e.g. Symfony Gmail API Mailer)\n6. Add authorized redirect URIs. (default: http://localhost)\n7. Click Create.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanpoensgen%2Fsptecgmailapimailerbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefanpoensgen%2Fsptecgmailapimailerbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanpoensgen%2Fsptecgmailapimailerbundle/lists"}