Download the PHP package blackbonjour/stdlib without Composer
On this page you can find all versions of the php package blackbonjour/stdlib. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download blackbonjour/stdlib
More information about blackbonjour/stdlib
Files in blackbonjour/stdlib
Package stdlib
Short Description Standard library for PHP
License MIT
Homepage https://github.com/BlackBonjour/stdlib
Informations about the package stdlib
stdlib
Standard library for PHP.
This library contains many helping classes for manipulating multibyte strings and handling various types of arrays.
Installation
It's recommend that you use Composer to install Stdlib.
This will install Stdlib and all required dependencies. Stdlib requires PHP 7.4 or newer.
Usage
Following are a few example of what this library is capable of.
Language
With you have a powerful tool for manipulating strings. Many functions are good known from other programming languages such as Java.
is also multibyte compatible.
instances can be created from string and .
also implemented , which allows us to treat instances like regular strings.
Utils
Utils contains classes for easier handling with arrays and assertions.
Assert
With you have the possibility to check multible values for emptiness at once. This method works exactly the same as PHPs internal function .
For the opposite way use to check if all values are not empty.
With to check if multiple values are of specified types or are instances of specified classes. This method is supposed to react like PHP itself. So if the values are not of specified types or classes, a TypeError exception will be thrown. If that behaviour is not what you want, you can use the method instead. That method will return if all values are of specified types or classes, false otherwise.
HashMap
With it is now possible to have arrays with objects as keys.
All versions of stdlib with dependencies
ext-json Version *
ext-mbstring Version *