{"id":13828467,"url":"https://github.com/socialite-manager/socialite","last_synced_at":"2025-07-09T06:31:58.609Z","repository":{"id":57054586,"uuid":"123644737","full_name":"socialite-manager/socialite","owner":"socialite-manager","description":"[Social login]Socialite is an OAuth1/OAuth2 Authentication tool.","archived":false,"fork":false,"pushed_at":"2023-06-28T07:28:27.000Z","size":65,"stargazers_count":41,"open_issues_count":0,"forks_count":12,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-21T03:00:50.233Z","etag":null,"topics":["bitbucket","facebook","github","google","linkedin","oauth-login","php","sosial","twitter"],"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/socialite-manager.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-03T00:22:57.000Z","updated_at":"2024-05-22T07:24:52.000Z","dependencies_parsed_at":"2024-06-18T21:28:54.368Z","dependency_job_id":null,"html_url":"https://github.com/socialite-manager/socialite","commit_stats":{"total_commits":62,"total_committers":4,"mean_commits":15.5,"dds":0.3870967741935484,"last_synced_commit":"be007d056d114c022dfb715e87206ccfe2448cf8"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socialite-manager%2Fsocialite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socialite-manager%2Fsocialite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socialite-manager%2Fsocialite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socialite-manager%2Fsocialite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/socialite-manager","download_url":"https://codeload.github.com/socialite-manager/socialite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225492420,"owners_count":17482869,"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":["bitbucket","facebook","github","google","linkedin","oauth-login","php","sosial","twitter"],"created_at":"2024-08-04T09:02:48.184Z","updated_at":"2024-11-20T08:30:35.977Z","avatar_url":"https://github.com/socialite-manager.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# Socialite\n\n[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)\n\n## Introduction\n\nThis is inspired by laravel/socialite, you can easily use it without Laravel.\n\nIt possible to use it with various frameworks and middleware.\n\nIt is compatible with laravel/socialite.  \nYou can check the [Document](https://laravel.com/docs/5.5/socialite) of laravel.\n\n## Core Providers\n\n* twitter\n* github\n* google\n* facebook\n* bitbucket\n* linkedin\n\n## other Providers\n\n* [Instagram](https://github.com/socialite-manager/Instagram-Provider)\n* [Line](https://github.com/socialite-manager/Line-Provider)\n* [VKontakte](https://github.com/socialite-manager/VKontakte-Provider)\n* [Weixin](https://github.com/socialite-manager/Weixin-Provider)\n* [QQ](https://github.com/socialite-manager/QQ-Provider)\n* [Weibo](https://github.com/socialite-manager/Weibo-Provider)\n* [Twitch](https://github.com/socialite-manager/Twitch-Provider)\n* [Slack](https://github.com/socialite-manager/Slack-Provider)\n* [Discord](https://github.com/socialite-manager/Discord-Provider)\n* [Dropbox](https://github.com/socialite-manager/Dropbox-Provider)\n* [Yahoo](https://github.com/socialite-manager/Yahoo-Provider)\n* [Spotify](https://github.com/socialite-manager/Spotify-Provider)\n* [GitLab](https://github.com/socialite-manager/GitLab-Provider)\n* [Yandex](https://github.com/socialite-manager/Yandex-Provider)\n* Add more...\n\n## Requirement\n\n```\nPHP \u003e= 7.0\n```\n\n## Installation\n\n```\ncomposer require socialite-manager/socialite\n```\n\n## Basic Usage\n\n```php\n$config = [\n    'client_id' =\u003e 'xxx',\n    'client_secret' =\u003e 'xxx',\n    'redirect' =\u003e 'http://example.com/callback.php',\n];\n```\n\n`oath.php`\n\n```php\nuse Socialite\\Socialite;\n\nSocialite::driver('twitter', $config)-\u003eredirect();\n```\n\n`callback.php`\n\n```php\nuse Socialite\\Socialite;\n\n$user = Socialite::driver('twitter', $config)-\u003euser();\n\n$user-\u003egetAvatar();\n$user-\u003egetEmail();\n$user-\u003egetId();\n$user-\u003egetNickname();\n$user-\u003egetName();\n```\n\n## Advanced Usage\n\n`Sosialite` have options for use with framework and middleware\n\n### Set Request\n\nInterface: `\\Psr\\Http\\Message\\ServerRequestInterface`\n\n```php\nSocialite::driver('twitter', $config)\n    -\u003esetRequest($this-\u003erequest);\n```\n\n### Set Session\n\nneed one of the following `read/write` interfaces.\n\n|write|\n|----|\n|`$session-\u003eput()`|\n|`$session-\u003eset()`|\n|`$session-\u003ewrite()`|\n\n|read|\n|----|\n|`$session-\u003eget()`|\n|`$session-\u003eread()`|\n\n```php\nSocialite::driver('twitter', $config)\n    -\u003esetSession($this-\u003erequest-\u003egetSession());\n```\n\n### Redirect psr7 response\n\n`Psr\\Http\\Message\\ResponseInterface` will be returned\n\n```\nSocialite::driver('twitter', $config)-\u003epsr7Redirect()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocialite-manager%2Fsocialite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsocialite-manager%2Fsocialite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocialite-manager%2Fsocialite/lists"}