Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

[Suggestion] Code split for Array Utility #69

Open
@gabbydgab

Description

@gabbydgab

Looking at some dependency graph for zend components, one way of requiring zend-stdlib is to use the array functions.

Some of these libraries are:

  1. Zend\Config
  2. Zend\Router
  3. Zend\View
  4. Zend\ConfigAggregator - (copy-pasted code because it ONLY needs the array utility)

Separating this may have a relevant value to packages that utilizes array functions such as the framework itself since the default configuration is in array.

Ported repository: https://github.com/php-refactoring/zend-array-utility

Pros:

  • Be able to upgrade the array utility classes, such as array sort, merge, find, etc.
  • Will be able to stress test and benchmark all scenarios.
  • We can have separate documentation on how to use this library.
  • Zend Components and other packages that requires zend-stblib but not using the Array* classes will not be (that much) affected.

Cons:

  • Zend components and other packages that requires zend-stblib and uses the Array* classes will be affected. Thus, it will require zendframework/zend-array-utility as dependecy for zend-stdlib to be BC compatible.

To do:

  • Include the array utility package as zendframework/zend-array-utility as dependecy for zend-stdlib
  • Integration testing for components requiring zend-stdlib and uses the Array* classes
  • Dedicated documentation for array utilities

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions