pragmarx/ia-str
Framework-agnostic extraction of Laravel’s Illuminate\Support\Str and string helper functions, repackaged under IlluminateAgnostic\Str to avoid namespace conflicts. Use Str:: methods or global str_* helpers in any PHP project, including Laravel apps.
Str::slug(), Str::snake_case()) or rely on third-party libraries like mbstring for edge cases.Str helpers. Ideal for projects where Laravel adoption is unlikely but string utilities are needed (e.g., CLI tools, internal scripts, or vendor packages).Str API or needing battle-tested utilities. Build only if requiring highly customized string logic not covered by this package (e.g., domain-specific transformations).Str).Adopt When:
Str helpers (e.g., camel_case(), ascii(), limit()).strtolower() vs. Str::lower() for consistency).Look Elsewhere When:
Str class directly.symfony/string or voku/portable-ascii for broader locale support.*"This package lets us reuse Laravel’s battle-tested string utilities—like slug generation or case conversion—in any PHP project, without adopting the full Laravel framework. It’s a lightweight, MIT-licensed solution that:
Str).*"This is a drop-in replacement for Laravel’s Str helpers, extracted to work in any PHP project. Key benefits:
Str::slug() or Str::snake_case() without pulling in the entire framework.Str methods exactly, so onboarding is trivial.Str::ascii() for URLs).Str::kebab_case() for routes).Str::limit() for previews).
Avoid if:symfony/string instead).Str).
Pitch: This saves dev time and reduces bugs in string-heavy code. Let’s prototype it in [X project] to validate adoption."*How can I help you explore Laravel packages today?