PHP code example of ec-europa / ecas-phpcas-parser
1. Go to this page and download the library: Download ec-europa/ecas-phpcas-parser 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/ */
ec-europa / ecas-phpcas-parser example snippets
//config the client client as usual
phpCAS::client(
constant($config['cas.version']),
$config['cas.host'],
(int) $config['cas.port'],
$config['cas.uri'],
false
);
//set the attribute callback
phpCAS::setCasAttributeParserCallback(
array(
new \EcasPhpCASParser\EcasPhpCASParser(),
'parse'
)
);