{"id":20701181,"url":"https://github.com/jhaoda/socialite-mailru","last_synced_at":"2025-06-16T02:06:25.383Z","repository":{"id":31044313,"uuid":"34602965","full_name":"jhaoda/socialite-mailru","owner":"jhaoda","description":"MailRu OAuth2 Provider for Laravel Socialite","archived":false,"fork":false,"pushed_at":"2021-03-21T05:50:30.000Z","size":10,"stargazers_count":23,"open_issues_count":0,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-23T01:38:53.096Z","etag":null,"topics":["laravel","laravel-5-package","laravel-6-package","laravel-socialite","mailru","mailru-oauth2-provider","oauth2","php"],"latest_commit_sha":null,"homepage":null,"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/jhaoda.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-04-26T07:58:11.000Z","updated_at":"2022-07-15T12:03:23.000Z","dependencies_parsed_at":"2022-08-21T14:10:12.277Z","dependency_job_id":null,"html_url":"https://github.com/jhaoda/socialite-mailru","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/jhaoda/socialite-mailru","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhaoda%2Fsocialite-mailru","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhaoda%2Fsocialite-mailru/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhaoda%2Fsocialite-mailru/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhaoda%2Fsocialite-mailru/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jhaoda","download_url":"https://codeload.github.com/jhaoda/socialite-mailru/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhaoda%2Fsocialite-mailru/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260083863,"owners_count":22956408,"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":["laravel","laravel-5-package","laravel-6-package","laravel-socialite","mailru","mailru-oauth2-provider","oauth2","php"],"created_at":"2024-11-17T00:40:58.890Z","updated_at":"2025-06-16T02:06:25.354Z","avatar_url":"https://github.com/jhaoda.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MailRu OAuth2 Provider for Laravel Socialite\n\n### 1. Installation\n\n`composer require jhaoda/socialite-mailru`\n\n### 2. Service Provider\n\n* Remove `Laravel\\Socialite\\SocialiteServiceProvider` from your `providers[]` array in `config\\app.php` if you have added it already.\n* Add `SocialiteProviders\\Manager\\ServiceProvider` to your `providers[]` array in `config\\app.php`.\n\nFor example:\n```php\n'providers' =\u003e [\n    // a whole bunch of providers\n    // remove 'Laravel\\Socialite\\SocialiteServiceProvider',\n    SocialiteProviders\\Manager\\ServiceProvider::class, // add\n];\n```\n* Note: If you would like to use the Socialite Facade, you need to [install it](http://laravel.com/docs/5.2/authentication#social-authentication).\n\n### 3. Add the Event and Listeners\n\n* Add `SocialiteProviders\\Manager\\SocialiteWasCalled::class` event to your `listen[]` array in `\u003capp_name\u003e/Providers/EventServiceProvider`.\n\n* Add your listeners (i.e. the ones from the providers) to the `SocialiteProviders\\Manager\\SocialiteWasCalled[]` that you just created.\n\n* The listener that you add for this provider is `JhaoDa\\SocialiteProviders\\MailRu\\MailRuExtendSocialite::class`.\n\n* Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.\n\nFor example:\n```php\n/**\n * The event handler mappings for the application.\n *\n * @var array\n */\nprotected $listen = [\n    SocialiteProviders\\Manager\\SocialiteWasCalled::class =\u003e [\n        JhaoDa\\SocialiteProviders\\MailRu\\MailRuExtendSocialite::class\n    ],\n];\n```\n\n### 4. Services Array and .env\n\nAdd to `config/services.php`:\n```php\n'mailru' =\u003e [\n    'client_id' =\u003e env('MAILRU_ID'),\n    'client_secret' =\u003e env('MAILRU_SECRET'),\n    'redirect' =\u003e env('MAILRU_REDIRECT'),  \n],\n```\n\nAppend provider values to your `.env` file:\n```\n// other values above\nMAILRU_ID=your_app_id_for_the_service\nMAILRU_SECRET=your_app_secret_for_the_service\nMAILRU_REDIRECT=https://example.com/login\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhaoda%2Fsocialite-mailru","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjhaoda%2Fsocialite-mailru","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhaoda%2Fsocialite-mailru/lists"}