Download the PHP package daggerhartlab/collections without Composer

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

Collections

Simple set of collection classes.

Type Description
Collection A collection is one dimensional list of items that is unconcerned about the name of the individual items.
TypedCollection A collection that only allows one data type into the list.
Registry A registry is a collection of items where each item in the registry has a unique name.
TypedRegistry A registry that only allows one data type into the collection.
ClassRegistry A registry that expects the item values to be fully namespaced class names. It can reflect and instantiate the registered classes.
TraversableRegistry A multidimensional registry where deeply nested values can be accessed using dot notation.

Collection Examples

All collections share the same methods.

Method Description
all() Get the entire collection as an array.
add(item) Add an item to the collection.
first() Get the first item in the collection.
last() Get the last item in the collection.
map(callable) Perform a callback on each item in the collection.
filter(callable) Create a new collection that has filtered out some items.

Basic Collection

A collection is one dimensional list of items that is unconcerned about the name of the individual items.

TypedCollection

A collection that only allows one data type into the list.

Registry Examples

All registries contain the same functionality as Collections, and additional methods for dealing with items by their keys.

Method Description
has(key) Whether the registry contains an item with the given key.
get(key) Get an item from the registry by its key.
set(key, item) Set an item in the registry with a unique name as the key.
remove(key) Remove an item from the registry by its key.

Basic Registry

A registry is a collection of items where each item in the registry has a unique name.

TypedRegistry

A registry that only allows one data type into the collection.

ClassRegistry

A registry that expects the item values to be fully namespaced class names. It can reflect and instantiate the registered classes.

TraversableRegistry

A multidimensional registry where deeply nested values can be accessed using dot notation.

Get and set values in a multidimensional registry using dot notation.


All versions of collections with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
dflydev/dot-access-data Version >=1
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 daggerhartlab/collections contains the following files

Loading the files please wait ....