2017 © Pedro Peláez
 

library slim-basic-auth-middleware

HTTP Basic Authentication Middleware for Slim Framework

image

julionc/slim-basic-auth-middleware

HTTP Basic Authentication Middleware for Slim Framework

  • Thursday, April 28, 2016
  • by julionc
  • Repository
  • 1 Watchers
  • 9 Stars
  • 333 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 4 % Grown

The README.md

Slim Framework HTTP Basic Auth

HTTP Basic Authentication Middleware for Slim Framework., (*1)

Build Status, (*2)

This repository contains a Slim Framework HTTP Basic Auth service provider. This enables you to define Rules that will provide you with basic user authentication based on username and password set. Also, Realm and Router name set., (*3)

Install

Via Composer, (*4)

``` bash $ composer require julionc/slim-basic-auth-middleware, (*5)


Requires Slim 3.0.0 or newer. ## Usage ```php $app = new \Slim\App(); // Fetch DI Container $container = $app->getContainer(); $basic_auth = new \Slim\HttpBasicAuth\Rule('admin', 'admin', null, '/admin'); // Register provider $container->register($basic_auth); $app->get('/admin', function ($req, $res, $args) { // Show dashboard }); $app->get('/foo', function ($req, $res, $args) { // Show custom page })->add($basic_auth); $app->run();

Testing

bash $ phpunit, (*6)

Contributing

Please see CONTRIBUTING for details., (*7)

License

The MIT License (MIT). Please see License File for more information., (*8)

The Versions

28/04 2016

dev-master

9999999-dev

HTTP Basic Authentication Middleware for Slim Framework

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

middleware auth http slim

28/04 2016

3.0.0

3.0.0.0

HTTP Basic Authentication Middleware for Slim Framework

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

middleware auth http slim

06/03 2014

2.0.0

2.0.0.0

HTTP Basic Authentication Middleware for Slim Framework

  Sources   Download

MIT

The Requires

 

middleware auth slim