mossengine/helpersarray

A PHP sub library for the Mossengine/Helper library that provides Array helper functions

1.0.2 2021-06-26 09:59 UTC

This package is auto-updated.

Last update: 2024-11-04 21:25:51 UTC


README

A PHP sub library for the Mossengine/Helper library that provides Array helper functions

Source Code Download Package PHP Programming Language Build Status Codecov Code Coverage Read License Package downloads on Packagist

About

This library can be used on it's own, however, it is intended to be used with the Mossengine/Helper library.

There is a group of Array type classes with single methods within that single out logic only needed for the given use, you can call them directly or using the Mossgnein Helper you can call into them simply without needing to use them in your project.

Installation

Using composer to install

$ composer require mossengine/helpersarray

Adding to package.json

{
    "require": {
        "mossengine/helpersarray": "~1.0.0"
    }
}

Usage

Call helper method on a specific helper class

// Require the autoloader, normal composer stuff
require 'vendor/autoload.php';

// Direct usage ( not intended )
$result = Mossengine\Helpers\_Array\_IsAssociative::_IsAssociative(['a' => 'A']);

// Mossengine Helper usage ( intended )
$result = Mossengine\Helper::Array()->IsAssociative(['a' => 'A']);

Documentation

Read the docs for more details on Helpers Array methods.