Download the PHP package weew/helpers-array without Composer

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

Array helpers

Build Status Test Coverage Version Licence

Table of contents

Installation

composer require weew/helpers-array

Introduction

This tiny library provides various helper functions to deal with arrays.

Functions

array_get

Get an item from an array using "dot" notation.

mixed array_get(array $array, mixed $key [, mixed $default = null])

array_has

Check if an item exists in an array using "dot" notation.

bool array_has(array $array, mixed $key)

array_set

Set an array item to a given value using "dot" notation.

array array_set(array &$array, mixed $key, mixed $value)

array_remove

Remove one or many array items from a given array using "dot" notation.

void array_remove(array &$array, mixed $keys)

array_add

Add an element to the array at a specific location using the "dot" notation.

array array_add(array &$array, mixed $key, mixed $value)

array_take

Get an element and remove it from the array using the "dot" notation.

array array_take(array &$array, mixed $key, [, mixed $default = null])

array_first

Get the first element from an array.

array array_first(array &$array, [, mixed $default = null])

array_last

Get the last element from an array.

array array_last(array &$array, [, mixed $default = null])

array_reset

Reset all numerical indexes of an array (start from zero). Non-numerical indexes will stay untouched.

array array_reset(array $array [, bool $deep = false])

array_dot

Flatten a multi-dimensional associative array with dots.

array array_dot(array $array [, string $prepend = ''])

array_extend

Extend one array with another.

array array_extend(array $arrays [, array $...])

array_extend_distinct

Extend one array with another. Non associative arrays will not be merged but rather replaced.

array array_extend_distinct(array $arrays [, array $...])

array_is_associative

Check if the given array is associative.

bool array_is_associative(array $array)

array_is_indexed

Check if an array has a numeric index.

bool array_is_indexed(array $array)

array_contains

Check if array contains a specific element.

array array_contains(array $array, mixed $search [, bool $strict = true])


All versions of helpers-array 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 weew/helpers-array contains the following files

Loading the files please wait ....