subhashladumor / laravel-helperbox
Laravel HelperBox packs 600+ advanced helpers - SQL optimization, caching, APIs, AI tools, arrays, strings, Blade & model utilities. ?? Save time, boost performance & simplify coding for every project, from startups to enterprise.
Fund package maintenance!
subhashladumor1
Patreon
Requires
- php: ^8.0
- illuminate/cache: ^9.0|^10.0|^11.0|^12.0
- illuminate/database: ^9.0|^10.0|^11.0|^12.0
- illuminate/http: ^9.0|^10.0|^11.0|^12.0
- illuminate/session: ^9.0|^10.0|^11.0|^12.0
- illuminate/support: ^9.0|^10.0|^11.0|^12.0
- illuminate/view: ^9.0|^10.0|^11.0|^12.0
Requires (Dev)
- phpunit/phpunit: ^9.0|^10.0|^11.0|^12.0
README
Make Laravel development faster, cleaner, and more productive. Laravel HelperBox ships 600+ high-quality helper functions across arrays, strings, dates, Blade, Eloquent/database, caching, HTTP/APIs, security, math/algorithms, data science, geo utilities, frontend optimizations, system monitoring, and more.
Built for modern Laravel (9–12), fully framework-native, no macros or monoliths — just handy, well-named functions you can drop into any project.
✨ Highlights
- 600+ unique helpers not in PHP or Laravel core
- Organized into focused categories in
src/Helpers
- Autoloaded via
HelperServiceProvider
— zero setup - Production-ready: caching, DB utilities, security, performance, analytics
📦 Installation
composer require subhashladumor/laravel-helperbox
Laravel auto-discovers the provider: Subhashladumor\LaravelHelperbox\HelperServiceProvider
.
⚡ Usage (quick taste)
// Arrays $flat = array_flatten_recursive([[1, [2]], 3]); // [1, 2, 3] // Strings $slug = str_slugify('Hello, Laravel HelperBox!'); // "hello-laravel-helperbox" // Cache $value = cache_with_jitter('dashboard:data', 300, 15, fn () => fetchExpensive()); // DB (detect N+1) $report = db_detect_n_plus_one(User::query(), ['posts', 'roles']); // HTTP $json = http_get_json('https://api.github.com');
See full category documentation in the docs below.
🗂 Categories (600+ helpers)
Each helper group lives in src/Helpers/<HelperFile>.php
. Explore documentation per category:
- ArrayHelpers
- StringHelpers
- MathHelpers
- BladeHelpers
- ModelDatabaseHelpers
- FilePathHelpers
- MemorySystemHelpers
- ControllerRepositoryHelpers
- DateTimeHelpers
- CacheSessionHelpers
- ApiHttpHelpers
- ValidationHelpers
- AdvancedAlgorithmHelpers
- AdvancedStringParsingHelpers
- AdvancedMathAlgorithmicHelpers
- AdvancedLaravelDatabaseHelpers
- JsStyleHelpers
- AdvancedCacheHelpers
- FileStreamingHelpers
- SystemMonitoringOptimizationHelpers
- SecurityAuthHelpers
- AdvancedDeveloperHelpers
- ThirdPartyApiHelpers
- SqlOptimizationHelpers
- DataScienceAnalyticsHelpers
- FrontendOptimizationHelpers
- GeoHelpers
Total helpers: 600+ (and growing)
📖 Documentation
All categories link to docs/<HelperFile>.md
. Each page includes:
- Overview and when to use
- Function index with signatures
- Usage examples and tips
If you prefer browsing code, see src/Helpers/
— every function is wrapped in function_exists
guards and can be called directly.
🛠 Contributing
Contributions are welcome! Fixes, docs, tests, and new helpers are appreciated.
- Fork and create a feature branch
- Add or update helpers in
src/Helpers/
- Include concise PHPDoc blocks and guard with
function_exists
- Add usage examples to the corresponding
docs/<HelperFile>.md
- Open a PR with a clear description
📄 License
MIT © Subhash Ladumor
Made with ❤️ for the Laravel community