PHP Classes

PHP Data Types Helpers: Classes to manipulate different data types

Recommend this page to a friend!
  Info   View files Documentation   View files View files (16)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-19 (14 hours ago) RSS 2.0 feedNot yet rated by the usersTotal: Not yet counted Not yet ranked
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: 34 packages by
Country: Russian Federation Russian Federation
Innovation award
Innovation award
Nominee: 15x

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  
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  /  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  /  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  /  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  /  tests  /  _support  
File Role Description
  Plain text file UnitTester.php Class Class source

 Version Control Unique User Downloads  
 100%
Total:0
This week:0