PHPackages                             snelg/cakephp-3-cas - 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. snelg/cakephp-3-cas

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

snelg/cakephp-3-cas
===================

CAS Authentication for CakePHP 3

1.2.3(6y ago)53.5k3[2 issues](https://github.com/snelg/cakephp-3-cas/issues)MITPHP

Since Jul 8Pushed 6y agoCompare

[ Source](https://github.com/snelg/cakephp-3-cas)[ Packagist](https://packagist.org/packages/snelg/cakephp-3-cas)[ RSS](/packages/snelg-cakephp-3-cas/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (15)Used By (0)

CAS Authentication for CakePHP 3.x
==================================

[](#cas-authentication-for-cakephp-3x)

Very basic CAS Authentication for CakePHP 3.

Installing via composer
-----------------------

[](#installing-via-composer)

Install into your project using [composer](http://getcomposer.org). For existing applications you can add the following to your composer.json file:

```
"require": {
    "snelg/cakephp-3-cas": "~1.0"
}

```

And run `php composer.phar update`

Usage
-----

[](#usage)

Load the Cake AuthComponent, including CasAuth.Cas as an authenticator. For example:

```
$this->loadComponent('Auth');

$this->Auth->config('authenticate', [
    'CasAuth.Cas' => [
        'hostname' => 'cas.mydomain.com',
        'uri' => 'authpath']]);
```

Or combine the load and configuration into one step:

```
$this->loadComponent('Auth', [
    'authenticate' => [
        'CasAuth.Cas' => [
            'hostname' => 'cas.mydomain.com',
            'uri' => 'authpath']]]);
```

CAS parameters can be specified during Auth-&gt;config as above, or by writing to the "CAS" key in Configure::write, e.g.

```
Configure::write('CAS.hostname', 'cas.myhost.com');
Configure::write('CAS.port', 8443);
```

Parameters
----------

[](#parameters)

- **hostname** is required
- **port** defaults to 443
- **uri** defaults to '' (an empty string)
- *debug* (optional) if true, then phpCAS will write debug info to logs/phpCAS.log
- *cert\_path* (optional) if set, then phpCAS will use the specified CA certificate file to verify the CAS server
- *curlopts* (optional) key/value paired array of additional CURL parameters to pass through to phpCAS::setExtraCurlOption, e.g.

```
    'curlopts' => [CURLOPT_PROXY => 'http://proxy:5543', CURLOPT_CRLF => true]
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 90.5% 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 ~121 days

Recently: every ~105 days

Total

13

Last Release

2501d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/93d82c78714b6af2fc1197d8179383dad13f385d79456cceeb260f12b7742840?d=identicon)[snelg](/maintainers/snelg)

---

Top Contributors

[![snelg](https://avatars.githubusercontent.com/u/5741887?v=4)](https://github.com/snelg "snelg (19 commits)")[![mathieugrimault](https://avatars.githubusercontent.com/u/30295397?v=4)](https://github.com/mathieugrimault "mathieugrimault (1 commits)")[![Zehir](https://avatars.githubusercontent.com/u/845225?v=4)](https://github.com/Zehir "Zehir (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/snelg-cakephp-3-cas/health.svg)

```
[![Health](https://phpackages.com/badges/snelg-cakephp-3-cas/health.svg)](https://phpackages.com/packages/snelg-cakephp-3-cas)
```

###  Alternatives

[cakedc/users

Users Plugin for CakePHP

524897.0k16](/packages/cakedc-users)[dereuromark/cakephp-tinyauth

A CakePHP plugin to handle user authentication and authorization the easy way.

129228.6k10](/packages/dereuromark-cakephp-tinyauth)[admad/cakephp-jwt-auth

CakePHP plugin for authenticating using JSON Web Tokens

160680.3k8](/packages/admad-cakephp-jwt-auth)[markstory/acl_extras

Additional tools for managing DB ACL in CakePHP applications.

155311.0k](/packages/markstory-acl-extras)[admad/cakephp-social-auth

A CakePHP plugin which allows you to authenticate using social providers like Facebook/Google/Twitter etc.

51298.3k1](/packages/admad-cakephp-social-auth)[cakedc/auth

Auth objects for CakePHP

31630.0k2](/packages/cakedc-auth)

PHPackages © 2026

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