PHPackages                             hellkid/socialite-naszaklasa - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. hellkid/socialite-naszaklasa

ActiveLibrary

hellkid/socialite-naszaklasa
============================

NaszaKlasa OAuth2 Provider for Laravel Socialite

171[1 PRs](https://github.com/hellkid/socialite-naszaklasa/pulls)PHP

Since Mar 28Pushed 6y ago1 watchersCompare

[ Source](https://github.com/hellkid/socialite-naszaklasa)[ Packagist](https://packagist.org/packages/hellkid/socialite-naszaklasa)[ RSS](/packages/hellkid-socialite-naszaklasa/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Nasza Klasa () OAuth2 Provider for Laravel Socialite
==================================================================

[](#nasza-klasa-httpnkpl-oauth2-provider-for-laravel-socialite)

Documentation
-------------

[](#documentation)

This package is based on awesome packages by [Socialite Providers](http://socialiteproviders.github.io/)

You can always refer to their docs if you need more info on how to use this package.

INSTALLATION
------------

[](#installation)

### 1. COMPOSER

[](#1-composer)

This assumes that you have composer installed globally

`composer require hellkid/socialite-naszaklasa`

### 2. SERVICE PROVIDER

[](#2-service-provider)

Remove `Laravel\Socialite\SocialiteServiceProvider` from your `providers[]` array in `config\app.php` if you have added it already.

Add `\SocialiteProviders\Manager\ServiceProvider::class` to your `providers[]` array in `config\app.php`.

For example:

```
'providers' => [
    // a whole bunch of providers
    // remove 'Laravel\Socialite\SocialiteServiceProvider',
    \SocialiteProviders\Manager\ServiceProvider::class, // add
];

```

Note: If you would like to use the Socialite Facade, you need to [install](https://laravel.com/docs/5.0/authentication#social-authentication) it.

### 3. ADD THE EVENT AND LISTENERS

[](#3-add-the-event-and-listeners)

Add `SocialiteProviders\Manager\SocialiteWasCalled` event to your `listen[]` array in `/Providers/EventServiceProvider`.

Add your listeners (i.e. the ones from the providers) to the `SocialiteProviders\Manager\SocialiteWasCalled[]` that you just created.

The listener that you add for this provider is `'Hellkid\Hellkid\SocialiteNaszaklasa\NaszaKlasaExtendSocialite@handle'`,.

Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.

For example:

```
/**
 * The event handler mappings for the application.
 *
 * @var array
 */
protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // add your listeners (aka providers) here
        'Hellkid\Hellkid\SocialiteNaszaklasa\NaszaKlasaExtendSocialite@handle',
    ],
];

```

### 4. ENVIRONMENT VARIABLES

[](#4-environment-variables)

If you add environment values to your .env as exactly shown below, you do not need to add an entry to the services array.

APPEND PROVIDER VALUES TO YOUR `.ENV` FILE

```
// other values above
NASZAKLASA_KEY=yourkeyfortheservice
NASZAKLASA_SECRET=yoursecretfortheservice
NASZAKLASA_REDIRECT_URI=https://example.com/login

```

ADD TO CONFIG/SERVICES.PHP.

You do not need to add this if you add the values to the .env exactly as shown above. The values below are provided as a convenience in the case that a developer is not able to use the .env method

```
'naszaklasa' => [
    'client_id' => env('NASZAKLASA_KEY'),
    'client_secret' => env('NASZAKLASA_SECRET'),
    'redirect' => env('NASZAKLASA_REDIRECT_URI'),
],

```

You should now be able to use it like you would regularly use Socialite (assuming you have the facade installed):

```
return Socialite::with('naszaklasa')->redirect();

```

You can use Socialite providers with Lumen. Just make sure that you have facade support turned on and that you follow the setup directions properly.

Note: If you are using this with Lumen, all providers will automatically be stateless since Lumen does not keep track of state.

Also, configs cannot be parsed from the `services[]` in Lumen. You can only set the values in the .env file as shown exactly in this document. If needed, you can also override a config.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f7fe067b4e69654e0b8cee93149a8067e2bba03f278cbe00cb3b81b87605b79?d=identicon)[hellkid](/maintainers/hellkid)

---

Top Contributors

[![hellkid](https://avatars.githubusercontent.com/u/8776322?v=4)](https://github.com/hellkid "hellkid (1 commits)")

### Embed Badge

![Health badge](/badges/hellkid-socialite-naszaklasa/health.svg)

```
[![Health](https://phpackages.com/badges/hellkid-socialite-naszaklasa/health.svg)](https://phpackages.com/packages/hellkid-socialite-naszaklasa)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
