dhii / collections-interface
A highly ISP-compliant collection of interfaces that represent maps and lists.
v0.5.0-beta1
2026-03-23 18:43 UTC
Requires
- php: ^8.1
- psr/container: ^1.0 | ^2.0
Requires (Dev)
- phpunit/phpunit: ^10.0
- slevomat/coding-standard: ^8.0
- vimeo/psalm: ^6.0
- 0.5.x-dev
- v0.5.0-beta1
- 0.4.x-dev
- v0.4.0-alpha2
- v0.4.0-alpha1
- 0.3.x-dev
- v0.3.0
- v0.3.0-alpha4
- v0.3.0-alpha3
- v0.3.0-alpha2
- v0.3.0-alpha1
- v0.2
- v0.2-alpha5
- v0.2-alpha4
- v0.2-alpha3
- v0.2-alpha2
- v0.2-alpha1
- v0.1.2
- v0.1.1
- v0.1.0
- dev-task/add-container-generics
- dev-task/container-interface-arg-compat
- dev-release/0.5.0-beta1
- dev-upgrade
- dev-master
- dev-fix/container-interface-bc-break
This package is auto-updated.
Last update: 2026-03-24 00:16:05 UTC
README
A highly ISP-compliant collection of interfaces that represent collections.
Interfaces
CountableListInterface: A list that can be iterated and counted.HasItemCapableInterface: Something that can be checked for the existence of an item.SetInterface: A list that can be checked for a value.CountableSetInterface: A set that can be counted.MapInterface: An iterable container.CountableMapInterface: A countable map.ContainerFactoryInterface: A factory ofContainerInterfaceobjects.MapFactoryInterface: A factory ofMapInterfaceobjects.HasCapableInterface: Something that can check for a given key.ContainerInterface: A container implementingHasCapableInterface.WritableContainerInterface: A container that can have mappings added and removed.WritableMapInterface: A map that can have mappings added and removed.WritableSetInterface: A set that can have items added and removed.ClearableContainerInterface: A container that can have its members cleared.