Download the PHP package opxcore/array without Composer

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

Array utils

Build Status Coverage Status Latest Stable Version Total Downloads License

Installing

Usage

Available methods:

For dot notation:

Regular arrays only:

All $default values are optional and could be callable that returns value. By default, it is always null.

Performance tips: All methods for manipulating with dot notation are optimised for performance on a dot notated keys. If you are care about performance much it is better to use regular array manipulations on non-dot notated arrays.

Making a dot notated array

Makes a dot notated array from any flat or multidimensional array.

Getting a value using dot notation

Gets a value from the array using dot notation. If the given key is not existing in the array, this function will return default value.

Setting a value using dot notation

Sets the value into the array for the given key using dot notation. Function modifies given array directly, but also returns modified array for convenient usage.

Determining a key (or keys) existence in the array

Determines if the given key (or several keys) are existing in the array.

Removing the values associated with the given keys

Removes the given key (or several keys given as an array) from the array. If any of keys are not existing in the array nothing happens. Function modifies given array directly, but also returns modified array for convenient usage.

Pulling the value from the array

Actually, this is combination of Arr::get() and Arr::forget() methods. This method fetches the value and then removes it from the array. If the key is not exists in the array, default value will be returned.

Pushing the value into the array

Pushes the value into the given key in array. If given key is not existing, it will be created and the value will be set as item of unassociated array. If the key is existing, value associated with this key will be casted as array and value will be added into it. Function modifies given array directly, but also returns modified array for convenient usage.


All versions of array with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4
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 opxcore/array contains the following files

Loading the files please wait ....