dontdrinkandroot/common
A small utility library with commonly used PHP helpers and extensions, including a PHPStan extension. Intended to provide shared building blocks for projects, with CI and code quality tooling support via SonarCloud badges.
StringHelper, ArrayHelper, FileHelper) that align with Laravel’s modular design. It could reduce custom utility class sprawl in a codebase but risks introducing unnecessary abstraction if Laravel’s built-in helpers (e.g., Str::, Arr::, File::) suffice.spatie/array-to-object, laravel/helpers).composer.json.composer.json metadata could complicate adoption.dontdrinkandroot) is inactive.collect(), Str::) may render some utilities redundant. Avoiding "not-invented-here" syndrome is critical.sensio/framework-extra-bundle vulnerabilities). A TPM must enforce static analysis (e.g., PHPStan, Psalm) pre-integration.spatie/laravel-activitylog, nunomaduro/collision)?Facade support), a TPM should define a custom service provider to register helpers globally (e.g., app()->bind('helper', fn() => new StringHelper())).FileHelper) in a non-critical module.app/Helpers/StringHelper.php with dontdrinkandroot\StringHelper).resolve(StringHelper::class)).@stack, @push, etc.register_globals) that could break Laravel’s security model.php-redis) that could bloat the deployment.phpunit tests for service container integration).composer.json with require-dev for testing.app/Facades/CommonHelper.php) for consistency.tideways/xhprof) for regressions.composer.json to avoid auto-updates until stability is proven.MAINTAINERS.md file.throw new \RuntimeException("Invalid input for StringHelper::camelCase()")).ArrayHelper::pluck() instead of collect()->pluck() only for legacy array support").ArrayHelper::deepMerge()).CHANGELOG.md; assume no backward compatibility guarantees.if (!method_exists(StringHelper::class, 'camelCase')) { ... }).symfony/polyfill).| Package Function | Laravel Equivalent | Use Case |).app/Helpers/ to demonstrate patterns (e.g., use dontdrinkandroot\StringHelper;).How can I help you explore Laravel packages today?