Download the PHP package salient/utils without Composer
On this page you can find all versions of the php package salient/utils. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download salient/utils
More information about salient/utils
Files in salient/utils
Informations about the package utils
salient/utils
The utils component of the Salient toolkit
salient/utils
provides a suite of useful utility methods via stateless
classes.
-
Arr
works with arrays and iterables. -
Date
works with date and time values, timezones and intervals. -
Debug
gets caller information by normalising backtrace data. -
Env
retrieves environment variables, loads values from.env
files, and applies values from the environment to the script. -
File
provides methods for filesystem operations that throw exceptions on failure. -
Format
makes data human-readable. -
Get
extracts, converts and generates data. For example:Get::coalesce()
replicates the SQLCOALESCE()
functionGet::code()
improves uponvar_export()
Get::copy()
gets a deep copy of an objectGet::eol()
gets a string's end-of-line sequenceGet::uuid()
generates or converts a UUID
-
Inflect
converts English words to different forms, e.g. from singular to plural. -
Json
provides methods for encoding and decoding JSON data that throw exceptions on failure. -
Package
retrieves information from Composer's runtime API, e.g. the name of the root package. -
Reflect
works with PHP's reflection API. -
Regex
provides methods for working with regular expressions that throw exceptions on failure. -
Str
manipulates strings. For example:Str::expandLeadingTabs()
expands leading tabs to spacesStr::matchCase()
matches the case of one string to anotherStr::ngrams()
gets a string's n-gramsStr::snake()
converts a string to snake_caseStr::splitDelimited()
safely splits strings that contain delimiters
-
Sys
retrieves information about the runtime environment, and provides a handler for exit signals (SIGTERM
,SIGINT
andSIGHUP
). Test
performs tests on values.
Documentation
[API documentation][api-docs] for salient/utils
tracks the main
branch of
the toolkit's GitHub repository, where further documentation can also
be found.
[api-docs]: https://salient-labs.github.io/toolkit/namespace-Salient.Utility.html
All versions of utils with dependencies
composer-runtime-api Version ^2.2