PHP Classes

File: CHANGELOG.md

Recommend this page to a friend!
  Classes of Eric Sizemore   Utility   CHANGELOG.md   Download  
File: CHANGELOG.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: Utility
Collection of various PHP utility functions
Author: By
Last change: Pushing 1.3.0
Pass at code cleanup and attempt to improve test coverage
Small updates
Date: 1 month ago
Size: 3,574 bytes
 

Contents

Class file image Download

CHANGELOG

A not so exhaustive list of changes for each release.

For a more detailed listing of changes between each version, you can use the following url: https://github.com/ericsizemore/utility/compare/v1.2.0...v1.3.0.

Simply replace the version numbers depending on which set of changes you wish to see.

1.3.0 (2023-12-11)

* currentUrl() no longer has any parameters, and just returns the URL string.

* currentUrl(bool $parse = false) is now just currentUrl()
* Just run parse_url(Utility::currentUrl()) if that functionality is needed.

* serverHttpVars() deprecated, just use getallheaders() instead.

* Added ralouphie/getallheaders as a polyfill, for situations where the SAPI is not Apache
* serverHttpVars() will just return the getallheaders() output

* Removed deprecated statusHeader() * Code cleanup per PHPCS and PHPScrutinizer

* Small refactoring of some functions, such as currentUrl and isReallyWritable

* Attempt at increasing test coverage. * Further cleanup to try and adhere to PSR-12.

* Adding information into README.md for PHPDoc related guidelines, in an effort
  to adhere to PSR-5 and PSR-19.

1.2.0 (2023-09-22)

* Code cleanup per PHPStan (level: 9, strict, bleeding edge) * New function arrayInterlace * doesContain() and doesNotContain() now uses the PHP 8 native str_contains() function.

* No longer relies on mbstring for these two functions, as it does not appear to be necessary.
* However, you can pass true to the $multibyte parameter to use mbstring
* New signature: `(string $haystack, string $needle, bool $insensitive = false, bool $multibyte = false)`

* beginsWith() and endsWith() now uses the PHP 8 native str_starts_with() and str_ends_with() functions.

* No longer relies on mbstring for these two functions, as it does not appear to be necessary.
* However, you can pass true to the $multibyte parameter to use mbstring
* New signature: `(string $haystack, string $needle, bool $insensitive = false, bool $multibyte = false)`

* New functions for temperature conversions:

* fahrenheitToCelsius, celsiusToFahrenheit, celsiusToKelvin, kelvinToCelsius, fahrenheitToKelvin, kelvinToFahrenheit
* fahrenheitToRankine, rankineToFahrenheit, celsiusToRankine, rankineToCelsius, kelvinToRankine, rankineToKelvin

* Reworked arrayFlatten, now has new paramater $prepend * statusHeader() is now deprecated, you can use PHP's built-in http_response_code function instead. * validJson() should now return properly * Initial implementation of PHPUnit and the testing suite.

1.1.2 (2023-08-17)

* Version bump * Minor code cleanup

1.1.1 (2023-08-11)

* Version bump * Cleaning up issues per PHPStan

1.1.0 (2023-06-24)

* Version bump * Bumped PHP version requirement to 8.2 * Updated composer.json * FIX: Minor documentation improvements. * FIX: Minor code improvements. * BC BREAK: randomBytes, randomInt, randomString and guid now throw \Random\RandomException

1.0.3 (2023-06-03)

* Updated copyright year(s) and version bump. * Bumped PHP version requirement. * Updated composer.json * FIX: Minor documentation improvements. * FIX: Minor code improvements. * FIX: Some functions not defined/used properly.

1.0.2 (2021-08-20)

* Updated copyright year(s) and version bump. * FIX: Minor documentation improvements.

1.0.1 (2019-04-07)

* FEATURE: New functions - lcfirst, ucfirst, strcasecmp * FIX: Minor documentation improvements.

1.0.0 (2017-02-08)

* Initial release