globus-studio/fatfree-core
Composer 安装命令:
composer require globus-studio/fatfree-core
包简介
A powerful yet easy-to-use PHP micro-framework designed to help you build dynamic and robust Web applications - fast!
README 文档
README
Fork of Fat-Free Framework core, kept compatible with PHP 8.x including 8.5.
For the upstream vanilla version use bcosca/fatfree-core.
Differences from upstream
PHP 8.5 compatibility
| Change | Reason |
|---|---|
Preview::c(): dropped setlocale(LC_NUMERIC, 0) |
PHP 8 made int second arg a TypeError. PHP 8 path is locale-independent; PHP 7 fallback uses string '0'. |
Web::_curl(): version check for CURLOPT_PROTOCOLS |
libcurl 7.85+ deprecated CURLPROTO_* masks. Uses CURLOPT_PROTOCOLS_STR when available, falls back otherwise. |
Removed web/pingback.php |
Depended on xmlrpc_* functions removed in PHP 8.0+. The xmlrpc extension is no longer maintained. |
Removed cache backends xcache, wincache, memcache |
All dead on modern PHP. Remaining: apc/apcu, memcached, redis, folder. |
Tests
- tests/ with PHPUnit 11, split into
unitandintegration. - DSNs configured via
<env>in phpunit.xml. - MySQL, PostgreSQL, MongoDB, SQLite covered. Integration tests skip cleanly if a service is unreachable.
- Tests excluded from production autoload via
exclude-from-classmap, loaded via PSR-4Tests\\.
Dependencies
- Minimum PHP raised from 7.2 to 7.4.
mongodb/mongodb ^2.2added torequire-devfor\DB\Mongo(usesMongoDB\Client).
Backward compatibility
Public API unchanged. Application code keeps working.
Install
composer require globus-studio/fatfree-core
require 'vendor/autoload.php'; $f3 = \Base::instance();
Without Composer:
$f3 = require 'lib/base.php';
URL rewrite required, see routing-engine.
Run tests
composer install vendor/bin/phpunit vendor/bin/phpunit --testsuite unit vendor/bin/phpunit --testsuite integration
DB connection vars: DB_MYSQL_DSN, DB_MYSQL_USER, DB_MYSQL_PASS, DB_MYSQL_NAME, same prefix for DB_PGSQL_*, plus DB_MONGO_URI and DB_MONGO_NAME.
Built on this core
Atomic Framework is a full-featured PHP framework built on top of this core. It adds a structured application layer with: authentication (bcrypt, OAuth 2.0, Telegram, rate limiting, impersonation), MySQL/Redis/Memcached via ConnectionManager, timestamp-based migrations, Redis/DB queue with retry and monitoring, POSIX cron scheduler, multi-driver cache with cascade fallback, parameterized middleware, hierarchical event dispatcher, WordPress-compatible hook/filter layer, SMTP mailer with DNS deliverability scoring, i18n with URL prefixing, 45+ CLI commands, NaCl/libsodium encryption, WebSocket server (Workerman + Redis pub/sub), and a plugin lifecycle system. Requires PHP >= 8.1.
Atomic-Framework-Application is the official application skeleton/template for Atomic Framework.
Links
- Upstream demo: https://github.com/bcosca/fatfree
- User Guide: https://fatfreeframework.com/user-guide
- API Reference: https://fatfreeframework.com/api-reference
- License: GPL-3.0, see COPYING
globus-studio/fatfree-core 适用场景与选型建议
globus-studio/fatfree-core 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 96 次下载、GitHub Stars 达 31, 最近一次更新时间为 2026 年 04 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 globus-studio/fatfree-core 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 globus-studio/fatfree-core 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 96
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 32
- 点击次数: 27
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2026-04-08