PHPackages                             sopinet/userbundle - 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. sopinet/userbundle

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

sopinet/userbundle
==================

Easy integration sample, fosuser+hwi\_oauth+sonatauser for Symfony2

2.2.x-dev(10y ago)24722[1 issues](https://github.com/sopinet/userbundle/issues)MITPHPPHP &gt;=5.3.3

Since Mar 24Pushed 10y ago5 watchersCompare

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

READMEChangelogDependencies (2)Versions (6)Used By (0)

Sopinet/UserBundle
==================

[](#sopinetuserbundle)

Easy Integration:

hwi\_oauth:

fosub:

Optional (sonatauser &amp; sonataadmin):

What it is?
===========

[](#what-it-is)

This bundle integrate fosub + hwi\_oauth with default options and configuration for only work. You can use it as documentation, guide or use directly in your site.

Installation
============

[](#installation)

From composer, add

```
{
    "require": {
        "sopinet/userbundle": "dev-master"
    }
}
```

Add bundle to AppKernel (you can need add FOSUB and SonataUserBundle too)

```
 new Sopinet\UserBundle\SopinetUserBundle(),
```

Configuration
=============

[](#configuration)

1. Add configuration / security file by default:

```
imports
  - { resource: "@SopinetUserBundle/Resources/config/config.yml" }
```

instead of if you want the same login page for admin and users, then you must import this one:

```
imports
  - { resource: "@SopinetUserBundle/Resources/config/same_login_config.yml" }
```

2. Add your id and secret parameters:

```
parameters:
  sopinet_user_facebook_id: "YOURID-FACEBOOK"
  sopinet_user_facebook_secret: "YOURSECRET-FACEBOOK"
  sopinet_user_google_id: "YOURID-GOOGLE"
  sopinet_user_google_secret: "YOURSECRET-GOOGLE"
```

3. It work with SonataUserBundle, overriding user class in app, so, you must have configure integration with FOSUB+SonataUser

```
fos_user:
  db_driver: orm
  firewall_name: main
  user_class: Application\Sonata\UserBundle\Entity\User
```

4. In your Application\\Sonata\\UserBundle\\Entity\\User you must have one field ProfilePicture:

```
    /** @ORM\Column(name="profilepicture", type="string", length=500, nullable=true) */
    protected $profilepicture;
    /**
     * Set profilepicture
     *
     * @param string $profilepicture
     * @return User
     */
    public function setProfilePicture($profilepicture)
    {
      $this->profilepicture = $profilepicture;
    	return $this;
    }
    /**
     * Get profilepicture
     *
     * @return string
     */
    public function getProfilePicture()
    {
    	return $this->profilepicture;
    }
```

And it must be defined in User.orm.xml

```

```

Usage
=====

[](#usage)

```
    Connect with Google
    Connect with Facebook
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~104 days

Total

4

Last Release

3888d ago

Major Versions

1.2.x-dev → 2.0.x-dev2015-02-26

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/07938d69d943c96a0f2d1eb14eb5206805bbad3f74e460dfdd1ca9daadd5a81e?d=identicon)[Sopinet](/maintainers/Sopinet)

---

Top Contributors

[![hidabe](https://avatars.githubusercontent.com/u/50526?v=4)](https://github.com/hidabe "hidabe (6 commits)")[![lumilo8](https://avatars.githubusercontent.com/u/3762301?v=4)](https://github.com/lumilo8 "lumilo8 (3 commits)")

---

Tags

Symfony2oauthlogin

### Embed Badge

![Health badge](/badges/sopinet-userbundle/health.svg)

```
[![Health](https://phpackages.com/badges/sopinet-userbundle/health.svg)](https://phpackages.com/packages/sopinet-userbundle)
```

###  Alternatives

[overtrue/socialite

A collection of OAuth 2 packages.

1.4k5.5M87](/packages/overtrue-socialite)[auth0/auth0-php

PHP SDK for Auth0 Authentication and Management APIs.

40820.2M68](/packages/auth0-auth0-php)[auth0/login

Auth0 Laravel SDK. Straight-forward and tested methods for implementing authentication, and accessing Auth0's Management API endpoints.

2745.0M3](/packages/auth0-login)[socialconnect/auth

Social Connect Auth Component

568845.4k5](/packages/socialconnect-auth)[auth0/symfony

Symfony SDK for Auth0 Authentication and Management APIs.

128738.1k](/packages/auth0-symfony)[auth0/wordpress

WordPress Plugin for Auth0

17419.5k](/packages/auth0-wordpress)

PHPackages © 2026

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