Download the PHP package openeuropa/pcas without Composer
On this page you can find all versions of the php package openeuropa/pcas. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package pcas
pCAS library
pCAS, a CAS library for PHP.
Installation
Usage
In order to use the pCAS library you need a session object that implements
Symfony's SessionInterface
.
You can pass that object to the pCAS factory class as shown below:
You can access a fully functional pCAS library as shown below:
The pCAS factory object also accepts the following configuration parameters:
Parameter | Description |
---|---|
base_url |
The CAS service base URL. It defaults to http://127.0.0.1:8000 |
protocol |
The CAS protocol specification. It defaults to this list |
You can set those parameters as shown below:
Both parameters are optional, although you'll surely want to set base_url
to a different value.
Demo
Requirements:
Copy docker-compose.yml.dist into docker-compose.yml.
You can make any alterations you need for your local Docker setup. However, the defaults should be enough to set the project up.
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:
Then run the web app:
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 in directory. If this file doesn't exists, you can create it from .
The file must contains:
Run the tests
Changelog
The changelog is generated using a local docker installation which installs muccg/docker-github-changelog-generator
This reads the Github API for the required repository and writes the CHANGELOG.md to the root of the repository.
Prerequisites
- Local Docker machine running.
- A Github Access Token should be generated and exported (or written to
~/.gitconfig
) asCHANGELOG_GITHUB_TOKEN=<YOUR TOKEN HERE>
Before tagging a new release export the following:
The changelog can then be generated by running:
All versions of pcas with dependencies
php-http/httplug Version ^1.1
php-http/discovery Version ^1.4
php-http/client-common Version ^1.7
symfony/config Version ^2.2|^3.4|^4.0
symfony/dependency-injection Version ^3.4|^4.0
symfony/http-foundation Version ^3.4|^4.0
symfony/security Version ^3.4|^4.0
symfony/serializer Version ^3.4|^4.0
symfony/yaml Version ^3.4|^4.0
psr/log Version ^1.0
psr/simple-cache Version ^1.0