fluxoft/rebar-base
Composer 安装命令:
composer create-project fluxoft/rebar-base
包简介
A barebones starter project for app using the Rebar framework.
关键字:
README 文档
README
Rebar Base App is a barebones starter project for building applications with the Rebar framework. It provides a minimal implementation to help you quickly get started with Rebar, including basic routing, an example controller, and an optional SQLite-based example for managing data.
Features
- Minimal setup for building with Rebar.
- Example route (
/) and controller (Hello) to get started. - Optional SQLite database example with seed data.
- Easy extensibility for creating custom controllers, services, mappers, and models.
Folder Structure
rebar-base/
├── app/ # Bootstrapping and configuration scripts.
│ ├── bootstrap.php # Application bootstrap script.
│ ├── container.php # Dependency injection container.
│
├── src/ # PSR-4 namespace root for application logic.
│ ├── Controllers/ # Example controllers.
│ └── Models/ # Example models.
│
├── data/ # Example SQLite database (optional).
│ └── rebarbase.db # Example SQLite database file.
│
├── public/ # Publicly accessible directory.
│ └── index.php # Entry point for the application.
│
├── setup/ # Setup scripts for initializing the example project.
│ ├── seed.php # Script to seed the example SQLite database.
│ └── README.md # Instructions for using the setup scripts.
│
├── vendor/ # Composer-managed dependencies (auto-generated).
└── composer.json # Project dependencies and configuration.
Getting Started
Installation
To get started, you can create a new project using Composer:
composer create-project fluxoft/rebar-base my-app
Alternatively, you can clone this repository and install the dependencies:
git clone https://github.com/fluxoft/rebar-base.git my-app
cd my-app
composer install
Initial Setup
If you installed this project via Composer, the setup scripts (e.g., for seeding the example SQLite database) will run automatically.
For manual installations or additional details about the setup scripts, refer to setup/README.md.
Running the Application
You can serve the application locally using PHP's built-in server:
php -S localhost:8000 -t public
Visit http://localhost:8000 in your browser to see the example app in action.
Extending the App
The Rebar Base App is designed to be a starting point. You can extend it by adding:
- Controllers: Add custom controllers to handle new routes.
- Models and Mappers: Integrate your database logic.
- Services: Create reusable application services.
Refer to the Rebar documentation for guidance.
Cleanup
If you do not need the example project, you can delete the data/ and setup/ folders after installation.
Contributing
Contributions are welcome! Feel free to open issues or submit pull requests to improve the project.
License
This project is licensed under the MIT License. See the LICENSE file for details.
fluxoft/rebar-base 适用场景与选型建议
fluxoft/rebar-base 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「php」 「starter」 「rebar」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 fluxoft/rebar-base 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 fluxoft/rebar-base 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 fluxoft/rebar-base 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
Laravel Filament Starter.
Slim starter / Slim skeleton package to boost your development with Slim framework
Alfabank REST API integration
A Craft CMS scaffolding project
Nette project example for contributte/api-router library by @f3l1x and @paveljanda
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 12
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-01-04