Download the PHP package larkframe/core without Composer
On this page you can find all versions of the php package larkframe/core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package core
LarkFrame Core
高性能 PHP 框架核心,支持 Server(常驻内存)、Web(PHP-FPM)、Shell(命令行)和 Task(自定义任务)四种运行模式。
特性
- 多运行模式 — Server 常驻内存 / Web FPM / Shell 命令行,一套代码多种部署;Task 常驻任务,独立运行自定义逻辑
- 高性能路由 — 基于 FastRoute,LRU 缓存路由回调
- 依赖注入 — PSR-11 容器,自动装配 + 单例绑定
- 数据库 ORM — 基于 Illuminate Database,支持多库切换、Eloquent Model
- Redis 缓存 — 连接池管理,支持多连接和数据库切换
- 队列系统 — 基于 Redis 的消息队列,支持延迟推送、失败重试
- 协程支持 — PHP Fiber 上下文隔离、连接池、内存通道
- 中间件 — 洋葱模型,支持全局/控制器/路由/注解四种注册方式
- 视图引擎 — 原生 PHP 和 Twig 双引擎
- 工具集 — 字符串、随机数、Base64、文件、图片、模拟数据等常用工具
环境要求
- PHP >= 8.1
- ext-json, ext-pdo
- 推荐:ext-redis, ext-event
安装
快速开始
入口文件
路由
控制器
中间件
核心模块
| 模块 | 类 | 文档 |
|---|---|---|
| 应用入口 | LarkFrame\App |
docs/app.md |
| 路由 | LarkFrame\Route |
docs/route.md |
| 请求 | LarkFrame\Request |
docs/request.md |
| 响应 | LarkFrame\Response |
docs/response.md |
| 容器 | LarkFrame\Container |
docs/container.md |
| 数据库 | LarkFrame\Db |
docs/database.md |
| 缓存 | LarkFrame\Cache\Cache |
docs/cache.md |
| Redis | LarkFrame\Cache\Redis |
docs/redis.md |
| 队列 | LarkFrame\Queue |
docs/queue.md |
| 中间件 | LarkFrame\Middleware |
docs/middleware.md |
| 配置 | LarkFrame\Config |
docs/config.md |
| 日志 | LarkFrame\Log |
docs/log.md |
| 视图 | LarkFrame\View\ViewVarHolder |
docs/view.md |
| 工具集 | LarkFrame\Util |
docs/util.md |
| 协程 | LarkFrame\Context / LarkFrame\Coroutine\Pool |
docs/coroutine.md |
| 任务 | LarkFrame\Worker / LarkFrame\Events\Select |
docs/task.md |
辅助函数
项目结构
License
MIT
All versions of core with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
ext-json Version *
ext-pdo Version *
illuminate/pagination Version ^10.48
illuminate/events Version ^10.48
symfony/var-dumper Version ^6.4
symfony/cache Version ^6.0 || ^7.0
psr/simple-cache Version ^3.0
illuminate/redis Version ^10.0 || ^11.0 || ^12.0
illuminate/database Version ^10.0 || ^11.0 || ^12.0
illuminate/http Version ^10.0 || ^11.0 || ^12.0
laravel/serializable-closure Version ^1.0 || ^2.0
monolog/monolog Version ^2.0
nikic/fast-route Version ^1.3
predis/predis Version ^3.0
twig/twig Version ^3.21
ext-json Version *
ext-pdo Version *
illuminate/pagination Version ^10.48
illuminate/events Version ^10.48
symfony/var-dumper Version ^6.4
symfony/cache Version ^6.0 || ^7.0
psr/simple-cache Version ^3.0
illuminate/redis Version ^10.0 || ^11.0 || ^12.0
illuminate/database Version ^10.0 || ^11.0 || ^12.0
illuminate/http Version ^10.0 || ^11.0 || ^12.0
laravel/serializable-closure Version ^1.0 || ^2.0
monolog/monolog Version ^2.0
nikic/fast-route Version ^1.3
predis/predis Version ^3.0
twig/twig Version ^3.21
The package larkframe/core contains the following files
Loading the files please wait ...