apie/regex-tools
Utility package from the Apie ecosystem that provides internal tools for working with regular expressions in PHP, including helpers for building and validating regex patterns. Maintained in the Apie monorepo; primarily intended for internal use.
Illuminate\Support\Str or Illuminate/Validation components. However, without clear APIs or examples, this remains speculative.spatie/laravel-regex or laravel/framework extensions).preg_* functions?false/null? How would this fit into Laravel’s error-handling conventions?Illuminate\Support\Str::is() (basic patterns).Illuminate/Validation (regex rules).spatie/laravel-regex (for advanced use cases).composer require apie/regex-tools.use Apie\RegexTools\RegexTool; // Hypothetical namespace; verify actual API.
$pattern = RegexTool::compile('/\d{3}-\d{2}-\d{4}/');
$isMatch = $pattern->match('123-45-6789');
// app/Providers/RegexToolsServiceProvider.php
public function register()
{
$this->app->singleton('regex-tools', function () {
return new \Apie\RegexTools\RegexTool();
});
}
use Illuminate\Contracts\Validation\Rule;
class RegexPatternRule implements Rule
{
public function passes($attribute, $value)
{
return RegexTool::compile($this->pattern)->match($value);
}
}
php.yml workflow suggests it supports modern PHP, but test with Laravel’s exact version.Str::is(), Validator::extend()).composer.json.Call to undefined method).Cache::remember()) for compiled patterns.^(a+)+$).preg_match with PREG_SET_TIMEOUT).symfony/string).How can I help you explore Laravel packages today?