Download the PHP package gielfeldt/iterators without Composer

On this page you can find all versions of the php package gielfeldt/iterators. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package iterators

Iterators

Build Status Test Coverage Code Climate Scrutinizer Code Quality

Latest Stable Version Latest Unstable Version Dependency Status License Total Downloads

Documentation Status Documentation Status

Installation

Iterators

This library contains a bunch of various iterators that I made primarily for getting more acquainted with iterators in PHP. Some may be useful. Some may be silly.

Enjoy!

CachingIterator

ChecksumIterator

ChunkIterator

CloningIterator

CombineIterator

CountableIterator

DiffIterator

FiniteIterator

FlipIterator

GlobIterator

IndexIterator

InfiniteIterator

InterleaveIterator

IntersectIterator

TraversableIterator

KeysIterator

MapIterator

RandomIterator

RepeatIterator

ReplaceableIterator

ReservoirSamplingIterator

ShuffleIterator

SortIterator

StepIterator

UniqueIterator

ValuesIterator

CachingIterator

Cache an iterator for multiple iterations.

Output:

ChecksumIterator

Generate a checksum for an iterator, either per iteration or the entire dataset.

Output:

ChunkIterator

Split an iterator into chunks of iterators.

CloningIterator

Clone each value in iteration.

Output:

CombineIterator

Similar to array_combine(). However, iterators can have non-unique keys. Be aware of this when using iterator_to_array();

Output:

CountableIterator

Takes any iterator and makes it countable, simply by iterating through it and counting.

Output:

DiffIterator

Compares two iterators. Similar to array_diff(). Possible to set a custom compare function.

Output:

FiniteIterator

Provide an end condition through an anonymous function for an iterator.

Output:

FlipIterator

Similar to array_flip(). However, iterators can have non-unique keys. Be aware of this when using iterator_to_array();

Output:

GlobIterator

Similar to \GlobIterator, but supports **

Output:

IndexIterator

Iterate only through certain rows of an iterator.

Output:

InfiniteIterator

Like SPL's InfiniteIterator but provides an additional method, getCurrentIteration().

Output:

InterleaveIterator

Interleave multiple iterators.

Output:

IntersectIterator

Similar to array_intersect(). Possible to set a custom compare function.

Output:

TraversableIterator

Like SPL's IteratorIterator, but with a more meaningful name :-) and provides a getIndex() method.

Output:

KeysIterator

Similar to array_keys().

Output:

MapIterator

Similar to array_map().

Output:

RandomIterator

Selects a set of random elements from a traversable. Does not work with iterators that can only be traversed once. For that, see the ReservoirSamplingIterator.

Output:

RepeatIterator

Repeat and iterator n times.

Output:

ReplaceableIterator

Just like TraversableIterator but with a setInnerIterator() method.

Output:

ReservoirSamplingIterator

Like RandomIterator but works more effeciently on iterators of unknown size or which can be traversed only once.

Output:

ShuffleIterator

Iterate randomly over a traversable.

Output:

SortIterator

Output:

StepIterator

Iterate over a traversable in steps.

Output:

UniqueIterator

Similar to array_unique(). Also supports a custom callback function.

Output:

ValuesIterator

Similar to array_vales().

Output:

Not iterators as such ...

These are more an extension of the SPL file handling.

CsvFileObject

AtomicTempFileObject

AtomicTempFileObjects

CsvFileObject

An extension of SplFileObject in csv mode, but with csv header support.

Output:

AtomicTempFileObject

AtomicTempFileObjects

Helpers

Contains various helper methods.

Iterator

Output:

Caveats

  1. Lots probably.

All versions of iterators with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package gielfeldt/iterators contains the following files

Loading the files please wait ....