mahdi-mohammadi/php-array

Php Array Opertion Class

dev-master 2015-04-18 05:51 UTC

This package is not auto-updated.

Last update: 2024-10-02 07:51:43 UTC


README

#PHP Array

PHP class to Operation an Array

#About v0.2

PHP have useful arrays function(like:array_map, array_diff,...) but I think those functions can be better and powerful so I write this class. My approach is like CakePHP Hash Utility Class.

#Requirements

Php Array Requires PHP >= 5.4

#Installation

##Using Composer

You can install this package using composer. Add this package to your composer.json:

"require": {
	"mahdi-mohammadi/php-array": "dev-master"
}

or if you prefer command line, change directory to project root and:

php composer.phar require "mahdi-mohammadi/php-array":"dev-master"

##Manual Installation

Get a copy of package source code. You can do this in two ways:

  1. Download ZIP version of the source code and unzip it in desired location
  2. Run git clone https://github.com/mahdi-mohammadi/php-array.git to clone this repository

After getting a copy of source code, it is enough to include phpArray.class.php where you need to use it.

require_once 'path/to/source/phpArray.class.php';

#Examples

Please see examples.php and example-static.php for working examples.

##License Hash Class was created by CakePHP and released under the MIT License so Php Array released under the MIT License too.

Copyright (C) 2015 Mahdi Mohammadi

#Resources