{"id":13606181,"url":"https://github.com/wintercms/wn-drivergoogledrive-plugin","last_synced_at":"2026-05-18T19:36:40.899Z","repository":{"id":187820368,"uuid":"677664875","full_name":"wintercms/wn-drivergoogledrive-plugin","owner":"wintercms","description":"Driver that adds support for Google Drive as a filesystem to Winter CMS.","archived":false,"fork":false,"pushed_at":"2023-08-12T08:11:53.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-19T00:44:17.176Z","etag":null,"topics":[],"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/wintercms.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},"funding":{"github":"wintercms","open_collective":"wintercms"}},"created_at":"2023-08-12T08:09:44.000Z","updated_at":"2023-09-25T16:52:53.000Z","dependencies_parsed_at":"2023-09-06T02:03:40.634Z","dependency_job_id":null,"html_url":"https://github.com/wintercms/wn-drivergoogledrive-plugin","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"6d0396022b2c4e6bc33716c41d29f262be038736"},"previous_names":["wintercms/wn-drivergoogledrive-plugin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wintercms/wn-drivergoogledrive-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wintercms%2Fwn-drivergoogledrive-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wintercms%2Fwn-drivergoogledrive-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wintercms%2Fwn-drivergoogledrive-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wintercms%2Fwn-drivergoogledrive-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wintercms","download_url":"https://codeload.github.com/wintercms/wn-drivergoogledrive-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wintercms%2Fwn-drivergoogledrive-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273506735,"owners_count":25118031,"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-03T02:00:09.631Z","response_time":76,"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":"2024-08-01T19:01:06.821Z","updated_at":"2026-05-18T19:36:35.861Z","avatar_url":"https://github.com/wintercms.png","language":"PHP","funding_links":["https://github.com/sponsors/wintercms","https://opencollective.com/wintercms"],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# Google Drive Filesystem Driver for Winter CMS\n\nProvides the [Google Drive](https://www.google.com/drive/) filesystem driver for [Winter CMS](https://wintercms.com/) using [masbug/flysystem-google-drive-ext](https://github.com/masbug/flysystem-google-drive-ext).\n\n## Installation\n\nThis plugin is available for installation via [Composer](http://getcomposer.org/).\n\n```bash\ncomposer require winter/wn-drivergoogledrive-plugin\n```\n\n## Usage\n\nFor usage examples of interacting with this driver see the usage examples here: [ivanvermeyen/laravel-google-drive-demo#available-routes](https://github.com/ivanvermeyen/laravel-google-drive-demo#available-routes)\n\n## Configuration\n\nExample Storage disk configuration using the `googledrive` storage driver provided by this plugin:\n\n    'mygoogledrive' =\u003e [\n        'driver' =\u003e 'googledrive',\n        'clientId' =\u003e '',\n        'clientSecret' =\u003e '',\n        'refreshToken' =\u003e '',\n        'folder' =\u003e '',\n    ],\n\nSee the following Configuration Guides for how to get the values for `clientId`, `clientSecret`, `refreshToken`, \u0026 `folder`.\n\n## Configuration Guides\n\n### Getting your Client ID and Secret\n\nLog in to your Google Account and go to this website:\n\nhttps://console.developers.google.com/\n\n#### Create a Project\n\nCreate a new project using the dropdown at the top.\n\n\u003cimg width=\"463\" alt=\"Create a new project\" src=\"https://cloud.githubusercontent.com/assets/3598622/22397261/060eac9e-e56e-11e6-907c-717932605569.png\"\u003e\n\nAfter you enter a name, it takes a few seconds before the project is successfully created on the server.\n\n#### Enable Drive API\n\nMake sure you have the project selected at the top.\n\nThen go to Library and click on \"Drive API\" under \"G Suite APIs\".\n\n\u003cimg width=\"1168\" alt=\"Add Drive API\" src=\"https://user-images.githubusercontent.com/3598622/28462245-a13b3d9c-6e1a-11e7-8cf8-0082ac8a9141.png\"\u003e\n\nAnd then Enable it.\n\n\u003cimg width=\"383\" alt=\"Enable Google Drive API\" src=\"https://cloud.githubusercontent.com/assets/3598622/22397290/a858c6d8-e56e-11e6-9154-0052d7ecd0eb.png\"\u003e\n\n#### Create Credentials\n\nGo to \"Credentials\" and click on the tab \"OAuth Consent Screen\". Fill in a \"Product name shown to users\" and Save it. Don't worry about the other fields.\n\n\u003cimg width=\"896\" alt=\"Consent Screen\" src=\"https://cloud.githubusercontent.com/assets/3598622/22397326/549fb3c0-e56f-11e6-9b0a-8771b0ba72b4.png\"\u003e\n\nThen go back to Credentials, click the button that says \"Create Credentials\" and select \"OAuth Client ID\".\n\n\u003cimg width=\"435\" alt=\"Create Credentials\" src=\"https://cloud.githubusercontent.com/assets/3598622/22397368/33f8bd0a-e570-11e6-859c-34d112c772e4.png\"\u003e\n\nChoose \"Web Application\" and give it a name.\n\nAdd https://developers.google.com/oauthplayground in \"Authorized redirect URIs\". You will need to use this in the next step to get your refresh token. Once you have the token, you can remove the URI.\n\n\u003cimg width=\"910\" alt=\"Credentials\" src=\"https://user-images.githubusercontent.com/3598622/28473452-e675826c-6e44-11e7-8ff0-bea423b0cff7.png\"\u003e\n\nClick Create and take note of your **Client ID** and **Client Secret**.\n\n### Getting your Refresh Token\n\nGo to https://developers.google.com/oauthplayground.\n\n\u003e Make sure you added this URL to your Authorized redirect URIs in the [previous step](1-getting-your-dlient-id-and-secret.md).\n\nIn the top right corner, click the settings icon, check \"Use your own OAuth credentials\" and paste your Client ID and Client Secret.\n\n\u003cimg width=\"463\" alt=\"Use your own OAuth credentials\" src=\"https://cloud.githubusercontent.com/assets/3598622/22397216/24fe7d88-e56d-11e6-82cf-2d75365d8800.png\"\u003e\n\nIn step 1 on the left, scroll to \"Drive API v3\", expand it and check the first drive scope.\n\n\u003cimg width=\"488\" alt=\"Check Scopes\" src=\"https://user-images.githubusercontent.com/3598622/28462312-fa4397ea-6e1a-11e7-93ad-365b891052a6.png\"\u003e\n\nClick \"Authorize APIs\" and allow access to your account when prompted.\nThere will be a few warning prompts, just proceed.\n\nWhen you get to step 2, check \"Auto-refresh the token before it expires\" and click \"Exchange authorization code for tokens\".\n\n\u003cimg width=\"493\" alt=\"Exchange authorization code for tokens\" src=\"https://cloud.githubusercontent.com/assets/3598622/22397183/8472095c-e56c-11e6-85be-83adf00837c7.png\"\u003e\n\nWhen you get to step 3, click on step 2 again and you should see your **refresh token**.\n\n\u003cimg width=\"487\" alt=\"Refresh Token\" src=\"https://cloud.githubusercontent.com/assets/3598622/22397176/2cef7a98-e56c-11e6-83b9-b4653850dbca.png\"\u003e\n\n### Getting your Root Folder\n\nIf you want to store files in your Google Drive root directory, then the folder ID can be `null`. Otherwise, go into your Drive and create a folder and then provide the path to that folder for this value.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwintercms%2Fwn-drivergoogledrive-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwintercms%2Fwn-drivergoogledrive-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwintercms%2Fwn-drivergoogledrive-plugin/lists"}