Download the PHP package toohamster/fleaphp-ex without Composer
On this page you can find all versions of the php package toohamster/fleaphp-ex. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download toohamster/fleaphp-ex
More information about toohamster/fleaphp-ex
Files in toohamster/fleaphp-ex
Download toohamster/fleaphp-ex
More information about toohamster/fleaphp-ex
Files in toohamster/fleaphp-ex
Vendor toohamster
Package fleaphp-ex
Short Description FLEA - Lightweight PHP MVC Framework with PSR compliance, RESTful routing, middleware pipeline, JWT authentication, and RBAC support
License MIT
Package fleaphp-ex
Short Description FLEA - Lightweight PHP MVC Framework with PSR compliance, RESTful routing, middleware pipeline, JWT authentication, and RBAC support
License MIT
Please rate this library. Is it a good library?
Informations about the package fleaphp-ex
FleaPHP v2.3
轻量级 PHP MVC 框架,采用 PSR 标准,支持 Router、Middleware、JWT 认证、Context 上下文和响应门面模式。
特性
- PSR 标准:PSR-11 容器、PSR-16 缓存、PSR-3 日志
- MVC 架构:清晰的模型 - 视图 - 控制器分离
- 路由器:RESTful 路由、路由分组、命名路由
- 中间件:洋葱模型管道,支持 CORS/认证/限流
- 响应门面:
Response::current()单例入口,对标Request::current() - JWT 认证:HS256 签名,支持 Token 刷新
- Context 上下文:可插拔的状态管理(Session/Redis/File/Database)
- TableDataGateway:简洁的数据库 CRUD 和关联查询
- RBAC/ACL:基于角色的权限控制和访问控制列表
快速开始
方式一:通过 Composer 安装
方式二:克隆项目
安装依赖
3. 配置环境变量
4. 初始化数据库
5. 启动开发服务器
目录结构
核心组件
| 组件 | 标准 | 说明 |
|---|---|---|
FLEA\Container |
PSR-11 | 依赖注入容器 |
FLEA\Cache |
PSR-16 | 缓存门面(FileCache/RedisCache) |
FLEA\Log |
PSR-3 | 日志服务 |
FLEA\Database |
- | 数据库连接池 |
FLEA\Config |
- | 配置管理(单例) |
FLEA\Context |
- | 请求上下文(新增) |
FLEA\Router |
- | HTTP 路由器(新增) |
FLEA\Middleware |
- | 中间件管道(新增) |
基础用法
路由定义
中间件
Context 上下文
JWT 认证
配置说明
数据库配置(.env)
Context 配置
JWT 配置
环境要求
- PHP: 7.4+
- Composer: 依赖管理
- 数据库: MySQL 5.0+ 或 PDO 支持的其他数据库
文档
| 文档 | 说明 |
|---|---|
| SPEC.md | 框架规格说明书 |
| USER_GUIDE.md | 用户手册 |
| demo/APP_USAGE_GUIDE.md | 博客应用使用手册 |
| demo/BLOG_SETUP.md | 博客安装指南 |
| CHANGES.md | 框架修改记录 |
许可证
本项目采用 MIT 许可证 开源。
注意:框架代码采用 MIT 许可,但 docs-book/ 目录下的图书项目版权归作者所有,未经许可不得用于商业出版。
作者
FleaPHP 框架团队
All versions of fleaphp-ex with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
psr/log Version ^1.0
psr/container Version ^2.0
psr/simple-cache Version ^1.0
vlucas/phpdotenv Version ^5.5
psr/log Version ^1.0
psr/container Version ^2.0
psr/simple-cache Version ^1.0
vlucas/phpdotenv Version ^5.5
The package toohamster/fleaphp-ex contains the following files
Loading the files please wait ...