{"id":16423381,"url":"https://github.com/ngekoding/google-login","last_synced_at":"2025-10-26T22:31:40.030Z","repository":{"id":58074838,"uuid":"529876575","full_name":"ngekoding/google-login","owner":"ngekoding","description":"Simplifying the Google Login process in a PHP application","archived":false,"fork":false,"pushed_at":"2024-10-07T11:54:08.000Z","size":11,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T00:51:08.682Z","etag":null,"topics":["google-login","social-login","social-login-google"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/ngekoding/google-login","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ngekoding.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-28T13:52:28.000Z","updated_at":"2024-10-07T11:54:12.000Z","dependencies_parsed_at":"2022-08-29T17:50:23.149Z","dependency_job_id":null,"html_url":"https://github.com/ngekoding/google-login","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngekoding%2Fgoogle-login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngekoding%2Fgoogle-login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngekoding%2Fgoogle-login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngekoding%2Fgoogle-login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ngekoding","download_url":"https://codeload.github.com/ngekoding/google-login/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238408479,"owners_count":19467099,"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":["google-login","social-login","social-login-google"],"created_at":"2024-10-11T07:39:37.618Z","updated_at":"2025-10-26T22:31:39.689Z","avatar_url":"https://github.com/ngekoding.png","language":"PHP","readme":"# Google Login\n\nThe easy way to integrate Google Login into PHP application.\n\n## Requirements\n\n- PHP 5.6 or above\n- The **OAuth client ID** from Google Cloud Console\n\n## Installation\n\n```sh\ncomposer require ngekoding/google-login\n```\n\n## Usage\n\nJust call the `auth` method and you are done!\n\n```php\n\u003c?php\n// Include the autoload\nrequire_once 'vendor/autoload.php';\n\n// Prepare the configs\n$clientId = 'YOUR CLIENT ID';\n$clientSecret = 'YOUR CLIENT SECRET';\n$redirectUri = 'YOUR REDIRECT URI'; // The URL to this file/endpoint\n\n$googleLogin = new \\Ngekoding\\GoogleLogin\\GoogleLogin($clientId, $clientSecret, $redirectUri);\n\ntry {\n    $googleLogin-\u003eauth();\n    \n    header('Content-Type: application/json');\n    echo json_encode($googleLogin-\u003euser());\n} catch (\\Exception $e) {\n    echo 'Error: '.$e-\u003egetMessage();\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngekoding%2Fgoogle-login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fngekoding%2Fgoogle-login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngekoding%2Fgoogle-login/lists"}