zhortein/symfony-toolbox-bundle
A Symfony bundle offering a toolbox of handy utilities and helpers to streamline common development tasks. Install it to add reusable, framework-integrated components to your Symfony application and cut down on repetitive boilerplate.
composer update vendor/package (or composer require vendor/package:^1.1 for a fresh install). No migration or config publish step is implied by 1.1.4.composer show vendor/package — the Dockerfile and dev/debug tooling only reach your project through the vendor update, not through a separate install.src/StringTools.php (or the equivalent StringTools class/helper file) and diff it against 1.1.3: git diff 1.1.3..1.1.4 -- vendor/package. The three new formatters are additive, so the diff is the fastest way to learn their exact names and signatures.StringTools::formatX($value) inside getDisplayNameAttribute(). Run the existing test suite immediately afterwards to confirm output parity with whatever you were doing before.For the Docker side, the new Dockerfile and debug tooling are for contributing to or debugging the package itself, not for your application runtime. Read the Dockerfile before using it, and treat it as a reference implementation of the package's expected PHP/extensions rather than something to drop into your app's compose stack.
Formatter usage in the domain layer. The natural home for the new StringTools formatters is model accessors, cast classes, and form requests — anywhere you already normalise user-supplied strings. Prefer calling them in one place (an accessor or a small dedicated presenter) over sprinkling calls across controllers and Blade, so a future formatter behaviour change is a one-line fix.
Compose with the existing helpers. Formatters are most useful chained after trim/Str::of() normalisation. Establish a house order — trim, then collapse whitespace, then format — and apply it consistently; otherwise the same input can produce different output depending on which code path it enters.
Blade and API resources. For display-only formatting, call the formatter in the Blade partial or API Resource rather than persisting the formatted value. Keep the raw column untouched so you can re-run formatting later when the formatter is fixed or extended.
Docker for local debugging. Use the shipped Dockerfile to reproduce a bug against the package in isolation — mount your failing input as a fixture, step through with Xdebug, and confirm whether the issue is in the formatter or in your calling code. This is materially faster than debugging through a full Laravel app with a queue worker and HTTP stack in the way.
Testing. Add a data-provider test per formatter covering: empty string, null (if accepted), multibyte/UTF-8 input, and already-formatted input (idempotency). These four cases catch nearly every formatter regression, and they make the upgrade to 1.1.5 trivial to validate.
Pin and document. Since formatters directly affect user-visible output, note the package version in your composer.json constraint and add a changelog entry when you upgrade — reviewers should know a display change came from a dependency bump, not from application logic.
"hello world".null or '' and wrap the call accordingly rather than relying on the formatter's default.composer update and you'll debug it twice.git log 1.1.3..1.1.4 in the vendor directory and read the formatter diff first; most "random" formatting regressions are a one-line change in a shared private method.How can I help you explore Laravel packages today?