Download the PHP package reichwebconsulting/array-filters without Composer

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

Build Status

reichwebconsulting/array-filters

reichwebconsulting/array-filters is a PHP 7.1+ library for array filtering.

This project began as part of a hydration/extraction library, but I realized the components had broad use across numeric projects I work on. The library contains an interface called FilterInterface that describes an interface for passing arrays and returning modified versions of those arrays.

The ExcludeFieldsFilter provides the ability to remove key/value pairs from the input array by specifying keys to exclude. This filter is useful when you have an array of data to return but need to filter out sensitive fields based on the context. For example, ExcludeFieldsFilter could be used to filter out the "password" and "email" fields from user records before returning them in a result set.

The KeyMutatorFilter provides the ability to modify array keys based on any logic you code into a callable function you assign to the filter. The output array will contain all of the same values as the input array, but assigned to keys generates using the configured callback function. The KeyMutatorFilter is useful when you have an array of data whose keys need to be in a slightly different format before they are useful for the next phase of code. A good example is when PostgreSQL result sets, whose properties are all lowercase--a convention that is rarely followed within PHP.

The KeyPrefixFilter provides the ability to add prefixes to all of the array keys. A great use case for KeyPrefixFilter is when you have a result set you would like to map onto a PDOStatement parameter list. PDO parameters begin with a colon, so just use KeyPrefixFilter to add a colon to your keys before using the array as your PDO statement parameters.

Getting Started

To start using reichwebconsulting/array-filters install Composer and then run the following command:

Prerequisites

PHP 7.1+ and Composer required. PHPUnit is required to run the test suite.

Installing

Running the tests

This library strives for 100% code coverage. Tests can be run by switching to the phpunit directory and running phpunit.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details


All versions of array-filters with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.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 reichwebconsulting/array-filters contains the following files

Loading the files please wait ....