Version 3.0
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 toDateTimeInterface
- 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 tohttpAdapter
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()
andRecordIterator::getClient()
- Added PHP CodeSniffer to auto-correct PSR-2 issues
- Additional tests (
testGetRecordWithNamespaces
)
Removed
- Removed
Endpoint::setUrl()
andClient::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 ofRecordIterator::getTotalRecordCount()