PHPackages                             kevinkaske/herman - 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. kevinkaske/herman

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

kevinkaske/herman
=================

A simple authentication lib for Pooch

0135PHP

Since Jan 19Pushed 6y ago1 watchersCompare

[ Source](https://github.com/kevinkaske/herman-auth)[ Packagist](https://packagist.org/packages/kevinkaske/herman)[ RSS](/packages/kevinkaske-herman/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Herman Auth
===========

[](#herman-auth)

A simple authentication lib for [Pooch](http://www.poochhq.com)

About
-----

[](#about)

Herman is a drop in authentication Lib for Pooch. It's simple. It gives you a users table and an accounts table as well as functions for authenticating users.

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

[](#installation)

### Install Overview

[](#install-overview)

Installation of Herman is through [composer](https://getcomposer.org). You simply need to add the following to your composer.json file with the following contents:

```
{
	"minimum-stability": "dev",
	"require": {
		"kevinkaske/herman": "dev-master"
	}
}
```

Then run `composer install`. Composer will then install the dependent libraries.

Now we need to setup the project. Run the following command `php vendor/kevinkaske/herman/setup/setup.php`.

You will now need to run your migrations to setup the DB tables for Herman. You can do that by running `php vendor/bin/phinx migrate` from the command line to run this migration.

### Integrate with Pooch

[](#integrate-with-pooch)

Now that we have installed the Herman Auth library and setup the database tables, we need to use this library to restrict access.

Change your ApplicationController to look like the following:

```
