Download the PHP package krugozor/cover without Composer

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

Other languages:


State

Test Status

PHP Version Status
8.0 PHP 8.0
8.1 PHP 8.1
8.2 PHP 8.2
8.3 PHP 8.3
8.4 PHP 8.4
8.5 PHP 8.5

Code Coverage

codecov

Requirements

PHP >= 8.0

Installation

CoverArray: Object-Oriented Array Wrapper for PHP (PHP Collection)

Created by human, verified and tested by artificial intelligence. Release 2026

Why CoverArray Was Created

In modern PHP development, we often work with arrays as the primary data structure. However, PHP's native array functions have several limitations that CoverArray solves.

The Problem with Native PHP Arrays

What CoverArray Solves

CoverArray provides a clean, object-oriented interface that wraps PHP arrays while maintaining full compatibility with native functions:

Before (Native PHP):

After (CoverArray):

Key Benefits

Real-World Use Cases

Example 1: Configuration Management with Dot Notation

Example 2: API Response Processing Pipeline

Example 3: Log Analysis and Error Reporting

CoverArray bridges the gap between PHP's powerful array functions and modern object-oriented practices, making array manipulation more expressive, maintainable, and enjoyable.

Comparison Table: CoverArray Methods vs PHP Array Functions

#PHP FunctionCoverArray MethodStatusNotes
1array_allall()✅Implemented with polyfill for older PHP versions
2array_anyany()✅Implemented with polyfill for older PHP versions
3array_change_key_casechangeKeyCase()✅Full implementation
4array_chunkchunk()✅Full implementation
5array_columncolumn()✅Full implementation
6array_combinecombine()✅Full implementation (static method)
7array_count_valuescountValues()✅Full implementation
8array_diffdiff()✅Full implementation
9array_diff_assocdiffAssoc()✅Full implementation
10array_diff_keydiffKey()✅Full implementation
11array_diff_uassocdiffUassoc()✅Full implementation
12array_diff_ukeydiffUkey()✅Full implementation
13array_fillfill()✅Full implementation (static method)
14array_fill_keysfillKeys()✅Full implementation (static method)
15array_filterfilter()✅Full implementation
16array_findfind()✅Implemented with polyfill for older PHP versions
17array_find_keyfindKey()✅Implemented with polyfill for older PHP versions
18array_firstfirst()✅Implemented with polyfill for older PHP versions
19array_flipflip()✅Full implementation
20array_intersectintersect()✅Full implementation
21array_intersect_associntersectAssoc()✅Full implementation
22array_intersect_keyintersectKey()✅Full implementation
23array_intersect_uassocintersectUassoc()✅Full implementation
24array_intersect_ukeyintersectUkey()✅Full implementation
25array_is_listisList()✅Implemented with polyfill for older PHP versions
26array_key_existskeyExists()✅Full implementation
27array_key_firstkeyFirst()✅Uses built-in function
28array_key_lastkeyLast()✅Uses built-in function
29array_keyskeys()✅Full implementation
30array_lastlast()✅Implemented with polyfill for older PHP versions
31array_mapmap()✅Full implementation
32array_mergemerge()✅Full implementation
33array_merge_recursivemergeRecursive()✅Full implementation
34array_multisortmultisort()✅Full implementation (mutating)
35array_padpad()✅Full implementation
36array_poppop()✅Full implementation (mutating)
37array_productproduct()✅Full implementation
38array_pushpush() / append()✅Full implementation (mutating)
39array_randrand()✅Full implementation
40array_reducereduce()✅Full implementation
41array_replacereplace()✅Full implementation
42array_replace_recursivereplaceRecursive()✅Full implementation
43array_reversereverse()✅Full implementation
44array_searchsearch()✅Full implementation
45array_shiftshift()✅Full implementation (mutating)
46array_sliceslice()✅Full implementation
47array_splicesplice()✅Full implementation (mutating)
48array_sumsum()✅Full implementation
49array_udiffudiff()✅Full implementation
50array_udiff_assocudiffAssoc()✅Full implementation
51array_udiff_uassocudiffUassoc()✅Full implementation
52array_uintersectuintersect()✅Full implementation
53array_uintersect_assocuintersectAssoc()✅Full implementation
54array_uintersect_uassocuintersectUassoc()✅Full implementation
55array_uniqueunique()✅Full implementation
56array_unshiftunshift() / prepend()✅Full implementation (mutating)
57array_valuesvalues()✅Full implementation
58array_walkwalk()✅Full implementation (mutating)
59array_walk_recursivewalkRecursive()✅Full implementation (mutating)
60arsortarsort()✅Full implementation (mutating)
61asortasort()✅Full implementation (mutating)
62compactcompact()⚠️Not implementable (PHP scope limitations). Use: CoverArray::fromArray(compact(...))
63countcount()✅Implementation of Countable interface
64currentcurrent()✅Full implementation
65endend()✅Full implementation (mutating)
66extractextract()✅Full implementation
67in_arrayin()✅Full implementation
68keykey()✅Full implementation
69key_existskeyExists()✅Full implementation (same as array_key_exists)
70krsortkrsort()✅Full implementation (mutating)
71ksortksort()✅Full implementation (mutating)
72listlist()⚠️Not implementable (language construct). Use: list($a, $b) = $cover->getDataAsArray()
73natcasesortnatcasesort()✅Full implementation (mutating)
74natsortnatsort()✅Full implementation (mutating)
75nextnext()✅Full implementation (mutating)
76pospos()✅Alias of current()
77prevprev()✅Full implementation (mutating)
78rangerange()✅Full implementation (static method)
79resetreset()✅Full implementation (mutating)
80rsortrsort()✅Full implementation (mutating)
81shuffleshuffle()✅Full implementation (mutating)
82sortsort()✅Full implementation (mutating)
83uasortuasort()✅Full implementation (mutating)
84uksortuksort()✅Full implementation (mutating)
85usortusort()✅Full implementation (mutating)

Additional CoverArray Methods

MethodPurposeAccess
__clone()Creates a shallow copy with deep cloning of immediate object propertiesMagic
__get()Gets a property value using object property syntaxMagic
__isset()Checks if a property is setMagic
__serialize()Serializes the object for serializationMagic
__set()Sets a property value using object property syntaxMagic
__toString()Returns a string representation of the objectMagic
__unserialize()Unserializes the object from serialized dataMagic
__unset()Unsets a propertyMagic
clear()Clears all dataPublic
copy()Creates and returns a copy of the current object instancePublic
each()Applies a callback to each element and returns a new instance with preserved keys (immutable, non-recursive)Public
eachRecursive()Recursively applies a callback to each element and returns a new instance (immutable, recursive)Public
fromArray()Creates a CoverArray from a native PHP arrayPublic Static
fromExplode()Creates a CoverArray from a string using explode()Public Static
fromJson()Creates a CoverArray instance from a JSON stringPublic Static
get()Returns data by keys of the current object using dot notationPublic
getData()Returns the internal data array as-is without any conversionPublic
getDataAsArray()Returns the current object's data as a native PHP arrayPublic
getIterator()Returns an iterator for the array (IteratorAggregate interface)Public
implode()Joins array elements with a stringPublic
isEmpty()Checks if the array is emptyPublic
item()Returns the collection element with the given index as the resultPublic
jsonSerialize()Specifies data which should be serialized to JSON (JsonSerializable interface)Public
offsetExists()Checks whether the specified offset exists in the array (ArrayAccess interface)Public
offsetGet()Returns the value at the specified offset (ArrayAccess interface)Public
offsetSet()Sets the value at the specified offset (ArrayAccess interface)Public
offsetUnset()Unsets the value at the specified offset (ArrayAccess interface)Public
setData()Sets the internal data for the CoverArrayPublic
toJson()Converts the CoverArray to a JSON stringPublic

All versions of cover with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
ext-ctype Version *
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 krugozor/cover contains the following files

Loading the files please wait ...