定制 subhashladumor/laravel-helperbox 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

subhashladumor/laravel-helperbox

最新稳定版本:1.0.2

Composer 安装命令:

composer require 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.

README 文档

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:

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.

  1. Fork and create a feature branch
  2. Add or update helpers in src/Helpers/
  3. Include concise PHPDoc blocks and guard with function_exists
  4. Add usage examples to the corresponding docs/<HelperFile>.md
  5. Open a PR with a clear description

📄 License

MIT © Subhash Ladumor

Made with ❤️ for the Laravel community

统计信息

  • 总下载量: 14
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 18
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 18
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-05