PHPackages                             playtini/auth-bundle - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. playtini/auth-bundle

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

playtini/auth-bundle
====================

Simple Google Account Authentication Symfony Bundle

0.1.6(7y ago)2163proprietaryPHPPHP &gt;=7.0

Since Jan 16Pushed 7y ago2 watchersCompare

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

READMEChangelog (7)Dependencies (7)Versions (9)Used By (0)

Playtini Auth Bundle
====================

[](#playtini-auth-bundle)

Implementation of common authentication logic

Installation
------------

[](#installation)

1. Use composer

Add parameters to `app/config/parameters.yml.dist`

```
parameters:
    google_app_id:     something.apps.googleusercontent.com
    google_app_secret: your_secret
    google_app_domain: yourdomain.com
    google_app_users: user1,user2
```

You may add parameters to env-map:

```
"google_app_id": "GOOGLE_APP_ID",
"google_app_secret": "GOOGLE_APP_SECRET",
"google_app_domain": "GOOGLE_APP_DOMAIN",
"google_app_users": "GOOGLE_APP_USERS",

```

Install

```
composer require playtini/auth-bundle
```

2. Add **PlaytiniAuthBundle** and **KnpUOAuth2ClientBundle** to `app/AppKernel.php`

```
// app/AppKernel.php
new \KnpU\OAuth2ClientBundle\KnpUOAuth2ClientBundle(),
new \Playtini\Bundle\AuthBundle\PlaytiniAuthBundle()
```

3. Set `app/config/security.yml`

```
security:
    encoders:
        Symfony\Component\Security\Core\User\User:
            algorithm: bcrypt

    # http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers
    providers:
        database_users:
            entity: { class: 'Playtini\Bundle\AuthBundle\Entity\User', property: username }
        api_key_user_provider:
            id: playtini.auth.security.api_key_user_provider

    firewalls:
        dev:
            pattern:  ^/(_(profiler|wdt)|css|images|js)/
            security: false
        api:
            pattern: ^/api/(?!key\.json)
            stateless: true
            simple_preauth:
                authenticator: playtini.auth.security.api_key_authenticator
            provider: api_key_user_provider
        main:
            pattern: ^/
            logout:       true
            anonymous:    true
            guard:
                authenticators:
                    - playtini.auth.security.google_authenticator
                entry_point: playtini.auth.security.google_authenticator
            remember_me:
                secret: "%secret%"
                lifetime: 31536000 # 365 days in seconds
                path: /
                domain: ~ # Defaults to the current domain from $_SERVER
                #always_remember_me: true
    access_control:
        - { path: ^/login/, role: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/, roles: ROLE_USER }
```

4. Enable AuthBundle routing. Add to `app/config/routing.yml`

```
playtini_auth:
    resource: "@PlaytiniAuthBundle/Resources/config/routing/routing.yml"
```

5. Update your database schema

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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.

###  Release Activity

Cadence

Every ~89 days

Recently: every ~125 days

Total

7

Last Release

2870d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/df3e7060fb5777768e7bb133e98b1e7dfcc788f25fe6dc445acf7036da5c0c3e?d=identicon)[luchaninov](/maintainers/luchaninov)

---

Top Contributors

[![overgapo](https://avatars.githubusercontent.com/u/966991?v=4)](https://github.com/overgapo "overgapo (9 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/playtini-auth-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/playtini-auth-bundle/health.svg)](https://phpackages.com/packages/playtini-auth-bundle)
```

###  Alternatives

[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[chameleon-system/chameleon-base

The Chameleon System core.

1026.5k3](/packages/chameleon-system-chameleon-base)

PHPackages © 2026

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