ProcessUtils
class ProcessUtils (View source)
ProcessUtils is a bunch of utility methods.
This class was originally copied from Symfony 3.
Methods
static string
escapeArgument(string $argument)
Escapes a string to be used as a shell argument.
static bool
isSurroundedBy(string $arg, string $char)
Is the given string surrounded by the given character?
Details
static string
escapeArgument(string $argument)
Escapes a string to be used as a shell argument.
static protected bool
isSurroundedBy(string $arg, string $char)
Is the given string surrounded by the given character?
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.