定制 globus-studio/fatfree-core 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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 unit and integration.
  • 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-4 Tests\\.

Dependencies

  • Minimum PHP raised from 7.2 to 7.4.
  • mongodb/mongodb ^2.2 added to require-dev for \DB\Mongo (uses MongoDB\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

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 我们能提供哪些服务?
定制开发 / 二次开发

基于 globus-studio/fatfree-core 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 96
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 32
  • 点击次数: 27
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 31
  • Watchers: 15
  • Forks: 94
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2026-04-08