PHPackages                             cobookman/php-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. cobookman/php-cas

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

cobookman/php-cas
=================

A PHP library to authenticate users using CAS

126PHP

Since Apr 27Pushed 12y ago2 watchersCompare

[ Source](https://github.com/cobookman/php-cas)[ Packagist](https://packagist.org/packages/cobookman/php-cas)[ RSS](/packages/cobookman-php-cas/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

php-cas
=======

[](#php-cas)

Uses the CAS login system to login users. Will return the username, and set the superglobal variables for basic HTTP Authentication.

To use, first install composer:

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

```

Then create a composer.json file which lists PHP-CAS as a dependency

```
{
    "require": {
        "cobookman/php-cas": "dev-master"
    }
}

```

Next, install php-cas, and all other dependencies (or required packages) by running:

```
php composer.phar install

```

In your application's index.php (or root file) add the following lines:

```
