PHPackages                             tom32i/simple-security-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. tom32i/simple-security-bundle

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

tom32i/simple-security-bundle
=============================

A simple security bundle for user authentication

v0.4.4(11y ago)0236[3 issues](https://github.com/Tom32i/SimpleSecurityBundle/issues)[1 PRs](https://github.com/Tom32i/SimpleSecurityBundle/pulls)MITPHP

Since Sep 28Pushed 9y ago5 watchersCompare

[ Source](https://github.com/Tom32i/SimpleSecurityBundle)[ Packagist](https://packagist.org/packages/tom32i/simple-security-bundle)[ Docs](https://github.com/Tom32i/SimpleSecurityBundle)[ RSS](/packages/tom32i-simple-security-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (1)Versions (18)Used By (0)

Tom32iSimpleSecurityBundle
==========================

[](#tom32isimplesecuritybundle)

A simple security bundle for user authentication

Installation:
-------------

[](#installation)

### Install the bundle:

[](#install-the-bundle)

\####Add the bundle to composer:

```
php composer.phar require tom32i/simple-security-bundle

```

#### Register the bundle in `app/AppKernel.php`:

[](#register-the-bundle-in-appappkernelphp)

```
$bundles = array(
    new Tom32i\Bundle\SimpleSecurityBundle\Tom32iSimpleSecurityBundle(),
);

```

#### Add routing in `app/config/routing.yml`:

[](#add-routing-in-appconfigroutingyml)

```
login_check:
    pattern:   /login-check

logout:
    pattern:   /logout

simple_security:
    resource: "@Tom32iSimpleSecurityBundle/Controller/"
    type:     annotation
    prefix:   /

```

### Create your custom user class:

[](#create-your-custom-user-class)

Extends `Tom32i\Bundle\SimpleSecurityBundle\Entity\User`.

```
