zendframework/zend-stdlib
Zend\Stdlib provides general-purpose utility components for PHP, including array helpers, messaging utilities, string wrappers, and more. Note: this repository was abandoned on 2019-12-31 and moved to laminas/laminas-stdlib.
This package provides foundational utilities — particularly array helpers, message components, and string wrappers — that were historically used across Zend Framework (now Laminas) projects. Despite being archived (2019) and replaced by laminas/laminas-stdlib, many legacy Laravel apps (or older PHP codebases) may still depend on it via transitive dependencies. Begin by identifying usage in composer.lock or code (use Zend\Stdlib\*). For new work, always use laminas/laminas-stdlib instead — the namespace and API are identical, only the package changed.
In Laravel, you rarely use zend-stdlib directly, but may leverage its components indirectly:
Zend\Stdlib\ArrayUtils (e.g., ArrayUtils::merge(), ArrayUtils::overwrite()) can appear in legacy service configuration or plugin code. Prefer Laravel’s Arr::* helpers instead.Zend\Stdlib\Message or Zend\Stdlib\Response may surface in old hybrid-Zend integrations (e.g., when routing or dispatching between Symfony/Laravel and legacyZF2 modules).Zend\Stdlib\StringStack is obsolete; use Laravel’s Str:: helpers or native PHP functions.Use laminas/laminas-stdlib in modern apps when migrating ZF2/3 code or consuming Laminas components. Laravel doesn’t rely on it natively, so integration typically occurs during migration or in customZF-to-Laravel bridges.
laminas/laminas-stdlib is a drop-in replacement in your lockfile.Zend\ and new Laminas\ namespaces — both may coexist if explicitly required, but this is error-prone. Prefer full migration to Laminas packages.zend-stdlib v3 requires PHP ≥5.5, but modern Laravel projects require 8.1+, so compatibility isn’t the issue — abandonment is.ArrayUtils::merge() used in config files, replace with Laravel’s config()->set() and array_merge() or Arr::multiply() where appropriate. For custom hydrator usage (removed in v3), switch to laminas/laminas-hydrator or PHP 8 attributes.OutputInterface (via Laravel’s Output component) or Artisan’s built-in output handling.How can I help you explore Laravel packages today?