bjitgroup/reusable-lib-laravel
Composer 安装命令:
composer require bjitgroup/reusable-lib-laravel
包简介
A BJIT Reusable Laravel Package
关键字:
README 文档
README
Overview
The BJIT Reusable Library Package is a lightweight and modular Laravel package designed to provide reusable components and features to streamline development.
Features
- 🔥 Boilerplate Structure
- 🔐 Auth Module
- 🏗 Sample Module
- 🎛 Permissions & Roles Management
- 📝 Blog Module
- 📁 Centralized File Handling
- 🔔 Notifications (Email, Database, Push)
Installation
Requirements
- Laravel v8+ (Latest Supported)
- PHP with
execfunction enabled - Composer v2+ (Recommended)
Step 1: Install Laravel
composer create-project laravel/laravel rl-demo
Step 2: Install the Reusable Library
cd rl-demo # Navigate to the project root composer require bjitgroup/reusable-lib-laravel
Version Compatibility
| Laravel Version | Package Version | Installation Command |
|---|---|---|
| 11.x | Latest | composer require bjitgroup/reusable-lib-laravel |
| 9.x - 10.x | 2.x | composer require bjitgroup/reusable-lib-laravel:2.* |
| 8.x | 1.x | composer require bjitgroup/reusable-lib-laravel:1.* |
- Laravel 11.x : Use
composer require bjitgroup/reusable-lib-laravel - Laravel 9.x to 10.x : Use
composer require bjitgroup/reusable-lib-laravel:2.* - Laravel 8.x : Use
composer require bjitgroup/reusable-lib-laravel:1.*
Step 3: Configure the .env File
Ensure the correct database connection and APP_URL settings:
APP_URL=http://localhost:8000
Step 4: Install the Reusable Library
php artisan bjit:reusable-lib-install
Step 5: Serve the Application
php artisan serve
Push Notification Setup
For Laravel 11.x (Reverb)
php artisan reverb:start
For Laravel 8.x - 10.x (Websockets)
php artisan websocket:serve
For Queue Processing
php artisan queue:work
Client-Side Configuration
- Configure the client application with Key, Host, and Port.
- Build the frontend application:
npm run build
API Documentation (Swagger)
Access the API documentation by opening your browser and navigating to:
http://localhost:8000/api/documentation
File Structure
The package follows a modular structure:
- Route - Configure API routes.
- Controller - Handle requests and responses.
- Request - Form validation logic.
- Service - Business logic handling.
- Repository - Database operations (CRUD).
- Resource - API response formatting.
Generate Module Files
php artisan bjit-make:model Products/Item -m --all
Options:
-m→ Create migration-s→ Create seed file-f→ Create factory
You can also use -mfs --all at the end of the command to generate a migration, seed, and factory simultaneously.
Generate Service or Repository
php artisan bjit-make:service Products/ProductBrand php artisan bjit-make:repository Products/ProductBrand
Remove a Module
php artisan bjit-remove:all Products/Item
Uninstall Reusable Library
php artisan bjit:reusable-lib-remove
License
This package is open-source software licensed under the MIT License.
bjitgroup/reusable-lib-laravel 适用场景与选型建议
bjitgroup/reusable-lib-laravel 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 494 次下载、GitHub Stars 达 5, 最近一次更新时间为 2021 年 10 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「api」 「crossdomain」 「laravel boilerplate」 「bjit」 「bjitgroup」 「reusable library」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 bjitgroup/reusable-lib-laravel 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 bjitgroup/reusable-lib-laravel 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 bjitgroup/reusable-lib-laravel 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A PSR-7 compatible library for making CRUD API endpoints
Alfabank REST API integration
Adds CORS (Cross-Origin Resource Sharing) headers support in your Laravel application
Adds CORS (Cross-Origin Resource Sharing) headers support in your Laravel application
Adds CORS (Cross-Origin Resource Sharing) headers support in your Laravel application
Share login through different laravel apps
统计信息
- 总下载量: 494
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-10-05