Download the PHP package alison4kk/items without Composer

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

Items

Hybrid array/object manipulation library for PHP 7.4+ and PHP 8 with:

Installation

For local development:

Quick start

API Reference

Filter (search, find matching items)

Static immutable:

Static in-place:

Fluent in-place:

Returns array or instance with only items matching all conditions.

Sort (order items)

Static immutable:

Static in-place:

Fluent in-place:

Supports 'ASC' and 'DESC' directions. Works with dot notation paths.

Map (transform items)

Static immutable:

Static in-place:

Fluent in-place:

Mapper receives ($item, $key) and returns transformed value.

Unique (remove duplicates)

Static immutable:

Static in-place:

Fluent in-place:

Removes duplicate items based on field or callable key.

Index (create indexed map)

Static immutable:

Static in-place:

Fluent in-place:

Changes array keys to values from a field or callable.

Group (organize by field)

Static immutable:

Static in-place:

Fluent in-place:

Reorganizes array into groups keyed by field values.

Column (extract column)

Static:

Fluent:

Extract values from a field or callable into a new array.

Find (get first/last matching)

Returns first/last item optionally matching condition.

Check (test conditions)

Test if all/any items match, or if any item contains all search fields.

Count & Sum

Aggregate operations. Count optionally filters by condition.

Group Aggregates

Count/sum items grouped by field.

Transform Keys/Values

Create key-value maps or transform keys using callable.

Dot Notation (nested access)

Static:

Fluent:

Access nested arrays and objects using dot notation:

Conditions Format

Pass conditions as associative arrays (all must match):

Or as indexed arrays with operators:

Data Types

Works with arrays and objects (using stdClass or custom classes). All methods support:

Testing

All 46 tests validate filter, sort, map, unique, group, index, find, count, sum, average, min, max, grouping aggregates, key-value operations, and dot notation functionality.

PHP Version

Requires PHP 7.4+ with full PHP 8.x support.

License

MIT

This package is compatible with PHP 7.4+ and PHP 8.x, and uses PHPDoc generics (@template) instead of union/mixed type declarations.


All versions of items with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.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 alison4kk/items contains the following files

Loading the files please wait ...