hestiacp/phpquoteshellarg
Improved escape shell arguments for support of special charactars
v1.1.0
2.5M downloads/mo
#978 most downloaded on Packagist
hestiacp/phpquoteshellarg
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Ships fairly regularly
a new release about every 12 months
Some releases are documented
notes for 2 of 4 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
7 releases · first in 2022
0 releases in the last 12 months
see the full history below
Release timeline
7 releases · Jul 2022 to Sep 2024Releases
latest 7-
v1.1.020 Sep 2024Release notes
Open source →now support int and float
function quoteshellarg(string | int | float $arg): string
Now require PHP>=8.0.0 (up from PHP7.2.0)
var_dump(array( 'INF' => quoteshellarg(INF), 'NAN' => quoteshellarg(NAN), '1.234567890' => quoteshellarg(1.234567890), 123 => quoteshellarg(123), )); array(4) { ["INF"]=> string(5) "'INF'" ["NAN"]=> string(5) "'NaN'" ["1.234567890"]=> string(20) "'1.2345678899999999'" [123]=> string(5) "'123'" }
-
v1.0.223 Jul 2023Release notes
Open source →Add support for Cygwin
Even Hestia CP doesn't use it it is also available for everybody to use.
-
v1.0.104 Jul 2022Nothing published for this version
-
v1.0.1-p317 Jul 2022 pre-releaseNothing published for this version
-
v1.0.1-p217 Jul 2022 pre-releaseNothing published for this version
-
v1.0.1-p117 Jul 2022 pre-releaseNothing published for this version
-
v1.0.004 Jul 2022Nothing published for this version