aritomelo / pcas

PHP Cas Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pCAS library

Build Status

pCAS, a CAS library for PHP.

Installation

composer require openeuropa/pcas

Demo

The pCAS library is bundled with two independent Symfony app:

  • demo-client: A basic web app that can authenticate to a CAS server to access specific pages.
  • demo-server: A basic CAS server.

In order to test pCAS library, you must run the server:

cd demo-server
composer install
php bin/console server:run 127.0.0.1:8001

Then run the web app:

cd demo-client
composer install
php bin/console server:run 127.0.0.1:8000

Then go on http://127.0.0.1:8000.

You can also test it against ECAS, the authentication service from European Commission by updating the file .env in demo-client directory. If this file doesn't exists, you can create it from .env.dist.

The file must contains:

APP_ENV=ec

Run the tests

composer install
./vendor/bin/grumphp run

About

PHP Cas Library


Languages

Language:PHP 86.8%Language:HTML 13.2%