Skip to content
A Slim 3 authentication system.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Update to namespaced class Mar 5, 2019
bootstrap Added additional middleware to check if a request is secure. If https… Nov 21, 2018
config Added additional middleware to check if a request is secure. If https… Nov 21, 2018
public Added some styling Feb 3, 2017
resources Upgraded role system to allow for permissions and fixed some bugs. Feb 20, 2017
routes Added additional middleware to check if a request is secure. If https… Nov 21, 2018
.env-example First implementation of recaptcha activation method (it may be implem… Jan 27, 2017
.gitignore Add v2 sql file Jan 23, 2017
LICENSE Initial commit Apr 5, 2016
README.md Added additional middleware to check if a request is secure. If https… Nov 21, 2018
auth.sql Update dependency so it no longer breaks when building assets Apr 10, 2018
composer.json Updated PHP requirements. There is a known bug with PHP >=7.2 that ca… Aug 3, 2018
forge Initial commit to v2 Jan 17, 2017
gulpfile.js
package.json

README.md

Slim 3 Authentication

A very easy to use Slim 3 authentication system.

Latest Unstable Version License

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

Getting Started

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 for help setting this up!

Installing

Clone the project:

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

Install the composer dependencies:

$ cd your-project-name && composer install

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

$ yarn install

Rename .env-example to .env

Update .env to your project's 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)

$ yarn prod
$ yarn dev

You will also need Google reCAPTCHA API keys. Get them here.

If you would like to completely disable reCAPTCHA, see this page

Check out the wiki for more information and details on how to add new controllers, routes and more.

License

This project is licensed under the MIT License - see the LICENSE file for details

You can’t perform that action at this time.