Download the PHP package php-kit/flow without Composer

On this page you can find all versions of the php package php-kit/flow. 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 flow

Flow

Iterator Nirvana for PHP

Runtime requirements

Introduction

Flow provides a fluent interface to assemble chains of iterators and other data processing operations.

The fluent API makes it very easy and intuitive to use the native SPL iterators (together with some custom ones provided by this library) and the expressive syntax allows you to assemble sophisticated processing pipelines in an elegant, terse and readable fashion.

An iteration chain assembled with this builder can perform multiple transformations over a data flow without storing in memory the resulting data from intermediate steps. When operating over large data sets, this mechanism can be very light on memory consumption.

Inputs to the chain can be any kind of iterables. Iterables are things that can be converted to iterators. They can be native arrays, Traversables (classes implementing the native Iterator or IteratorAggregate intefaces), invoked generator functions (on PHP>=5.5) or even callables (ex. Closures).

Flow allows you to write generator functions using common functions on PHP<5.5, using the FunctionIterator class.

The Flow Builder

TODO: provide examples here.

Iterators

Flow also provides a library of useful iterators that complements and extends the basic set provided by the Standard PHP Library (SPL).

These are the iterators:

CachedIterator

Memoizes another iterator's values so that subsequent iterations will not need to iterate it again.

ConditionalIterator

Iterates another iterator until the iteration finishes or the given callback returns false (whichever occurs first).

FlipIterator

Iterates a given iterator swapping keys for values and/or vice-versa.

FunctionIterator

Iterates over values generated by repeatedly invoking a function or class method.

LoopIterator

Allows the looping of another iterator, with some constraints.

UnfoldIterator

Replaces and expands each iterated value of another iterator.

MapIterator

Transforms data from another iterator using a callback function.

RangeIterator

Iterates over a generated sequence of numbers.

RecursiveIterator

A generic recursive iterator that defines the recursion via a user-defined callback function.

ReduceIterator

Applies a function against an accumulator and each value from a given iterator to reduce the iterated data to a single value.

ReindexIterator

Iterates another iterator replacing keys by a generated sequence of numbers.

SingleValueIterator

Provides one single iteration of a constant value.

Notes

Some operations require the iteration data to be "materialized", i.e. fully iterated and stored internally as an array, before the operation is applied. This only happens for operations that require all data to be present (ex: reverse() or sort()), and the resulting data will be automatically converted back to an iterator whenever it makes sense.

License

This library is open-source software licensed under the MIT license.

Flow - Copyright © 2015 Impactwave, Lda.


All versions of flow with dependencies

PHP Build Version
Package Version
No informations.
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 php-kit/flow contains the following files

Loading the files please wait ....