1. Go to this page and download the library: Download omnilab/col 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/ */
omnilab / col example snippets
$col = (new ColSourceFactory($http))->create(['mailto' => '[email protected]']);
$lion = $col->entity('4CGXP'); // or 'col:4CGXP', 'gbif:4CGXP', its page, 'Panthera leo'
$lion->identifiers()->keys(); // col:4CGXP, gbif:4CGXP, inaturalist:41964, itis:183803
$lion->value('scrutinizer'); // W. Christopher Wozencraft,Alfred L. Gardner
$col->entity('col:CFSCR')->related('accepted')->keys(); // col:4CGXP: Felis leo is a synonym
$col->search(new Query('Panthera leo', limit: 5)); // 356 names (COL26.9 XR)
mnilab\Col\ColSourceFactory;
$col = (new ColSourceFactory())->create(['mailto' => '[email protected]']); // your address, in the User-Agent
$lion = $col->entity('4CGXP');
echo $lion->label, ': ', implode(', ', $lion->identifiers()->keys()), "\n";
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.