Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Odnoklassniki Laravel Package

socialiteproviders/odnoklassniki

Odnoklassniki (OK.ru) OAuth2 provider for Laravel Socialite. Adds a ready-made driver so you can authenticate users via Odnoklassniki with one line: Socialite::driver('odnoklassniki')->redirect(). Install with Composer, set your client ID and secret, and receive standard Socialite user objects.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Market-entry / localization gating. OK.ru is a mainstream social identity in Russia and parts of the CIS. This package turns "should we support sign-in for that audience?" into a cheap, reversible A/B-testable feature rather than a research project. The decision it informs is whether a target-market expansion warrants localized auth options.
  • Signup-funnel optimization. Social login removes form friction and email-verification steps. If analytics show meaningful traffic or registration intent from OK.ru's footprint, this is a direct activation/conversion lever; if not, it is scope for scope's sake.
  • Build vs. buy (buy, with a caveat). This is a thin adapter over Laravel Socialite — OAuth 2.0 redirect, callback, profile fetch. Building it in-house is perhaps a few days of work but carries ongoing OAuth-spec and API-drift maintenance. Buying is right if Socialite is already in the stack; if it isn't, this package is not the deciding factor, the framework choice is.
  • Provider-portfolio discipline. The real product question is rarely "can we add OK.ru?" but "which of the dozens of providers do we offer, and who owns that list?" This package is one line item in a social-login portfolio decision: add providers behind a config flag, measure, prune. Use it to establish a policy (e.g., only providers with >X% addressable audience) rather than approving one-offs.
  • Account-linking and identity policy. Adding a provider forces the decision on how OK.ru identities map to existing accounts (email match, explicit linking, duplicate-account handling). That is a product/support decision, not an engineering one, and it should be settled before launch.
  • Compliance and procurement review. Integrating a Russian-operated platform can trigger privacy, data-residency, sanctions, and app-store/procurement questions depending on your jurisdiction and customer base. PM owns whether that review is a blocker or a footnote — it is not something engineering can decide alone.
  • Roadmap sequencing. This is a small, low-coupling item that fits inside an existing auth sprint. It should not anchor a release; it should ride along with other identity work.

Signal quality warning for the decision record: the 582 stars belong to the umbrella socialiteproviders/providers monorepo, not to this driver, so they say nothing about this specific package's quality. "0 dependents" is similarly weak — split packages in this family are installed via Composer from the monorepo and rarely show dependents on the split repo. Treat both numbers as noise, not evidence.

When to Consider This Package

Consider it when:

  • Laravel Socialite is already in the application. In that case marginal cost is genuinely near zero: one Composer require, one config block, one button, one callback route, and the provider slots into the same consent/error-handling flow as Google or Facebook.
  • You have evidence — analytics, CRM geography, or market research — that a non-trivial share of your target users hold OK.ru accounts or prefer it as their login. This should be data, not intuition.
  • You only need the basics: stable user ID, name, and avatar for account creation and profile display. That is what the driver exposes.
  • Your app's PHP and Laravel versions fall inside the package's illuminate/* and php constraints. Read composer.json before promising anything — this is the single most common reason a provider like this turns out to be unusable.
  • Your team is comfortable depending on a community-maintained collection for a convenience login method (i.e., users can always sign up another way).

Look elsewhere or defer when:

  • Socialite is not in the stack. Adding a framework package plus an ecosystem package to support one provider is disproportionate. Implement OAuth 2.0 directly against OK.ru's API, or skip.
  • OK.ru is not a meaningful part of your audience. Zero strategic value; it is permanent maintenance and support surface for a button nobody clicks.
  • You need more than profile basics. Groups, media, messaging, or friend graphs are outside this driver's scope — go direct to the platform's API.
  • This would sit on a critical auth path with no fallback. A community-maintained provider for a primary login method concentrates availability risk. Either keep an alternative login path or vendor the small amount of code and own it.
  • Legal/procurement constraints. Sanctions exposure, data-residency rules, enterprise customer policy, or app-store restrictions may make the integration a non-starter regardless of technical merit. Determine this before engineering spends time.
  • The provider's upstream is stale. Verify commit recency, open-issue responsiveness, and whether the collection currently targets your Laravel major. A monorepo can be healthy overall while an individual driver is untouched for years — the OK.ru API itself may have drifted.
  • You would be the only consumer of this path. If nobody on the team can debug an OAuth failure in this provider, the operational cost is higher than the code suggests.

How to Pitch It (Stakeholders)

For executives: This is an optional, low-cost growth feature — an additional "sign in with" button for users in Russian-speaking markets, built on an open-source (MIT) adapter that plugs into the Laravel framework we already use. There is no new infrastructure, no vendor contract, and no data migration. The cost is a day or two of integration plus a modest ongoing review. The risk is not technical — it is relevance: the feature is only worth shipping if our data shows the audience is there. Recommendation is to approve it as a measured experiment with a usage threshold for keeping it, not as a committed roadmap item. Flag one non-technical dependency: a quick legal/privacy check on integrating a Russian-operated identity provider.

For engineering: This is a thin driver over Laravel Socialite — redirect, callback, token exchange, profile fetch — with all the standard OAuth 2.0 plumbing already handled. Integration is a Composer require, a services entry with client ID/secret/redirect, and a callback route; the code surface in our app is small and should be wrapped behind our existing social-login abstraction so the provider is swappable. Three things to verify before we commit: (1) the package's php and illuminate/* constraints actually admit our stack — this is the usual blocker; (2) the OK.ru app registration and redirect-URI requirements, including whether they impose rate limits or review; (3) upstream maintenance health for this specific driver, since the umbrella repo's popularity does not tell us about this file. Assume we may need to vendor or reimplement it in ~a day if it goes stale. Put the provider behind a config flag so it can be disabled without a deploy.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
cgv/localized-resource