sloukapetr/socialite-seznam-driver

This is my package socialite-seznam-driver

Fund package maintenance!
Ravols

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 1

pkg:composer/sloukapetr/socialite-seznam-driver

1.0.4 2025-10-12 17:38 UTC

This package is auto-updated.

Last update: 2025-10-12 17:39:37 UTC


README

image image

This package offers a Seznam.cz driver for Laravel Socialite, allowing seamless integration of OAuth in Laravel projects. It simplifies the process of leveraging Laravel Socialite for user authentication via Seznam.cz, enhancing the overall project efficiency.

This is updated version to work with PHP 8.2 and Laravel 12.

Installation

You can install the package via composer:

composer require sloukapetr/socialite-seznam-driver

Put values into config/services.php file:

'seznam' => [
    'client_id' => env('SEZNAM_OAUTH_CLIENT_ID'),
    'client_secret' => env('SEZNAM_OAUTH_SECRET'),
    'redirect' => env('SEZNAM_OAUTH_REDIRECT'),
];

Usage

Redirect to Seznam oAuth sing in page via:

return Socialite::driver('seznam')->redirect();

After loging in on the page retrieve the user via:

 $user = Socialite::driver('seznam')->stateless()->user();

Rest of the logic is depending on your project and business needs.

License

The MIT License (MIT). Please see License File for more information.