Download the PHP package lablnet/arrays without Composer

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

Note This package is a part of ZEST Franewrk (https://github.com/zestframework/Zest_Framework/blob/master/src/Data/Arrays.php), may thanks to @peter

NO PR WILL BE ACCPETED HERE

A class to manipulate arrays in efficient ways to solve real world problems.

Requirement

  1. PHP 7.2 or grater.
  2. Composer.

Installation

Installing this package is very simple, first ensure you have the right PHP version and composer installed then in your terminal/(command prompt) run: composer require lablnet/arrays

Features

  1. Determine whether the given dataSet is really array?
    • Example:
  2. Determine the given array is (sequential)indexes.?

    • Example:
  3. Determine the given array is assoc.?

    • Example:
  4. Determine the given array is multi-dimensional.?

    • Example:
  5. Get the type of array.
    • Example:
  1. Add an element to an array using "operation" notation if it doesn't exist.

    • Example:
    1. Set an array item to a given value using "operator" notation.
      • Example:
  2. Get an item from an array using "operator" notation(The Arrays::get method retrieves a value from a deeply nested array using "dot" notation:).

    • Example:
    • The Arrays::get method also accepts a default value, which will be returned if the specific key is not found.

    1. Determine if an item or items exist in an array using 'Operator' notation.
      • Example:
  3. Determine if an item or items exist in an array using 'Operator' notation.

    • Example:
  4. Converted a multi-dimensional associative array with dot.

    • Example:
  5. Converted a multi-dimensional associative array with operator.

    • Example:
  6. Push an item onto the beginning of an array.

    • Example:
  7. Push an item to the end of array.

    • Example:
  8. Get the unique elements from arrays.

    • Example:
  9. Get a subset of the items from the given array.

    • Example:
  10. Remove one or many array items from a given array using "operator" notation.

    • Example:
  11. Get all of the given array except for a specified array of keys.

    • Example:
  12. Get a value from the array, and remove it.

    • Example:
  13. Changes the case of all keys in an array.

    • Example:
    1. Changes the case of all values in an array.
      • Example:
  14. Remove duplicate values from array.

    • Example:
    • ` $name = Arrays::removeDuplicates($array); // $array: ['red', 'green', 'blue']
  15. Get the most occurring value from array.

    • Example:
  16. Get the least occurring value from array.

    • Example:
  17. Convert the array into a query string.

    • Example:
  18. Filter the array using the given callback (THIS METION WILL NOT WORKS WITH MULTIDIMESSIONAL ARRAY.).

    • Example:
  19. Get one or a specified number of random values from an array.

    • Example:
    1. Get multiple values of same keys from multi-dimessional array.
      • Example:

All versions of arrays with dependencies

PHP Build Version
Package Version
Requires php Version ^7.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 lablnet/arrays contains the following files

Loading the files please wait ....