hieu-le/active
最新稳定版本:9.0.0
Composer 安装命令:
composer require hieu-le/active
包简介
The helper class for Laravel applications to get active class base on current route
README 文档
README
Caution
This repository is not maintained any more. Please feel free to fork it and make it compatible to new versions of Laravel.
The helper class for Laravel applications to get active class base on current url.
Since version 7.0, the major version of this library will match the major version of Laravel.
| Laravel version | Active library version |
|---|---|
| >= 7.x | >= 7.x |
| 6.x | 4.x |
| 5.x | 3.x |
| 4.x | 1.x |
Installation
Require this package as your dependencies:
composer require hieu-le/active
If you are using Laravel 5.5+, you do not need to manually register the ServiceProvider and Alias.
Append this line to your providers array in config/app.php
HieuLe\Active\ActiveServiceProvider::class,
Append this line to your aliases array in config/app.php
'Active' => HieuLe\Active\Facades\Active::class,
Usage
See: How to use Active
Changelog:
- v7.0: support Laravel 7 and start using the same marjor version with Laravel
- v4.0: support Laravel 6 and PHPUnit 8
- v3.5: support Laravel 5.5.x and PHPUnit 6
- v3.4: support Laravel 5.4.x
- v3.3: support Laravel 5.3.x
- v3.2: allows first parameter of
if_*functions to be string or array - v3.1: support both Laravel 5.2.x and 5.1.x
- v3.0: new API
hieu-le/active 适用场景与选型建议
hieu-le/active 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.51M 次下载、GitHub Stars 达 414, 最近一次更新时间为 2026 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「routing」 「laravel」 「active」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 hieu-le/active 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 hieu-le/active 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 hieu-le/active 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Propel2 is an open-source Object-Relational Mapping (ORM) for PHP 5.5 and up.
A Symfony extension to get active class base on current bundle/controller/action
LDAP user provider bundle for Symfony 6.4
The helper class for Laravel applications to get active class base on current route for Laravel 11
Write down your routing mapping at one place
Anax Database Active Record module for model classes.
统计信息
- 总下载量: 1.51M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 429
- 点击次数: 22
- 依赖项目数: 22
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04