PHPackages                             happydemon/s4k - 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. happydemon/s4k

ActiveKohana-module[Authentication &amp; Authorization](/categories/authentication)

happydemon/s4k
==============

An examplary implementation of Sentry in Kohana

0.9(12y ago)5241[3 issues](https://github.com/happyDemon/s4k/issues)MITPHPPHP &gt;=5.3.3

Since Aug 22Pushed 12y ago3 watchersCompare

[ Source](https://github.com/happyDemon/s4k)[ Packagist](https://packagist.org/packages/happydemon/s4k)[ Docs](https://github.com/happyDemon/s4k)[ RSS](/packages/happydemon-s4k/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

s4k - Sentry for Kohana
=======================

[](#s4k---sentry-for-kohana)

Sentry can be used for user authentication and authorisation.

This module shows you how you could implement sentry in your Kohana application.

What's included:

- User registration
- User login (with optional remember and login throttler) logout
- Activation
- Reset password
- Groups
- Permissions

*Permissions, however still need to be implemented and tested in S4K*

\#Instalation

I'm making use of Goyote's Hint module, you'll have to add this as a repository to your composer.json file in your DOCROOT since he hasn't packaged it for composer.

composer.json file
------------------

[](#composerjson-file)

```
{
  "repositories": [
		{
			"type": "package",
			"package": {
				"name": "goyote/hint",
				"type":"kohana-module",
				"version": "1.0",
				"source": {
					"url": "https://github.com/goyote/hint.git",
					"type": "git",
					"reference": "master"
				}
			}
		}
	],
	"require": {
		"cartalyst/sentry": "2.*",
		"ircmaxell/password-compat": "1.0.*",
		"happydemon/s4k": "0.5",
		"goyote/hint": "1.0"
	},
	"minimum-stability": "dev"
}
```

Run `composer update`

Next up open `APPATH.bootstrap.php` and add S4K, elements, arr, txt and hint to your modules (make sure Database and ORM are activated too)

```
Kohana::modules(array(
  's4k' 	=> MODPATH.'s4k',	// S4K module, examplory implementation of Sentry
  'txt' 	=> MODPATH.'txt',	// Extra text helpers (used by Sentry)
  'arr' 	=> MODPATH.'arr',	// Extra Arr helpers (used for groups)
  'elements' 	=> MODPATH.'elements',	// Navigation element manager
  'hint' 	=> MODPATH.'hint',	// Flash message manager
  'database'	=> MODPATH.'database',	// Database access
  'orm'		=> MODPATH.'orm',	// Object Relationship Mapping
));
```

Right under that we'll put the code to alias some Sentry classes

```
/**
 * Setup Sentry
 */
class_alias('\Cartalyst\Sentry\Facades\Kohana\Sentry', 'Sentry');
```

Alright, we're nearly up and running, all we need to do is run an SQL dump in phpMyAdmin, you can find it under `DOCROOT/vendor/cartalyst/schema/mysql.sql`

If you run Kohana on your localhost in the dir 'kohana', go and visit `http://localhost/kohana/S4K` to see the running examples.

[![Gittip Badge](https://camo.githubusercontent.com/a460d7f93fdca3a1b0200a439eaf0332967027365be1bdc9d2dda2b13aa644b8/687474703a2f2f696d672e736869656c64732e696f2f6769747469702f686170707944656d6f6e2e737667)](https://www.gittip.com/happyDemon/ "Gittip donations")

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance8

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

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

Every ~74 days

Total

2

Last Release

4572d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/91a724ec7e90c57050c6fa0fa34f9faeec7041896866d4f8ddc85ed00b0f8887?d=identicon)[happyDemon](/maintainers/happyDemon)

---

Top Contributors

[![JustLikeIcarus](https://avatars.githubusercontent.com/u/105455?v=4)](https://github.com/JustLikeIcarus "JustLikeIcarus (1 commits)")

---

Tags

authkohanasentryaclkohana module

### Embed Badge

![Health badge](/badges/happydemon-s4k/health.svg)

```
[![Health](https://phpackages.com/badges/happydemon-s4k/health.svg)](https://phpackages.com/packages/happydemon-s4k)
```

###  Alternatives

[zizaco/entrust

This package provides a flexible way to add Role-based Permissions to Laravel. Supports laravel 5|6|7|8

6.0k5.3M61](/packages/zizaco-entrust)[codegreencreative/laravel-samlidp

Make your PHP Laravel application an Identification Provider using SAML 2.0. This package allows you to implement your own Identification Provider (idP) using the SAML 2.0 standard to be used with supporting SAML 2.0 Service Providers (SP).

263763.5k1](/packages/codegreencreative-laravel-samlidp)[rydurham/sentinel

An implementation of the Sentry User Manager for Laravel.

31746.5k](/packages/rydurham-sentinel)[gghughunishvili/entrust

This package provides a flexible way to add Role-based Permissions to Laravel/Lumen 6

27524.0k](/packages/gghughunishvili-entrust)[acoustep/entrust-gui

A GUI for the Entrust package.

11425.7k](/packages/acoustep-entrust-gui)[orchestra/auth

Auth Component for Orchestra Platform

24108.5k3](/packages/orchestra-auth)

PHPackages © 2026

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