maxwilms / data-structures
Collection of data structures for PHP
Installs: 27
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/maxwilms/data-structures
Requires (Dev)
- phpspec/phpspec: ^2.2
This package is not auto-updated.
Last update: 2025-10-11 23:11:49 UTC
README
Collection of Data Structures for various purposes.
Installation
First install composer.
Require the data structure collection via composer:
composer require maxwilms/data-structures
Now you are ready to use it!
BitArray
Data Structure to compactly store bits.
<?php
use maxwilms\DataSructures\BitArray;
$bitArray = new BitArray(1000); // should store 1000 bits.
$bitArray->set(3); // set a single bit
$bitArray->has(3); // true
$bitArray->has(17); // false