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
PHP-FIG's PSR standards define interoperability contracts for logging (psr/log), HTTP messages (psr/http-message), and more. A shared foundation library like this one is consumed by multiple SDKs and ultimately by end-user applications that already have their own logger (Monolog, Laravel's logger, Symfony's logger, etc.) and potentially their own HTTP infrastructure.
If the library depended on a concrete logger or a fixed PSR version, it would force version conflicts on consumers.
Psr\Log\LoggerInterface with a default of NullLogger (no-op). Consumers inject any PSR-3 compatible implementation.Psr\Http\Message\RequestInterface / ResponseInterface — PSR-7 contracts.psr/log is declared with a broad constraint: ^1.1|^2.0|^3.0.psr/http-message is declared as ^1.0|^2.0.This prevents the library from forcing a specific PSR version on downstream consumers and allows coexistence with Laravel 11+, Symfony 6/7, and other modern PHP stacks.
monolog/monolog is a require-dev dependency only — used in tests to verify log output, never in library source.How can I help you explore Laravel packages today?