Download the PHP package mitsuru793/array-helper-function without Composer

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

array-helper-function

This adds functions about array. If you feel like there few php built-in functions about array, this will be useful.

Installation

if you're using Composer to manage dependencies, you can include the following in your composer.json file:

Then, after running composer update or php composer.phar update, you can load the class using Composer's autoloading:

Functions

condtion

each

access

Function detail

is_empty_array($value): bool

Finds whether a variable is a empty array.

return true when value is

returns false when value is

is_full_array($value): bool

Finds whether a variable is a full array, so it's not empty array.

return true when value is

returns false when value is

is_numeric_array($value): bool

Finds whether all keys of variable are integer. This does not find deeply if element of $value is array.

return true when value is

returns false when value is

is_numeric_array_recursive($array): bool

Finds whether all keys of variable are integer deeply. This is like is_numeric_array

return true when value is

returns false when value is

array_every(array $array, callable $test = null): bool

Verify that all elements of a $array pass a given truth $test.

If the $array is empty, every will return true.

If the $test is null, verify all them are truly.

array_any(array $array, callable $test = null): bool

Verify that a element of a $array pass a given truth $test.

If the $array is empty, every will return false.

If the $test is null, verify one is truly.

array_keys_recursive(array $array): array

This is like array_keys, but recursively. Return combinations of all keys.

array_diff_key_recursive(array $main, array $other): array

This is like array_diff_key, but recursively.

array_filter_recursive($array, callable $test = null): array

This is like array_filter, but recursively. The closure $test is passed $key by default.

array_get(array $array, $path, string $separator = '.')

Retrieves a value from a nested array. Notation of $path is dot or array. If $path is string, you can modify its separator from dot as 3rd argument.

array_set(array &$array, $path, $value, string $separator = '.'): void

Set a $value within a nested array. Notation of $path is dot or array. If $path is string, you can modify its separator from dot as 3rd argument.

array_unset(array &$array, $path, string $separator = '.'): void

Set a $value within a nested array. Notation of $path is dot or array. If $path is string, you can modify its separator from dot as 3rd argument.

array_pick(array &$array, array $values): array

Find whether $values match elements of $array strictly, and takes matched values from $array. Has side effect and modify $array.


All versions of array-helper-function with dependencies

PHP Build Version
Package Version
No informations.
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 mitsuru793/array-helper-function contains the following files

Loading the files please wait ....