2017 © Pedro Peláez
 

library identifiers

Collection of utilities related to the extraction, validation and normalization of various scholarly identifiers.

image

altmetric/identifiers

Collection of utilities related to the extraction, validation and normalization of various scholarly identifiers.

  • Monday, April 9, 2018
  • by mudge
  • Repository
  • 3 Watchers
  • 2 Stars
  • 2,032 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 18 Versions
  • 5 % Grown

The README.md

Identifiers Build Status

Collection of utilities related to the extraction, validation and normalization of various scholarly identifiers., (*1)

Current version: 0.10.1
Supported PHP versions: 5.4, 5.5, 5.6, 7, (*2)

Installation

$ composer require altmetric/identifiers

Supported identifiers

The supported list is:, (*3)

API Documentation

public AdsBibcode::extract(string $str): array

use Altmetric\Identifiers\AdsBibcode;

$bibcodes = AdsBibcode::extract('ADS: 1974AJ.....79..819H');
//=> ['1974AJ.....79..819H']

Return an array of ADS bibcodes from a given string. Will return an empty array if no matches are found., (*4)

public ArxivId::extract(string $str): array

use Altmetric\Identifiers\ArxivId;

$arxivIds = ArxivId::extract("math.GT/0309136\narXiv:1501.00001v2");
//=> ['math.GT/0309136', '1501.00001v2']

Return an array of arXiv IDs from a given string. Will return an empty array if no matches are found., (*5)

public Doi::extract(string $str): array

use Altmetric\Identifiers\Doi;

$dois = Doi::extract('doi:10.1049/el.2013.3006')
//=> ['10.1049/el.2013.3006']

Return an array of DOIs (including ISBN-As) from a given string. Will return an empty array if no matches are found., (*6)

public Handle::extract(string $str): array

use Altmetric\Identifiers\Handle;

$handles = Handle::extract('http://hdl.handle.net/10149/596901')
//=> ['10149/596901']

Return an array of Handles from a given string. Will return an empty array if no matches are found., (*7)

public Isbn::extract(string $str): array

use Altmetric\Identifiers\Isbn;

$isbns = Isbn::extract("ISBN: 9780805069099\nISBN: 2-7594-0269-X");
//=> ['9780805069099', '9782759402694']

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., (*8)

public NationalClinicalTrialId::extract(string $str): array

use Altmetric\Identifiers\NationalClinicalTrialId;

$nctIds = NationalClinicalTrialId::extract('Trial ID: NCT00000106');
//=> ['NCT00000106']

Return an array of National Clinical Trial IDs from a given string. Will return an empty array if no matches are found., (*9)

public OrcidId::extract(string $str): array

use Altmetric\Identifiers\OrcidId;

$orcidIds = OrcidId::extract('orcid.org/0000-0002-0088-0058');
//=> ['0000-0002-0088-0058']

Return an array of ORCID identifiers from a given string. Will return an empty array if no matches are found., (*10)

public PubmedId::extract(string $str): array

use Altmetric\Identifiers\PubmedId;

$pubmedIds = PubmedId::extract("23193287\n14599470\nhttps://www.ncbi.nlm.nih.gov/pubmed/123\npmid:456\ninfo:pmid/789");
//=> ['23193287', '14599470', '123', '456', '789']

Return an array of PubMed IDs from a given string. Will return an empty array if no matches are found., (*11)

public RepecId::extract(string $str): array

use Altmetric\Identifiers\RepecId;

$repecIds = RepecId::extract("RePEc:wbk:wbpubs:2266\nRePEc:inn:wpaper:2016-03");
//=> ['RePEc:wbk:wbpubs:2266', 'RePEc:inn:wpaper:2016-03']

Return an array of RePEc identifiers from a given string. Will return an empty array if no matches are found., (*12)

public Urn::extract(string $str): array

use Altmetric\Identifiers\Urn;

$urns = Urn::extract("urn:foo:bar\nURN:FOO:BA%2CZ");
//=> ['urn:foo:bar', 'urn:foo:BA%2cZ']

Return an array of URNs from a given string. Will return an empty array if no matches are found., (*13)

public Uri::extract(string $str): array

use Altmetric\Identifiers\Uri;

$uris = Uri::extract("http://www.altmetric.com:80/foo?bar#1");
//=> ['http://www.altmetric.com:80/foo?bar#1']

Return an array of URIs from a given string. Will return an empty array if no matches are found., (*14)

Ruby version

We also maintain a version of this library for Ruby., (*15)

Acknowledgements

License

Copyright © 2016-2017 Altmetric LLP, (*16)

Distributed under the MIT License., (*17)

The Versions

09/04 2018

dev-master

9999999-dev https://github.com/altmetric/php-identifiers

Collection of utilities related to the extraction, validation and normalization of various scholarly identifiers.

  Sources   Download

MIT

The Requires

  • php >= 5.4.0

 

The Development Requires

by Maciej Gajewski
by Shane Preece

09/04 2018

v0.10.1

0.10.1.0 https://github.com/altmetric/php-identifiers

Collection of utilities related to the extraction, validation and normalization of various scholarly identifiers.

  Sources   Download

MIT

The Requires

  • php >= 5.4.0

 

The Development Requires

by Maciej Gajewski
by Shane Preece

09/04 2018

dev-improve-hyphenated-isbn-10-coverage

dev-improve-hyphenated-isbn-10-coverage https://github.com/altmetric/php-identifiers

Collection of utilities related to the extraction, validation and normalization of various scholarly identifiers.

  Sources   Download

MIT

The Requires

  • php >= 5.4.0

 

The Development Requires

by Maciej Gajewski
by Shane Preece

06/04 2018

v0.10.0

0.10.0.0 https://github.com/altmetric/php-identifiers

Collection of utilities related to the extraction, validation and normalization of various scholarly identifiers.

  Sources   Download

MIT

The Requires

  • php >= 5.4.0

 

The Development Requires

by Maciej Gajewski
by Shane Preece

06/04 2018

v0.9.0

0.9.0.0 https://github.com/altmetric/php-identifiers

Collection of utilities related to the extraction, validation and normalization of various scholarly identifiers.

  Sources   Download

MIT

The Requires

  • php >= 5.4.0

 

The Development Requires

by Maciej Gajewski
by Shane Preece

20/03 2018

dev-optimise-doi-extraction

dev-optimise-doi-extraction https://github.com/altmetric/php-identifiers

Collection of utilities related to the extraction, validation and normalization of various scholarly identifiers.

  Sources   Download

MIT

The Requires

  • php >= 5.4.0

 

The Development Requires

by Maciej Gajewski
by Shane Preece

17/03 2018

dev-stricter-isbn-hyphenation

dev-stricter-isbn-hyphenation https://github.com/altmetric/php-identifiers

Collection of utilities related to the extraction, validation and normalization of various scholarly identifiers.

  Sources   Download

MIT

The Requires

  • php >= 5.4.0

 

The Development Requires

by Maciej Gajewski
by Shane Preece

03/02 2018

dev-prevent-stack-overflow

dev-prevent-stack-overflow https://github.com/altmetric/php-identifiers

Collection of utilities related to the extraction, validation and normalization of various scholarly identifiers.

  Sources   Download

MIT

The Requires

  • php >= 5.4.0

 

The Development Requires

by Maciej Gajewski
by Shane Preece

22/11 2017

v0.8.0

0.8.0.0 https://github.com/altmetric/php-identifiers

Collection of utilities related to the extraction, validation and normalization of various scholarly identifiers.

  Sources   Download

MIT

The Requires

  • php >= 5.4.0

 

The Development Requires

by Maciej Gajewski
by Shane Preece

01/08 2017

v0.7.0

0.7.0.0 https://github.com/altmetric/php-identifiers

Collection of utilities related to the extraction, validation and normalization of various scholarly identifiers.

  Sources   Download

MIT

The Requires

  • php >= 5.4.0

 

The Development Requires

by Maciej Gajewski
by Shane Preece

31/07 2017

v0.6.0

0.6.0.0 https://github.com/altmetric/php-identifiers

Collection of utilities related to the extraction, validation and normalization of various scholarly identifiers.

  Sources   Download

MIT

The Requires

  • php >= 5.4.0

 

The Development Requires

by Maciej Gajewski
by Shane Preece

11/04 2017

v0.5.1

0.5.1.0 https://github.com/altmetric/php-identifiers

Collection of utilities related to the extraction, validation and normalization of various scholarly identifiers.

  Sources   Download

MIT

The Requires

  • php >= 5.4.0

 

The Development Requires

by Maciej Gajewski
by Shane Preece

10/04 2017

v0.5.0

0.5.0.0 https://github.com/altmetric/php-identifiers

Collection of utilities related to the extraction, validation and normalization of various scholarly identifiers.

  Sources   Download

MIT

The Requires

  • php >= 5.4.0

 

The Development Requires

by Maciej Gajewski
by Shane Preece

27/01 2017

v0.4.0

0.4.0.0 https://github.com/altmetric/php-identifiers

Collection of utilities related to the extraction, validation and normalization of various scholarly identifiers.

  Sources   Download

MIT

The Requires

  • php >= 5.4.0

 

The Development Requires

by Maciej Gajewski
by Shane Preece

26/01 2017

v0.3.0

0.3.0.0 https://github.com/altmetric/php-identifiers

Collection of utilities related to the extraction, validation and normalization of various scholarly identifiers.

  Sources   Download

MIT

The Requires

  • php >= 5.4.0

 

The Development Requires

by Maciej Gajewski
by Shane Preece

23/01 2017

v0.2.0

0.2.0.0 https://github.com/altmetric/php-identifiers

Collection of utilities related to the extraction, validation and normalization of various scholarly identifiers.

  Sources   Download

MIT

The Requires

  • php >= 5.4.0

 

The Development Requires

by Maciej Gajewski
by Shane Preece

13/01 2017

v0.1.1

0.1.1.0 https://github.com/altmetric/php-identifiers

Collection of utilities related to the extraction, validation and normalization of various scholarly identifiers.

  Sources   Download

MIT

The Requires

  • php >= 5.4.0

 

The Development Requires

by Maciej Gajewski
by Shane Preece

19/12 2016

v0.1.0

0.1.0.0 https://github.com/altmetric/php-identifiers

Collection of utilities related to the extraction, validation and normalization of various scholarly identifiers.

  Sources   Download

MIT

The Requires

  • php >= 5.4.0

 

The Development Requires

by Maciej Gajewski