Download the PHP package mediact/data-container without Composer

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

Abandoned

This package is abandoned. To select data based on a pattern we recommend using JMESPath. To find paths that match a pattern (glob) and to update those paths (set) we don't have a clear alternative.

Scrutinizer Code Quality

Data Container

This package provides a data container. A data container can contain any data. The data can be accessed using dot-notation.

Installation

Usage

Creating a container

A container can be created directly or using a factory.

Checking whether a value has been set with has()

Getting a value with get()

Setting a value with set()

Removing a value with remove()

The remove method also supports wildcards, for example remove('bar.*');

Getting paths that match a pattern with glob()

The glob method returns a list of paths that match the given pattern.

Getting paths and their replacements with expand()

The expand method returns a list of paths that match the given pattern and also returns their replacements. The replacement can contain variables in a similar way as preg_replace.

Getting branches that match a pattern with branch()

The branch method returns the paths that are matched by a pattern as a list of data containers.

Getting a node from the container with node()

The node method returns a single container with the data from a path.

Copying data with copy()

The copy method supports wildcards. The replacement can contain variables like used in expand().

Moving data with move()

The move method supports wildcards. The replacement can contain variables like used in expand().

Creating a decorator

Decorators of a data container can be created using DataContainerDecoratorTrait.

Both implementations contain all methods of DataContainerInterface.

Creating a traversable decorator

A decorator that is also traversable can be created with DataContainerIteratorAggregateTrait.

Filtering a container

To filter a container, an implementation of DataContainerFilterInterface is required.

A default implementation, used for chaining, is available.


All versions of data-container 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 mediact/data-container contains the following files

Loading the files please wait ....