PHP code example of openeuropa / pcas
1. Go to this page and download the library: Download openeuropa/pcas library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
openeuropa / pcas example snippets
use OpenEuropa\pcas\PCasFactory;
use Symfony\Component\HttpFoundation\Session\Session;
$factory = new PCasFactory(new Session());
$pcas = $factory->getPCas();
use OpenEuropa\pcas\PCasFactory;
use Symfony\Component\HttpFoundation\Session\Session;
$factory = new PCasFactory(
new Session(),
'http://my-cas-server.com', // This is your custom base_url parameter.
[...] // This is your custom protocol parameter.
);
$pcas = $factory->getPCas();