PHPackages                             aescarcha/user-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. aescarcha/user-bundle

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

aescarcha/user-bundle
=====================

A wrapper for Symfony FOSUserBundle

036PHP

Since May 5Pushed 9y ago1 watchersCompare

[ Source](https://github.com/aescarcha/UserBundle)[ Packagist](https://packagist.org/packages/aescarcha/user-bundle)[ RSS](/packages/aescarcha-user-bundle/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Aescarcha UserBundle
====================

[](#aescarcha-userbundle)

Introduction
------------

[](#introduction)

This bundle is a wrapper for FOS User Bundle and HWI oauth, to provide entities, repositories and Facebook support It also provides a REST Api for users.

REST API requires fractal and FosRestBundle

Install
-------

[](#install)

```
composer require aescarcha/user-bundle

```

#### Configure the service

[](#configure-the-service)

##### config.yml

[](#configyml)

```
fos_user:
    db_driver: orm # other valid values are 'mongodb', 'couchdb' and 'propel'
    firewall_name: main
    user_class: Aescarcha\UserBundle\Entity\User
    profile:
        form:
            type: app_user_profile

hwi_oauth:
    connect:
        account_connector: my_user_provider
    # name of the firewall in which this bundle is active, this setting MUST be set
    firewall_name: secured_area
    fosub:
        username_iterations: 30
        properties:
            # these properties will be used/redefined later in the custom FOSUBUserProvider service.
            facebook: facebookId
    resource_owners:
        facebook:
            type:                facebook
            client_id:           Your-client-id
            client_secret:       your-client-secret
            infos_url:           "https://graph.facebook.com/me?fields=id,name,email,picture.type(square),birthday,locale,location,gender,first_name,last_name,link,timezone,verified"
            scope:               "email user_friends user_photos user_videos user_location user_about_me user_birthday basic_info"
            paths:
                locale:     locale
                birthday:   birthday
                location:   location.name
                profilepicture: picture.data.url

```

##### services.yml

[](#servicesyml)

```
fos_user.doctrine_registry:
    alias: doctrine
my_user_provider:
    class: "%my_user_provider.class%"
    #this is the place where the properties are passed to the UserProvider - see config.yml
    arguments: [@fos_user.user_manager,{facebook: facebookId}]

```

##### AppKernel.php

[](#appkernelphp)

```
    $bundles = array(
        new Aescarcha\UserBundle\AescarchaUserBundle(),
        new FOS\UserBundle\FOSUserBundle,
        new HWI\Bundle\OAuthBundle\HWIOAuthBundle(),
    );

```

Tests
-----

[](#tests)

Tests are provided on the repo, but they're not working because the test requires some Entities and Repositories to work, making them work in a clean symfony install is also a TODO

TODOs:
------

[](#todos)

Remove not-needed stuff

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

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/44e7a12833605bd3cf56fe9fd74b7c77044e78d1a782f49146e9e0b2d58ffc86?d=identicon)[aEscarcha](/maintainers/aEscarcha)

---

Top Contributors

[![aescarcha](https://avatars.githubusercontent.com/u/8446899?v=4)](https://github.com/aescarcha "aescarcha (14 commits)")

### Embed Badge

![Health badge](/badges/aescarcha-user-bundle/health.svg)

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

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.3M17](/packages/kartik-v-yii2-password)

PHPackages © 2026

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