Download the PHP package jeroen/batching-iterator without Composer

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

BatchingIterator

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version Download count

Small library providing an Iterator that batches requests for additional values. This is useful as a foundation for iterators over data that is in an expensive to access location, such as a database or a web API.

Class overview

Core interface:

Utilities:

Usage

Create a service that uses an Iterator.

Note how this service only depends on Iterator. It is not aware of how the Iterator provides its results. You thus decoupled the service from who retrieves the results, and from when this happens. They could be coming from values already in memory, wrapped in an ArrayIterator, or be pulled from a web service as iteration happens. Using an ArrayIterator is very helpful for testing.

Implement the BatchingFetcher interface. If you already have a service to retrieve the data, this can be a simple wrapper.

Now you can easily instantiate the service, have the batching optimization, and have all responsibilities nicely decoupled.

Installation

You can use Composer to download and install this package as well as its dependencies.

To add this package as a local, per-project dependency to your project, simply add a dependency on jeroen/batching-iterator to your project's composer.json file. Here is a minimal example of a composer.json file that just defines a dependency on BatchingIterator 3.x:

Release notes

Version 3.0.0 (2017-05-16)

Version 2.1.2 (2014-11-02)

Version 2.1.1 (2014-08-19)

Version 2.1 (2014-07-19)

Version 2.0 (2014-07-19)

Breaking changes:

New features and enhancements:

Version 1.0 (2014-07-03)

Initial release with


All versions of batching-iterator with dependencies

PHP Build Version
Package Version
Requires php Version >=7.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 jeroen/batching-iterator contains the following files

Loading the files please wait ....