Skip to content

Version 3.0

Compare
Choose a tag to compare
@caseyamcl caseyamcl released this 15 Oct 18:11
· 38 commits to master since this release

See the UPGRADE GUIDE for notes.

Changed

  • Upgraded from PSR-0 to PSR-4
  • Require PHP5.5 or newer (hint: upgrade to PHP7, since PHP5 support is being deprecated)
  • Change all DateTime references and type-hints to DateTimeInterface
  • Removed automatic 'short name' class detection in OaiPmhException
  • Removed bootstrap.php from tests directory, in favor of simply using composer autoloader
  • Renamed httpClient variables and proprties to httpAdapter for consistency in naming
  • Improved README and documentation

Added

  • Added composer test command
  • Automatic code coverage reports into build directory when
  • Object graph methods: ClientInterface::getHttpAdapter() and RecordIterator::getClient()
  • Added PHP CodeSniffer to auto-correct PSR-2 issues
  • Additional tests (testGetRecordWithNamespaces)

Removed

  • Removed Endpoint::setUrl() and Client::setUrl() methods. URL in client should be immutable. If you need to
    change the Endpoint URL, best practice is to create a new Client and Endpoint instance.
  • Removed EndpointCurlTest that performed HTTP calls against an actual OAI-PMH endpoint (slow and not useful)
  • Removed RecordIterator::getTotalRecordsInCollection() in favor of RecordIterator::getTotalRecordCount()