hsbmaulana/phpcollection

Data Structure and Algorithm

2.2.1 2022-11-10 10:45 UTC

This package is auto-updated.

Last update: 2025-08-10 16:52:33 UTC


README

PHPCollection provides convenient helper for working with data structures and algorithms.

Getting Started

Installation :

$ composer require hsbmaulana/phpcollection

How to use :

require_once __DIR__ . '/vendor/autoload.php';

use Lists\{ArrayList, LinkedList};

$list = new ArrayList();

$list->add("A");
$list->add("B");
$list->add("C");
$list->add("D");
$list->add("E");

assert($collection->count() === 5);

Replit

Author