Login  |  Packages  |  Support  |  Bugs
Top Level :: Structures :: ds :: 2.0.0

ds 2.0.0

Package Information
Summary Data Structures
Maintainers Joe Watkins (lead) [details]
Rudi Theunissen < rtheunissen at php dot net > (lead) [details]
License MIT License
Description Data Structures for PHP
Homepage https://github.com/php-ds/ext-ds
Release notes
Version 2.0.0
(stable)
- Major release: redesign from 11 types + 3 interfaces to 5 types + 1 interface
- New types: Ds\Seq, Ds\Map, Ds\Set, Ds\Heap, Ds\Pair (readonly)
- New interface: Ds\Key (replaces Ds\Hashable)
- Copy-on-Write: clone and copy() are O(1), mutation during iteration is safe
- Removed: Vector, Deque, Stack, Queue, PriorityQueue, Collection, Sequence, Hashable
- Ds\Heap accepts optional callable comparator in constructor
- Ds\Pair is a readonly class with public key and value properties
- Require PHP >= 8.2

[ Latest Tarball ] [ Changelog ] [ View Statistics ]
[ Browse Source ] [ Package Bugs ] [ View Documentation ]

Dependencies for release 2.0.0
PHP Version: PHP 8.2.0 or newer
PEAR Package: PEAR 1.4.0b1 or newer
PRIVACY POLICY  |  CREDITS
Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Sep 03 10:50:24 2025 UTC
Bandwidth and hardware provided by: pair Networks