PHP Classes

PHP Toolbox: General purpose classes to use in PHP projects

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 enough user ratingsTotal: 123 All time: 9,471 This week: 673Up
Version License PHP version Categories
php_component_toolbo 1.0.0GNU Lesser Genera...5PHP 5, Time and Date, Tools, Text pro...
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  
Innovation award
Innovation award
Nominee: 12x

Winner: 1x

 

Documentation

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 (28)  
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

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:123
This week:0
All time:9,471
This week:673Up