PHP Classes

PHP Data Types Helpers: Classes to manipulate different data types

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 37 All time: 10,991 This week: 560Up
Version License PHP version Categories
helpers-php 1.0MIT/X Consortium ...7Data types, PHP 7
Description 

Author

This package can provide classes to manipulate different data types.

It comes with classes that perform several types of operations with data types.

Currently, it provides classes to:

- Manipulate arrays using static functions

- Cast an object of a class into an object of another class

- Access values of environment variables assuming a default value for variables that are not defined

- Process an iterable array by invoking a given callback function for each of the array values

- Evaluate the result of applying a given rule to a value using additional arguments

- Build a tree of values from an iterable array given the names of associative array trees that will be assigned to each of the tree element identifier, parent element identifier, and the items under each tree element

Picture of Smoren  Freelight
  Performance   Level  
Name: Smoren Freelight <contact>
Classes: 39 packages by
Country: Russian Federation Russian Federation
Innovation award
Innovation award
Nominee: 16x

Documentation

helpers

Some helpers for different things

How to install to Yii2 project

composer require smoren/helpers

Unit testing

composer install
./vendor/bin/codecept build
./vendor/bin/codecept run unit tests/unit

  Files folder image Files (16)  
File Role Description
Files folder imagesrc (6 files)
Files folder imagetests (2 files, 2 directories)
Accessible without login Plain text file codeception.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (16)  /  src  
File Role Description
  Plain text file ArrHelper.php Class Class source
  Plain text file CastHelper.php Class Class source
  Plain text file EnvHelper.php Class Class source
  Plain text file LoopHelper.php Class Class source
  Plain text file RuleHelper.php Class Class source
  Plain text file TreeHelper.php Class Class source

  Files folder image Files (16)  /  tests  
File Role Description
Files folder imageunit (3 files)
Files folder image_support (1 file)
  Accessible without login Plain text file unit.suite.yml Data Auxiliary data
  Accessible without login Plain text file _bootstrap.php Aux. Auxiliary script

  Files folder image Files (16)  /  tests  /  unit  
File Role Description
  Plain text file EnvHelperTest.php Class Class source
  Plain text file LoopHelperTest.php Class Class source
  Plain text file TreeHelperTest.php Class Class source

  Files folder image Files (16)  /  tests  /  _support  
File Role Description
  Plain text file UnitTester.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:37
This week:0
All time:10,991
This week:560Up