contentful/core
Core components shared by Contentful’s PHP Delivery and Management SDKs. Provides foundational utilities and abstractions for interacting with Contentful APIs. Requires PHP 8.0+. Intended for internal SDK use, not for direct third‑party consumption.
Fixed a few static code analysis issues
Added new exception type to better cover guzzle errors
Added support for PHP 7.4. Removed support for PHP 7.0 & 7.1. Updated dependencies.
Added the missing 'center' option. Consider resizeFit options 'pad', 'fill' and 'crop' per the documentation.
No meaningful changes since last release.
preg_replace_callback.Psr\Log\LogLevel constants, so there should be better compatibility with stricter PSR-3 implementations.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.LinkResolverInterface::resolveLinkCollection()'s second parameter was fixed, as it was incorrectly set to string $locale = null instead of array $parameters = [].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.
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]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.ObjectHydrator has been introduced, to abstract resource hydration.LinkResolverInterface was added to abstract link resolving.Package updates
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.How can I help you explore Laravel packages today?