PHP Package: nikic/iter

Iter is a powerful PHP library for efficient iteration and functional programming in PHP, offering a wide range of functions for manipulating arrays, iterators, and more.

Current Version: 2.4.1
Last Updated: 2024-06-11
PHP Requirement: >=7.1
Dependencies: None

Package Description

Iter is a PHP library created by nikic to enhance iteration and functional programming capabilities in PHP. With over a hundred functions, it provides a robust set of tools for working with arrays, iterators, and other data structures. Whether you need to filter, map, or reduce data, Iter simplifies the process, making your code more concise and readable.

🔗 View on GitHub

Download Latest Version: 2.4.1

Download Download v2.4.1

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/nikic/iter/2.4.1/loader.php';
require_once 'libs/php/{lib_version}/loader.php';

use Iter\Iterator\FilterIterator;
use Iter\Iterator\MapIterator;

$obj = new FilterIterator();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.