1. Go to this page and download the library: Download altmetric/identifiers 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/ */
altmetric / identifiers example snippets
use Altmetric\Identifiers\AdsBibcode;
$bibcodes = AdsBibcode::extract('ADS: 1974AJ.....79..819H');
//=> ['1974AJ.....79..819H']
use Altmetric\Identifiers\ArxivId;
$arxivIds = ArxivId::extract("math.GT/0309136\narXiv:1501.00001v2");
//=> ['math.GT/0309136', '1501.00001v2']
use Altmetric\Identifiers\Doi;
$dois = Doi::extract('doi:10.1049/el.2013.3006')
//=> ['10.1049/el.2013.3006']
use Altmetric\Identifiers\Handle;
$handles = Handle::extract('http://hdl.handle.net/10149/596901')
//=> ['10149/596901']
use Altmetric\Identifiers\Isbn;
$isbns = Isbn::extract("ISBN: 9780805069099\nISBN: 2-7594-0269-X");
//=> ['9780805069099', '9782759402694']
use Altmetric\Identifiers\NationalClinicalTrialId;
$nctIds = NationalClinicalTrialId::extract('Trial ID: NCT00000106');
//=> ['NCT00000106']
use Altmetric\Identifiers\OrcidId;
$orcidIds = OrcidId::extract('orcid.org/0000-0002-0088-0058');
//=> ['0000-0002-0088-0058']