PHPackages                             devsavage/slim-3-authentication - 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. devsavage/slim-3-authentication

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

devsavage/slim-3-authentication
===============================

An authentication system using the Slim Framework.

1.0.0.x-dev(9y ago)42810[2 issues](https://github.com/devsavage/slim-3-authentication/issues)PHP

Since Oct 15Pushed 6y ago4 watchersCompare

[ Source](https://github.com/devsavage/slim-3-authentication)[ Packagist](https://packagist.org/packages/devsavage/slim-3-authentication)[ RSS](/packages/devsavage-slim-3-authentication/feed)WikiDiscussions master Synced 4w ago

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

Slim 3 Authentication
=====================

[](#slim-3-authentication)

A very easy to use Slim 3 authentication system.

[![Latest Unstable Version](https://camo.githubusercontent.com/776fdc8307e001504890d22bfc27efa827d907c9e8f44df59489e627b1415128/68747470733a2f2f706f7365722e707567782e6f72672f6465767361766167652f736c696d2d332d61757468656e7469636174696f6e2f762f756e737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/devsavage/slim-3-authentication)[![License](https://camo.githubusercontent.com/5e85d7fd9296314a35af160618127e3ffcf60d1e46a64f7084b6c93093804661/68747470733a2f2f706f7365722e707567782e6f72672f6465767361766167652f736c696d2d332d61757468656e7469636174696f6e2f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/devsavage/slim-3-authentication)

If you stumble upon any vulnerabilities within this package, more importantly with the role/permission system, please send your findings to: ****.

Getting Started
---------------

[](#getting-started)

### Prerequisites

[](#prerequisites)

You will need the following to get started:

- A web server with URL rewriting

- PHP 5.5 or newer
- A SSL certificate will be required in production environments! Check out [HTTPS Is Easy](https://httpsiseasy.com/) for help setting this up!

- [Composer](https://getcomposer.org/)
- [Yarn](https://yarnpkg.com/) or [npm](https://www.npmjs.com/)

### Installing

[](#installing)

#### Clone the project:

[](#clone-the-project)

```
git clone https://github.com/devsavage/slim-3-authentication.git your-project-name

```

#### Install the composer dependencies:

[](#install-the-composer-dependencies)

```
$ cd your-project-name && composer install
```

#### Inside your project folder, install the node dependencies using yarn or npm:

[](#inside-your-project-folder-install-the-node-dependencies-using-yarn-or-npm)

```
$ yarn install
```

#### Rename **.env-example** to **.env**

[](#rename-env-example-to-env)

#### Update **.env** to your project's configuration

[](#update-env-to-your-projects-configuration)

```
APP_ENV=development
```

You will need to update the **APP\_ENV** variable to "production" when serving your application outside of a local environment!

#### Build assets (prodution or development)

[](#build-assets-prodution-or-development)

```
$ yarn prod
```

```
$ yarn dev
```

#### Database and Admin

[](#database-and-admin)

1. Import auth.sql file to your database.
2. Open your site, register a new user and click on activation link sent to your email
3. Go to **phpMyAdmin**, select **user\_roles** table and insert a new record. Select your user on **user\_id** field, select "superadmin" on **role\_id** field and confirm.
4. Login on site to see "Admin Dashboard" on header menu

#### Migrations and Seeds

[](#migrations-and-seeds)

Create migration file

```
php phinx create MigrationName
```

Create seed file

```
php phinx seed:create SeedName
```

Run migrations

```
php phinx migrate
```

Run seeds

```
php phinx seed:run
```

Use `php phinx` on terminal to see all available command list.

#### You will also need Google reCAPTCHA API keys. Get them [here](https://www.google.com/recaptcha).

[](#you-will-also-need-google-recaptcha-api-keys-get-them-here)

*If you would like to completely disable reCAPTCHA, see this [page](https://github.com/devsavage/slim-3-authentication/wiki/Completely-remove-reCAPTCHA)*

### Check out the [wiki](https://github.com/devsavage/slim-3-authentication/wiki/) for more information and details on how to add new controllers, routes and more.

[](#check-out-the-wiki-for-more-information-and-details-on-how-to-add-new-controllers-routes-and-more)

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 79.1% 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

Unknown

Total

1

Last Release

3544d ago

### Community

Maintainers

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

---

Top Contributors

[![devsavage](https://avatars.githubusercontent.com/u/5217828?v=4)](https://github.com/devsavage "devsavage (72 commits)")[![rubensrocha](https://avatars.githubusercontent.com/u/10297656?v=4)](https://github.com/rubensrocha "rubensrocha (19 commits)")

---

Tags

authenticationslim-3slim-frameworkslim3slimframework

### Embed Badge

![Health badge](/badges/devsavage-slim-3-authentication/health.svg)

```
[![Health](https://phpackages.com/badges/devsavage-slim-3-authentication/health.svg)](https://phpackages.com/packages/devsavage-slim-3-authentication)
```

###  Alternatives

[phlak/directory-lister

PHP directory lister

2.5k1.4k](/packages/phlak-directory-lister)[bacula-web/bacula-web

The open source web based reporting and monitoring tool for Bacula

1557.6k](/packages/bacula-web-bacula-web)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45344.0k1](/packages/pressbooks-pressbooks)[duxweb/dux-lite

The lightweight framework based on slim php

161.0k9](/packages/duxweb-dux-lite)[havenshen/slim-born

Slim Framework 3 skeleton application has authentication.

1931.8k](/packages/havenshen-slim-born)[doppar/framework

The Doppar Framework

4011.2k14](/packages/doppar-framework)

PHPackages © 2026

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