PHP Toolbox: General purpose classes to use in PHP projects

Recommend this page to a friend!
  Info   View files Documentation   View files View files (28)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2020-12-14 (2 months ago) RSS 2.0 feedNot enough user ratingsTotal: 105 This week: 3All time: 9,384 This week: 102Up
Version License PHP version Categories
php_component_toolbo 1.0.0GNU Lesser Genera...5PHP 5, Time and Date, Utilities and T..., T...
Description Author

This package provides general purpose classes to use in PHP projects.

It provides a collection of classes that can be used to perform several types of tasks. Currently it provides classes to:

- Merge or combine arrays into a single array
- Iterate over a set of values in a chunk at a time
- Execute a prepare or a cleanup function after processing a number of entries of a set of values
- Execute a callback function limited to a given number of times
- Measure time that passed since a given start moment
- Manipulate timestamps as an object

Innovation Award
PHP Programming Innovation award nominee
December 2020
Number 3
One way to process a large set of data that is stored in an array is to iterate over the array one element at a time and process it.

This package provides a better way to process data in arrays. Instead of processing one element at a time, it processes chunks of multiple elements in each iteration. This way it can do the whole processing in a more efficient way.

Manuel Lemos
Picture of nvb
  Performance   Level  
Name: nvb <contact>
Classes: 17 packages by
Country: Germany Germany
Age: ???
All time rank: 1630104 in Germany Germany
Week rank: 67 Up3 in Germany Germany Up
Innovation award
Innovation award
Nominee: 10x

Details

Toolbox Component for PHP

This project aims to deliver an easy to use and free as in freedom php component full of toolbox things you need on your daily work with php.

The current change log can be found here.

Install

By Hand

mkdir -p vendor/net_bazzline/php_component_toolbox
cd vendor/net_bazzline/php_component_toolbox
git clone https://github.com/bazzline/php_component_toolbox .

With Packagist

    composer require net_bazzline/php_component_toolbox:dev-master

Available Sections

Array

Collection

  • ChunkIterator - easy up iteration by defining a minimum, a maxium and a step width and returning a Chunk

Progress

  • EnumerableDeferred - enables you to execute a prepare or a cleanup function after processing n entries
  • Experiment - enables you to try to execute a callback up to x times

Scalar

  • Text - contains useful functions working with strings

Time

API

API is available at bazzline.net.

Final Words

Star it if you like it :-). Add issues if you need it. Pull patches if you enjoy it. Write a blog entry if use it. Make a donation if you love it :-].

  Files folder image Files  
File Role Description
Files folder imagesource (5 directories)
Files folder imagetest (2 files, 5 directories)
Accessible without login Plain text file .scrutinizer.yml Data Auxiliary data
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file CHANGELOG.md 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 phpunit.xml.dist Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  source  
File Role Description
Files folder imageCollection (1 directory)
Files folder imageHashMap (2 files)
Files folder imageProcess (2 files)
Files folder imageScalar (2 files)
Files folder imageTime (2 files)

  Files folder image Files  /  source  /  Collection  
File Role Description
Files folder imageChunk (2 files)

  Files folder image Files  /  source  /  Collection  /  Chunk  
File Role Description
  Plain text file Chunk.php Class Class source
  Plain text file ChunkIterator.php Class Class source

  Files folder image Files  /  source  /  HashMap  
File Role Description
  Plain text file Combine.php Class Class source
  Plain text file Merge.php Class Class source

  Files folder image Files  /  source  /  Process  
File Role Description
  Plain text file EnumerableDeferred.php Class Class source
  Plain text file Experiment.php Class Class source

  Files folder image Files  /  source  /  Scalar  
File Role Description
  Plain text file RealNumber.php Class Class source
  Plain text file Text.php Class Class source

  Files folder image Files  /  source  /  Time  
File Role Description
  Plain text file Stopwatch.php Class Class source
  Plain text file Timestamp.php Class Class source

  Files folder image Files  /  test  
File Role Description
Files folder imageCollection (1 directory)
Files folder imageHashMap (2 files)
Files folder imageProcess (2 files)
Files folder imageScalar (2 files)
Files folder imageTime (2 files)
  Plain text file AbstractTestCase.php Class Class source
  Accessible without login Plain text file bootstrap.php Aux. Auxiliary script

  Files folder image Files  /  test  /  Collection  
File Role Description
Files folder imageChunk (1 file)

  Files folder image Files  /  test  /  Collection  /  Chunk  
File Role Description
  Plain text file ChunkIteratorTest.php Class Class source

  Files folder image Files  /  test  /  HashMap  
File Role Description
  Plain text file CombineTest.php Class Class source
  Plain text file MergeTest.php Class Class source

  Files folder image Files  /  test  /  Process  
File Role Description
  Plain text file EnumerableDeferredTest.php Class Class source
  Plain text file ExperimentTest.php Class Class source

  Files folder image Files  /  test  /  Scalar  
File Role Description
  Plain text file RealNumberTest.php Class Class source
  Plain text file TextTest.php Class Class source

  Files folder image Files  /  test  /  Time  
File Role Description
  Plain text file StopwatchTest.php Class Class source
  Plain text file TimestampTest.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:105
This week:3
All time:9,384
This week:102Up

For more information send a message to info at phpclasses dot org.