PHP code example of programic / ecli-service

1. Go to this page and download the library: Download programic/ecli-service 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/ */

    

programic / ecli-service example snippets




use Programic\EcliService\Client;

$client = new Client();

$results = $client->organizations(true);
$organization = $results[0];

$organization->name;
$organization->type;
$organization->abbreviation;
$organization->identifier;
$organization->startDate;
$organization->endDate;

$results = $client->jurisdictions();
$jurisdiction = $results[0];

$jurisdiction->name;
$jurisdiction->identifier;
$jurisdiction->subJurisdictions;

$results = $client->procedureTypes();
$procedureType = $results[0];

$procedureType->name;
$procedureType->identifier;

$ecliData = $client->getEcliMetaData('ECLI:NL:HR:2014:952');

$ecliData->identifier;
$ecliData->modified;
$ecliData->issued;
$ecliData->publisher;
$ecliData->creator;
$ecliData->date;
$ecliData->type;
$ecliData->subject;
$ecliData->relation;
$ecliData->references;

$ecliExists = $client->ecliExists('ECLI:NL:HR:2014:952');