PHPackages                             chris911/slim-api-auth - 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. chris911/slim-api-auth

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

chris911/slim-api-auth
======================

Authorization and authentication for the Slim based APIs using ZF2 Authentication and Acl components.

0.0.4-alpha(12y ago)71062MITPHPPHP &gt;=5.3.7

Since Dec 15Pushed 12y ago1 watchersCompare

[ Source](https://github.com/Chris911/slim-api-auth)[ Packagist](https://packagist.org/packages/chris911/slim-api-auth)[ Docs](https://github.com/Chris911/slim-api-auth)[ RSS](/packages/chris911-slim-api-auth/feed)WikiDiscussions master Synced 2mo ago

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

Slim Auth [![Build Status](https://camo.githubusercontent.com/7da91a6d9bdcc13e7ffdef86d483373249e9b59a74e28eb75ebd0b8d87e070cd/68747470733a2f2f7472617669732d63692e6f72672f6a6572656d796b656e64616c6c2f736c696d2d617574682e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/jeremykendall/slim-auth) [![Coverage Status](https://camo.githubusercontent.com/8348f8c3744652dffdff54c75f35db8d6a4a3282db5bbee06a33223bbcce0bed/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6a6572656d796b656e64616c6c2f736c696d2d617574682f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/jeremykendall/slim-auth?branch=master) [![Dependencies Status](https://camo.githubusercontent.com/1ef5fa3b4782b21bdd45322af787e57dfd3e6022e4f89e49a530282621377434/68747470733a2f2f646570656e64696e672e696e2f6a6572656d796b656e64616c6c2f736c696d2d617574682e706e67)](http://depending.in/jeremykendall/slim-auth)
=======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#slim-auth---)

Slim Auth is an authorization and authentication library for the [Slim Framework](http://slimframework.com/). Authentication is accomplished by using the Zend Framework [Authentication](http://framework.zend.com/manual/2.2/en/modules/zend.authentication.intro.html)component, and authorization by using the Zend Framework [Acl](http://framework.zend.com/manual/2.2/en/modules/zend.permissions.acl.intro.html) component.

DOCUMENTATION INCOMPLETE
------------------------

[](#documentation-incomplete)

This lib is usable, but is beta software, and this documentation is incomplete. If you're *extremely* familiar with Zend Auth and Zend ACL, you can probably work it out just fine. Otherwise, you might want to wait for the docs to be completed.

Caveat emptor and all that.

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

[](#installation)

Install composer in your project:

```
curl -s https://getcomposer.org/installer | php

```

Create a composer.json file in your project root:

```
{
    "require": {
        "jeremykendall/slim-auth": "*"
    }
}

```

(*Please check Packagist for the [most recent version of Slim Auth](https://packagist.org/packages/jeremykendall/slim-auth)*)

Install via composer:

```
php composer.phar install

```

Add this line to your application’s index.php file:

```
