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(7y ago)53.5k3[2 issues](https://github.com/snelg/cakephp-3-cas/issues)MITPHP

Since Jul 8Pushed 7y 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 today

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 72% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity24

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

2555d 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

[dereuromark/cakephp-tinyauth

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

131240.2k13](/packages/dereuromark-cakephp-tinyauth)[cakephp/debug_kit

CakePHP Debug Kit

86314.7M171](/packages/cakephp-debug-kit)[cakedc/users

Users Plugin for CakePHP

525928.0k20](/packages/cakedc-users)[cakephp/bake

Bake plugin for CakePHP

11212.0M202](/packages/cakephp-bake)[dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

308954.9k25](/packages/dereuromark-cakephp-queue)[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1882.3M44](/packages/dereuromark-cakephp-ide-helper)

PHPackages © 2026

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