dragon-code/support
Dragon Code Support is a lightweight helper toolkit for PHP/Laravel projects, providing a growing collection of utilities and facades to speed up development. Easy to extend—add new methods or classes with tests following the package structure.
Arr, Str, File, Digit) that align with Laravel’s ecosystem without introducing heavy dependencies.DragonCode\Support\Facades\Arr), making integration seamless for existing Laravel projects.composer require + service provider binding).Arr::flatten(), Str::slugify(), or File::load() can replace custom utility classes, reducing coupling.Arr, Str, or File helpers, facade aliases or namespace adjustments may be needed.Arr::flatten()) overlap with Laravel’s built-in collect() or array_* functions, requiring evaluation of redundancy.composer require and facade registration are standard Laravel practices.File::move()) should be tested thoroughly.Arr::flattenKeys() for mixed values, Str::squish for empty strings) indicate active but reactive maintenance.array_flatten()").collect() vs. Arr::of()). Justify adoption if the package offers significant improvements (e.g., fluent syntax, additional methods).Str::slugify()) and monitor performance/bugs before adopting core helpers.Str::of(), Arr::where()).spatie/array, spatie/string) for broader functionality.File::move(), Arr::flattenKeys()) to validate reliability before full adoption.StringUtils) may suffice.array_helpers.php, string_utils.php).Arr::flatten() vs. custom flattenArray()).Str::slugify(), Arr::pluck()).File::move(), Digit::toShort()) after thorough testing.DragonCode\Support\Facades\*), which require Laravel’s service container. Bind the facades in a service provider:
// config/app.php
'aliases' => [
'Arr' => DragonCode\Support\Facades\Arr::class,
// ... other aliases
];
Str::matchAll()).symfony/polyfill-php81 was removed in v6.17.1).dragon-code/* packages.Str::of() vs. Str::of()).composer self-update).composer require dragon-code/support
php artisan vendor:publish --provider="DragonCode\Support\SupportServiceProvider"
config/app.php (if not auto-discovered).composer test
if (!function_exists('custom_flatten_array')) {
throw new \Error("Use Arr::flatten() instead of custom_flatten_array()");
}
How can I help you explore Laravel packages today?