Download the PHP package shadiakiki1986/array-utils without Composer

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

ArrayUtils

ArrayUtils is a collection of useful PHP array functions.

Build Status Packagist

This is a fork of theodorejb/array-utils: Packagist Version License Build Status

Major changes are that I require php>=7 for the sake of the parameter types in CellCounterManager functions

Install via Composer

composer require shadiakiki1986/array-utils

and add bootstrap

require_once __DIR__."/vendor/autoload.php";

Functions

contains_all

Returns true if all the needles are in the haystack.

contains_same

Returns true if both arrays contain the same values (regardless of order).

group_rows

Splits the array of associative arrays into groups when the specified key value changes. The array must be sorted by the array key used to group results.

array3d2xlsx

Dumps array of arrays as xlsx file, with each subarray as a sheet

Requires apt-get install php-zip and composer require PHPOffice/PHPExcel

For excel dates in the cells, use the \DateTime class for the php values, e.g.

Note the ! preceding Y-m-d above resets the hours/minutes/seconds to 0 so that they don't show up in the excel data autofilter. Check the docs for DateTime::createFromFormat for more details.

Memory issues:

array2console

Dumps a 3d array to a string in tabular format for viewing in the console

array2html

Dumps a 3d array to a html string in tabular format for viewing in a browser

Author

Theodore Brown
http://theodorejb.me

Shadi Akiki

License

MIT

Dev notes

If phpcs reports errors that can be fixed automatically, run vendor/bin/phpcbf src/ and then commit the changes


All versions of array-utils with dependencies

PHP Build Version
Package Version
Requires php Version >=7
jakub-onderka/php-parallel-lint Version ^0.9.2
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 shadiakiki1986/array-utils contains the following files

Loading the files please wait ....