Download the PHP package altmetric/identifiers without Composer
On this page you can find all versions of the php package altmetric/identifiers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download altmetric/identifiers
More information about altmetric/identifiers
Files in altmetric/identifiers
Package identifiers
Short Description Collection of utilities related to the extraction, validation and normalization of various scholarly identifiers.
License MIT
Homepage https://github.com/altmetric/php-identifiers
Informations about the package identifiers
Identifiers
Collection of utilities related to the extraction, validation and normalization of various scholarly identifiers.
Current version: 0.10.1
Supported PHP versions: 5.4, 5.5, 5.6, 7
Installation
Supported identifiers
The supported list is:
- ADS Bibcodes;
- arXiv IDs;
- DOIs (including ISBN-As);
- Handles;
- ISBNs;
- National Clinical Trial IDs;
- ORCID identifiers;
- PubMed IDs;
- RePEc IDs;
- URNs;
- URIs.
API Documentation
public AdsBibcode::extract(string $str): array
Return an array of ADS bibcodes from a given string. Will return an empty array if no matches are found.
public ArxivId::extract(string $str): array
Return an array of arXiv IDs from a given string. Will return an empty array if no matches are found.
public Doi::extract(string $str): array
Return an array of DOIs (including ISBN-As) from a given string. Will return an empty array if no matches are found.
public Handle::extract(string $str): array
Return an array of Handles from a given string. Will return an empty array if no matches are found.
public Isbn::extract(string $str): array
Return an array of ISBN-13s from a given string. Will convert ISBN-As and ISBN-10s to ISBN-13s automatically and return an empty array if no matches are found.
public NationalClinicalTrialId::extract(string $str): array
Return an array of National Clinical Trial IDs from a given string. Will return an empty array if no matches are found.
public OrcidId::extract(string $str): array
Return an array of ORCID identifiers from a given string. Will return an empty array if no matches are found.
public PubmedId::extract(string $str): array
Return an array of PubMed IDs from a given string. Will return an empty array if no matches are found.
public RepecId::extract(string $str): array
Return an array of RePEc identifiers from a given string. Will return an empty array if no matches are found.
public Urn::extract(string $str): array
Return an array of URNs from a given string. Will return an empty array if no matches are found.
public Uri::extract(string $str): array
Return an array of URIs from a given string. Will return an empty array if no matches are found.
Ruby version
We also maintain a version of this library for Ruby.
Acknowledgements
- Thanks to Jeff Roberson's "Regular Expression URI Validation"
License
Copyright © 2016-2017 Altmetric LLP
Distributed under the MIT License.