Download the PHP package b2pweb/bdf-collections without Composer

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

Collections

Implementation of commons collections, with java-like stream to apply transformations.

build codecov Packagist Version Total Downloads Type Coverage

Installation with composer

Usage

Collections

All collections implements the Bdf\Collection\CollectionInterface interface.

A collection is a simple bag of elements, with a restricted set of methods :

The base behavior of collections is extended by other interfaces :

ArrayCollection

The Bdf\Collection\ArrayCollection is the base implementation of TableInterface using an inner PHP array. It has great performances but do not handle complex key types, or optimised search.

Use as collection :

Use as table :

OrderedCollection

Simple implementation of OrderedCollectionInterface. Do not sorts elements on modification, but only on access.

Usage :

HashSet

A SetInterface implementation using an hash function for check the uniqueness of elements. Note: Unlike common HashSet implementations, like in java, only the hash code is used on comparison, and the equal operator is never used.

HashTable

A more powerful and flexible implementation of TableInterface, using an hash function. This implementation is about 2 times slower than ArrayCollection. Unlike ArrayCollection, complex key types are supported (like objects).

Note: toArray() may failed if complex keys are used.

Usage :

Streams

Streams are used to transform collections elements. The streams implements Iterator, and can be used on a foreach. Each stream methods will return a new Stream instance :

Usage

MutableArrayStream

The stream MutableArrayStream is an implementation of StreamInterface for simple PHP array. Unlike other streams, all transformations are applied on the method call, and $this is returned instead of a new stream instance. Reduce the overhead of the streams, for get better performances, but some methods has different behavior.

Usage :

Optional

The Bdf\Collection\Util\Optional is used to replace null value and null object. It permit to creates a simple null object. Methods :

Usage :


All versions of bdf-collections with dependencies

PHP Build Version
Package Version
Requires php Version ~7.1 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.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 b2pweb/bdf-collections contains the following files

Loading the files please wait ....