NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #2762 most downloaded on Packagist
Foundation library for Contentful PHP SDKs
Latest stable
4.0.2
Last release 3 years ago
no release in 18 months
Release timing varies
gaps range from 1 weeks to 1.2 years
Nearly every release is documented
notes for 32 of 32 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
37 releases · first in 2018
Drag across the ruler to compare, or tap a release to open it.
Updated for PSR/message v2, allowing the installation of Laravel 11
* Updated for PHP8 * Updated for Symfony 7
The API will no longer switch to the jpg format if a quality is given, consistent with the docs
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Support for guzzlehttp/psr7 v2 (thanks @pklink !)
Compatibility with psr/log 2 and 3 - thanks @kwivix !
Added generics annotation to ResourceArray class - thanks @emodric !
Reworked CI scripts a bit to get them working with PHP8
The code was verified against the official breaking changes guide [0]. Note that code coverage is not yet supported by phpunit on php8. As it should b…
This commit adds PHP8 support to the contentful core. It does the
following:
The code was verified against the official breaking changes guide [0].
Note that code coverage is not yet supported by phpunit on php8. As it
should be pretty much the same as on older PHP versions, however, this
is accepted for now.
Added clearMesssages method to allow manually clearing the messages
> Fixed a few static code analysis issues
Package updates Fixed a few static code analysis issues
### Added Package updates
Package updates
> Added new exception type to better cover guzzle errors
Added new exception type to better cover guzzle errors
Replace Travis build badge with CircleCI
> Added support for PHP 7.4. Removed support for PHP 7.0 & 7.1. Updated dependencies.
Added support for PHP 7.4. Removed support for PHP 7.0 & 7.1. Updated dependencies.
> Updated unit tests for the new center option. Coding standards.
Updated unit tests for the new center option. Coding standards.
> Added the missing 'center' option. Consider resizeFit options 'pad', 'fill' and 'crop' per the documentation.
Added the missing 'center' option. Consider resizeFit options 'pad', 'fill' and 'crop' per the documentation.
> No meaningful changes since last release, just linter changes
No meaningful changes since last release, just linter changes
Minor changes in how tests are handled. These should not have any impact on users.
Optimized cache key sanitization to avoid using preg_replace_callback.
preg_replace_callback.Fixed a bug with the detection of versions for integrations and applications.
The message log levels are no longer hardcoded but instead use the Psr\Log\LogLevel constants, so there should be better compatibility with stricter P
Psr\Log\LogLevel constants, so there should be better compatibility with stricter PSR-3 implementations.Fixed hardcoded Github URL in the release script.
Interface ApplicationInterface and IntegrationInterface have been added, as well as ClientInterface::useApplication(ApplicationInterface $application)
ApplicationInterface and IntegrationInterface have been added, as well as ClientInterface::useApplication(ApplicationInterface $application) and ClientInterface::useIntegration(IntegrationInterface $integration). The BaseClient class already provides an implementation of these methods.Method LinkResolverInterface::resolveLinkCollection()'s second parameter was fixed, as it was incorrectly set to string $locale = null instead of arra
LinkResolverInterface::resolveLinkCollection()'s second parameter was fixed, as it was incorrectly set to string $locale = null instead of array $parameters = [].Interface LinkResolverInterface now declares method resolveLinkCollection.
LinkResolverInterface now declares method resolveLinkCollection.ATTENTION: This release contains breaking changes. Please take extra care when updating to this version. See the upgrade guide for more.
ATTENTION: This release contains breaking changes. Please take extra care when updating to this version. See the upgrade guide for more.
Contentful\Core\File\ImageOptions now has a setPng8Bit method which will force the image to be returned as a 8-bit PNG.Contentful\Core\File\ProcessedFileInterface has been introduced, and can be used to identify assets that have already been processed and have a url property available.AssetInterface, ContentTypeInterface, EntryInterface, ClientInterface, ResourcePoolInterface.Contentful\Core\Api\BaseClient no longer has abstract method getSdkVersion, now instead it requires getPackageName. The version of the SDK will be inferred automatically using that value.Contentful\Core\Api\BaseClient::request now uses property host instead of baseUri.request method defined in ClientInterface.ResourceArray now implements ResourceInterface.Requester class.getVersion, getPackageName, getSdkName, and getApiContentType are now static. [BREAKING]The following interfaces have been added: AssetInterface, ContentTypeInterface, EntryInterface, ClientInterface, ResourcePoolInterface.
AssetInterface, ContentTypeInterface, EntryInterface, ClientInterface, ResourcePoolInterface.request method defined in ClientInterface.ResourceArray now implements ResourceInterface.Requester class.getVersion, getPackageName, getSdkName, and getApiContentType are now static. [BREAKING]Class Contentful\Core\File\ImageOptions now has a setPng8Bit method which will force the image to be returned as a 8-bit PNG.
Contentful\Core\File\ImageOptions now has a setPng8Bit method which will force the image to be returned as a 8-bit PNG.Contentful\Core\File\ProcessedFileInterface has been introduced, and can be used to identify assets that have already been processed and have a url property available.Contentful\Core\Api\BaseClient no longer has abstract method getSdkVersion, now instead it requires getPackageName. The version of the SDK will be inferred automatically using that value.Contentful\Core\Api\BaseClient::request now uses property host instead of baseUri.Class ObjectHydrator has been introduced, to abstract resource hydration.
ObjectHydrator has been introduced, to abstract resource hydration.Coding standards are implemented in a generic way so that it can be reused in all SDKs.
LinkResolverInterface was added to abstract link resolving.
LinkResolverInterface was added to abstract link resolving.The client used to create a log entry with a full message by default. Now it will create one regular entry with either level "INFO" or "ERROR" dependi
The Contentful\Core\Log\Timer has been deprecated and will be removed in version 2.
Contentful\Core\Api\Location used to provide a wrongful serialization of the longitude property. Now it correctly serializes to lon instead of long.Contentful\Core\Log\Timer has been deprecated and will be removed in version 2.Contentful\Core\Api\Location used to provide a wrongful serialization of the longitude property. Now it correctly serializes to lon instead of long.Contentful\Core\Log\Timer has been deprecated and will be removed in version 2.### Added * Initial release.
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.