PHPackages                             davec49/silex2-simpleuser - 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. davec49/silex2-simpleuser

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

davec49/silex2-simpleuser
=========================

A simple database-backed user provider for Silex 2.0, with associated services and controllers forked from jasongrimes/SimpleUser.

v2.2(8y ago)131.1k7[2 issues](https://github.com/DaveC49/SimpleUser-Silex2/issues)BSD-2-ClausePHPPHP &gt;=5.6.0

Since Jul 24Pushed 8y ago4 watchersCompare

[ Source](https://github.com/DaveC49/SimpleUser-Silex2)[ Packagist](https://packagist.org/packages/davec49/silex2-simpleuser)[ Docs](https://github.com/DaveC49/SimpleUser-Silex2)[ RSS](/packages/davec49-silex2-simpleuser/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (7)Versions (4)Used By (0)

**This is a version of Jason Grimes Simple User which has been modified to work with Silex 2.0 rather than SIlex 1.3.. Both the source code and the unit tests have been modified and the unit tests complete successfully.**

Simple User Provider for Silex
==============================

[](#simple-user-provider-for-silex)

Build Status Total Downloads Latest Stable Version Latest Unstable Version

A simple, extensible, database-backed user provider for the Silex security service.

SimpleUser is an easy way to set up user accounts (authentication, authorization, and user administration) in the Silex PHP micro-framework. It provides drop-in services for Silex that implement the missing user management pieces for the Security component. It includes a basic User model, a database-backed user manager, controllers and views for user administration, and various supporting features.

Demo
----

[](#demo)

[Online demo](http://silex-simpleuser-demo.grimesit.com/)

[Demo source code](https://github.com/jasongrimes/silex-simpleuser-demo)

Upgrading
---------

[](#upgrading)

If you're upgrading from 1.x, you'll need to update the database for version 2.0. Tools are provided to make this database migration relatively painless. See sql/MIGRATION.md for details.

Quick start example config
--------------------------

[](#quick-start-example-config)

This configuration should work out of the box to get you up and running quickly. See below for additional details.

Install with composer. This command will automatically install the latest stable version:

### For Silex 1.3

[](#for-silex-13)

```
composer require jasongrimes/silex-simpleuser

```

### For Silex 2.0

[](#for-silex-20)

```
composer require davec49/silex2-simpleuser

```

Set up your Silex application something like this:

```
