PHP Classes

PHP Utility Classes: Manipulate and validate values of several types

Recommend this page to a friend!
     
  Info   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: 119 All time: 9,519 This week: 560Up
Version License PHP version Categories
php-utility-class 1.0MIT/X Consortium ...5Algorithms, Data types, Validation, P...
Description 

Author

This package can manipulate and validate values of several types.

It provides several classes that can perform operations on different types of values.

Currently, it can:

- Create an array from a string value using several possible characters as separator strings

- Delete empty values from arrays

- Check if a string is of a valid file name

- Check if a string is a valid file name or page URL that PHP can access

- Determine if a string contains a valid number with a checksum digit calculated using the Luhn algorithm

- Check if a string contains a valid IP address

- Generate a random number with a specific number if digits

- Calculate the percentage value given the partial and total numbers

- Remove white space characters from Unicode strings

- Calculate the time of execution of the current script considering its start time and the current time

Innovation Award
PHP Programming Innovation award nominee
July 2022
Number 8
Measuring the time that a PHP script takes to execute allows for determining if a script is too slow and if its performance needs to be optimized.

When PHP is used to serve Web pages, the real execution time needs to be measured from when the Web server received the HTTP request.

This package provides a class that can calculate the current script's real execution time considering the HTTP request start time.

Manuel Lemos
Picture of Mateo
  Performance   Level  
Name: Mateo <contact>
Classes: 23 packages by
Country: Peru Peru
Age: ???
All time rank: 20474 in Peru Peru
Week rank: 44 Up1 in Peru Peru Up
Innovation award
Innovation award
Nominee: 10x

Winner: 3x

  Files folder image Files (14)  
File Role Description
Files folder imagesrc (7 files, 1 directory)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file readme.md Doc. Documentation

  Files folder image Files (14)  /  src  
File Role Description
Files folder imageExceptions (5 files)
  Plain text file Arrays.php Class Class source
  Plain text file Files.php Class Class source
  Plain text file Luhn.php Class Class source
  Plain text file Network.php Class Class source
  Plain text file Numbers.php Class Class source
  Plain text file Strings.php Class Class source
  Plain text file Time.php Class Class source

  Files folder image Files (14)  /  src  /  Exceptions  
File Role Description
  Plain text file DbException.php Class Class source
  Plain text file ExceptionInterface.php Class Class source
  Plain text file FileException.php Class Class source
  Plain text file KeyArrayException.php Class Class source
  Plain text file RequestException.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:119
This week:0
All time:9,519
This week:560Up