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.
Accepted
Prior to v4.0.0, contentful-core.php supported PHP 7.x. PHP 7 reached end-of-life in November 2022, leaving it without security patches. PHP 8.0 introduced union types, named arguments, match expressions, nullsafe operator, and stronger type system guarantees — all of which improve the correctness and expressiveness of SDK contracts. Carrying PHP 7 compatibility required avoiding or shim-wrapping features that could reduce maintenance burden and developer experience.
Additionally, dropping PHP 7 allows phpstan/phpstan to flag previously-undetectable issues and removes conditional code paths in the library.
With the v4.0.0 release (2022-12-05), the composer.json require.php constraint was updated from ^7.3|^8.0 to ^8.0. PHP 7 is no longer supported or tested. The CI matrix covers PHP 8.0 through 8.4.
How can I help you explore Laravel packages today?