michel/michel-core
Composer 安装命令:
composer require michel/michel-core
包简介
The super-lightweight, versatile, and modern PHP engine. No bloat, no YAML, no XML. Just clean, raw PHP power!
README 文档
README
The super-lightweight, versatile, and modern PHP engine. No bloat, no YAML, no XML. Just clean, raw PHP power!
🤔 Why Michel PHP?
Modern frameworks are awesome, but they often come with heavy overhead and complex configuration layers. Michel PHP takes a different path:
- Raw Speed: No config parsing (YAML/XML) on every request. Everything is written in pure PHP, making boot time lightning fast.
- Modular Architecture: Swap out the router, template engine, or DI container by changing a single closure. It's built entirely on PSR interfaces.
- KISS Principle: Minimalist, clean, and immediately readable code. No black magic under the hood.
🌟 Core Features
- ⚡ Fully PSR-Compliant: Built on top of PSR-7 (HTTP), PSR-11 (DI Container), PSR-14 (Events), PSR-15 (Middleware), and PSR-3 (Logging).
- 🛠️ Developer-Centric: Automatic route discovery, CLI command scanner, and an interactive project initializer.
- 🔒 Secure out-of-the-box: Easy maintenance mode toggling, HTTPS redirection, and IP restriction middlewares.
- 🎨 Minimal & KISS: Designed to get out of your way. Only use the components you actually need.
🚀 Quickstart in 1-2-3
1. Grab the Package
composer require michel/michel-core
2. Boot the Kernel (public/index.php)
<?php
require_once __DIR__ . '/../vendor/autoload.php';
$kernel = new App\Kernel();
$response = $kernel->handle(create_request());
send_http_response($response);
3. Initialize your project wizard
php bin/michel project:init
🛠️ The Global Helpers Playground
We expose simple global helpers to make coding enjoyable again:
// 📦 Grab services from the Container
$db = container()->get(Database::class);
// 🌐 Create quick HTTP responses
return response('<h1>Hello World!</h1>', 200);
// 🤖 Build JSON API responses in a snap
return json_response(['status' => 'success', 'data' => $users]);
// 🎨 Render templates instantly
return render('welcome.html.plate', ['username' => 'Michel']);
Made with ❤ in Paris. Happy coding!
michel/michel-core 适用场景与选型建议
michel/michel-core 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 12 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 michel/michel-core 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 michel/michel-core 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 20
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MPL-2.0
- 更新时间: 2025-12-16