<?php preg_split( string $pattern, string $subject, int $limit = -1, int $flags = 0): array|false
<?php $this->stubDirectory = rtrim('stubs'.DIRECTORY_SEPARATOR.$stubSubDirectory, DIRECTORY_SEPARATOR).'/'; } $directories = preg_split('/[.\/(\\\\)]+/', $rawCommand); $camelCase = str(array_pop($directories))->camel(); $kebabCase = str($camelCase)->kebab();