Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Advanced String

Laravel Advanced String Laravel Package

mpstenson/laravel-advanced-string

Extends Laravel's Str with a richer set of chainable string helpers—advanced case conversion, truncation, pattern checks, and more—so you can write cleaner, more expressive string manipulation code without building custom utilities.

View on GitHub
Deep Wiki
Context7

A Laravel Package that add advanced string manipulation methods to the built in Str class.

Frequently asked questions about Laravel Advanced String
How do I install mpstenson/laravel-advanced-string?
Install it with Composer using composer require mpstenson/laravel-advanced-string. After installation, check the repository README for any package-specific setup, service provider, or configuration steps. For existing installs, release 1.1.1 can be pulled in with a normal composer update.
What extra string methods does laravel-advanced-string add to Laravel's Str class?
The package extends Laravel's built-in Str class with a richer set of chainable string helpers. Based on the package overview, these include advanced case conversion, truncation, pattern checks, and other string manipulation methods. Review the README and API surface for the exact helper names before relying on them in production code.
Does mpstenson/laravel-advanced-string support Laravel 12?
Yes. Release 1.1.1 adds Laravel 12 support in composer.json, so Laravel 12 applications can resolve the package without overriding constraints. The release is described as a maintenance and compatibility update with no breaking changes. You should still validate behavior in staging because the release notes do not show a full test matrix.
Which PHP versions are supported by laravel-advanced-string?
The provided release details do not list the supported PHP versions, so confirm them in the package's composer.json before adoption. Laravel 12 compatibility was added in 1.1.1, but the notes do not show every tested PHP and Laravel combination. Match the package constraints with your application's PHP version and Laravel requirements.
Is this package compatible with Laravel 10 and Laravel 11?
The 1.1.1 release focuses on adding Laravel 12 support and is described as a patch-level compatibility update with no breaking changes. The context does not provide a complete Laravel version support matrix, so check composer.json for the exact constraints. Test on your target Laravel version if you are still on Laravel 10 or 11.
Is upgrading from 1.1.0 to 1.1.1 a breaking change?
No, 1.1.1 is described as a drop-in patch update from 1.1.0. Run composer update mpstenson/laravel-advanced-string and check for any constraint conflicts with your Laravel or PHP versions. The remaining changes are CI and tooling dependency bumps, which do not affect runtime behavior.
Is laravel-advanced-string safe to use in production?
The technical risk is low because this is a small string utility package, and 1.1.1 introduces no breaking changes or new runtime features. Pin the package version, run your application test suite, and validate string helper behavior in staging. Also consider single-maintainer risk and monitor upstream activity for future Laravel upgrades.
How should I test my app after installing or upgrading laravel-advanced-string?
Run your normal application test suite, with extra attention to tests that cover string macros, helpers, and any custom string utilities. Check for helper name collisions and edge-case behavior changes, then validate a Laravel 12 upgrade path in staging if applicable. The package release notes do not provide a detailed test matrix, so your application tests are the main safety net.
Is mpstenson/laravel-advanced-string actively maintained?
The release shows ongoing dependency hygiene, including Dependabot updates for GitHub Actions metadata and Laravel Pint. That suggests basic CI maintenance is in place, but it does not prove deep test coverage or long-term support depth. Because this appears to be a single-maintainer package, pin versions and monitor upstream activity.
What are alternatives to laravel-advanced-string for advanced string manipulation?
Start with Laravel's native Illuminate\Support\Str helpers and add small custom utilities only where native methods fall short. You can also evaluate other Composer string-helper packages if you need a broader maintained API surface. The main trade-off is avoiding custom code versus taking on an extra dependency with its own support and upgrade cadence.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib