PHPackages                             mouf/security.simplelogincontroller - 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. [Security](/categories/security)
4. /
5. mouf/security.simplelogincontroller

ActiveMouf-library[Security](/categories/security)

mouf/security.simplelogincontroller
===================================

This package contains a simple Splash controller to log into an application. The controller can display a simple form with username/password choice, and has actions to login/logout the application.

v6.0.0(3y ago)0191.8k92MITPHPPHP ^8.0

Since Aug 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/thecodingmachine/security.simplelogincontroller)[ Packagist](https://packagist.org/packages/mouf/security.simplelogincontroller)[ Docs](https://github.com/thecodingmachine/security.simplelogincontroller)[ RSS](/packages/mouf-securitysimplelogincontroller/feed)WikiDiscussions 6.0 Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (8)Used By (2)

Simple login controller
=======================

[](#simple-login-controller)

What is this package?
---------------------

[](#what-is-this-package)

This package is part of [Mouf](http://mouf-php.com) login system. It provides a simple [Splash](http://mouf-php.com/packages/mouf/mvc.splash/index.md) controller that displays a simple login page.

The controller is using the [UserService](http://mouf-php.com/packages/mouf/security.userservice/README.md) system to log the user in your application.

If you are using [Mouf](http://mouf-php.com), [Splash MVC](http://mouf-php.com/packages/mouf/mvc.splash/index.md)(or a Splash compatible system like [Druplash](http://mouf-php.com/packages/mouf/integration.drupal.druplash/README.md)or [Moufpress](http://mouf-php.com/packages/mouf/integration.wordpress.moufpress/README.md)) and the [UserService](http://mouf-php.com/packages/mouf/security.userservice/README.md), you can use this controller to get a login page for free :)

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

[](#installation)

Start by adding the package to your dependencies:

```
{
	"require" : {
		"mouf/security.simplelogincontroller" : "^6.0"
	}
}

```

Run `php composer.phar update`, then install the package using Mouf UI.

The install process will create a `login` instance representing the controller.

How to use it?
--------------

[](#how-to-use-it)

Easy! Just point your browser to `http://[server]/[app]/login/`. You should see a login screen.

Be sure not to forget the trailing / in the URL. It is really important for the controller to work correctly.

In order to logout, use the `http://[server]/[app]/login/logout` URL.

How to customize?
-----------------

[](#how-to-customize)

\###Customizing labels You can customize this instance as you like. In particular, you can edit the attached `SimpleLoginView` object that will let you edit each piece of text displayed on the login screen.

\###Customizing design If you need more control on the design of the login screen, the `SimpleLoginView` is using [Mouf's rendering system](http://mouf-php.com/packages/mouf/html.renderer/README.md). Therefore, you can override the whole design of the page in your application.

To do this, simply copy the file `/vendor/mouf/security.simplelogincontroller/src/templates/Mouf/Security/Views/SimpleLoginView.twig`into '/src/templates/Mouf/Security/Views/SimpleLoginView.twig'. Here you can create your own version of the view. Do not forget to purge your cache in Mouf UI after copying the files for your new template file to be detected.

Alternatively, if you only need to display a few HTML elements before or after the login box, you can use the `contentBeforeLoginBox` and `contentAfterLoginBox` properties of the `login` instance.

\###Customizing behaviour You can register a number of [actions](http://mouf-php.com/packages/mouf/utils.action.action-interface/README.md)that will be performed before displaying the view by adding those actions in the `actions` property of the `login` instance.

\###Customizing URL By default the URL of the login screen if `/login/`. This is actually the name of the controller's instance. If you want to change this URL, you just have to change the name of the `SimpleLoginContoller` instance in Mouf UI.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 59.3% 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 ~486 days

Recently: every ~672 days

Total

8

Last Release

1264d ago

Major Versions

2.0.x-dev → 3.1.x-dev2015-07-24

3.1.x-dev → 4.0.x-dev2016-02-24

4.0.x-dev → 5.0.x-dev2016-09-13

5.0.x-dev → 6.0.x-dev2022-12-01

PHP version history (3 changes)3.0.x-devPHP &gt;=5.3.0

5.0.x-devPHP ^7.0.0

6.0.x-devPHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1104771?v=4)[mouf](/maintainers/mouf)[@Mouf](https://github.com/Mouf)

---

Top Contributors

[![moufmouf](https://avatars.githubusercontent.com/u/1290952?v=4)](https://github.com/moufmouf "moufmouf (35 commits)")[![nguyenk](https://avatars.githubusercontent.com/u/2227554?v=4)](https://github.com/nguyenk "nguyenk (14 commits)")[![xhuberty](https://avatars.githubusercontent.com/u/8350192?v=4)](https://github.com/xhuberty "xhuberty (4 commits)")[![llebacq](https://avatars.githubusercontent.com/u/18592688?v=4)](https://github.com/llebacq "llebacq (2 commits)")[![homersimpsons](https://avatars.githubusercontent.com/u/16977446?v=4)](https://github.com/homersimpsons "homersimpsons (1 commits)")[![Ngob](https://avatars.githubusercontent.com/u/2749238?v=4)](https://github.com/Ngob "Ngob (1 commits)")[![charlesc-TCM](https://avatars.githubusercontent.com/u/124873336?v=4)](https://github.com/charlesc-TCM "charlesc-TCM (1 commits)")[![alexisprevot](https://avatars.githubusercontent.com/u/11993949?v=4)](https://github.com/alexisprevot "alexisprevot (1 commits)")

---

Tags

securityloginmouf

### Embed Badge

![Health badge](/badges/mouf-securitysimplelogincontroller/health.svg)

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

###  Alternatives

[codeconsortium/ccdn-user-security-bundle

CCDN User Security Bundle

60100.7k](/packages/codeconsortium-ccdn-user-security-bundle)[websoftwares/throttle

Ban identifier after certain amount of requests in a given timeframe.

1249.7k](/packages/websoftwares-throttle)

PHPackages © 2026

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