modufolio/appkit 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

modufolio/appkit

Composer 安装命令:

composer require modufolio/appkit

包简介

A lean PHP framework built on Symfony components and Doctrine ORM, with hand-wired DI, attribute routing, and first-class Inertia.js support

README 文档

README

A small, hand-wired PHP application kernel built on Symfony components, Doctrine ORM, Firebase JWT, and a strict-typed PSR-7 fork. Designed for security-conscious SaaS applications that want Symfony-grade components without Symfony's full kernel, bundle system, and compile step.

Why it exists

  • Slim is too thin. No Doctrine, no validation, no security primitives — the consumer wires everything.
  • Symfony is too heavy. A compiled DI container, an event dispatcher, bundles, MakerBundle, recipes. Excellent for large apps; more than most SaaS workloads need.
  • Laravel is opinionated and non-Symfony. Facades, ActiveRecord, and a separate ecosystem.
  • Appkit sits in between. Symfony components plus Doctrine plus a thin abstract kernel, with a hand-compiled container so the file you read is the resolution path that runs.

What it solves

  • Fast boot. No DI compile step, no cache invalidation. Config files are loaded with require; OPcache handles the rest.
  • Transparent control flow. No event dispatcher by design. Reading handleAuthentication() top-to-bottom shows exactly what runs.
  • RoadRunner-aware. Every stateful service implements ResetInterface; the kernel rebuilds ApplicationState per request.
  • Security hardening already wired. CSRF rotation on login, session-fixation defence, token unserialize allowlist, password timing-parity dummy, brute-force protection, generic 401 responses.
  • Strict typing. PHP 8.2+, declare(strict_types=1) throughout. The bundled PSR-7 implementation is a strict-typed fork of nyholm/psr7.

Quick start

composer create-project modufolio/appkit-skeleton my-app
cd my-app
composer start

The skeleton lives in its own repository: modufolio/appkit-skeleton.

A minimal controller

<?php

declare(strict_types=1);

namespace App\Controller;

use Modufolio\Appkit\Core\AbstractController;
use Modufolio\Psr7\Http\Response;
use Psr\Http\Message\ResponseInterface;
use Symfony\Component\Routing\Attribute\Route;

final class HelloController extends AbstractController
{
    #[Route('/hello/{name}', methods: ['GET'])]
    public function show(string $name): ResponseInterface
    {
        return Response::json(['message' => "Hello, {$name}"]);
    }
}

Documentation

Full guides under docs/:

  • Getting started — install, configure, and run your first app
  • Kernel — request lifecycle, service container, boot
  • Routing — routes, parameters, access control
  • Controllers — controllers and parameter attributes
  • Dependency injection — wiring services with config files
  • Templates — layouts, snippets, sections, asset helpers
  • Security — firewalls, access control, CSRF, roles
  • Authenticators — form login, JWT, OAuth 2.1, 2FA, brute-force
  • Database — Doctrine ORM, QueryBuilder, pagination, soft delete
  • Forms — validation, ValidationResult, payload mapping
  • Exception handling — turning exceptions into HTTP responses
  • File uploads — validating and storing uploaded files
  • Image processing — Darkroom, Dimensions, DiskManager
  • Console — built-in commands, make:entity, writing your own
  • Toolkit — array, file, string, and directory utilities
  • Testing — PHPUnit, EntityFactory, static analysis
  • Deployment — Nginx/Caddy, permissions, RoadRunner, databases
  • Configuration — environment variables and config reference

Start with the introduction for the architecture overview and the design philosophy the rest of the documentation assumes.

Requirements

  • PHP 8.2 or later
  • Composer
  • Extensions: curl, dom, exif, fileinfo, gd, intl, libxml, pdo, simplexml, sqlite3, zip

See composer.json for the canonical dependency list.

License

MIT. See LICENSE.

modufolio/appkit 适用场景与选型建议

modufolio/appkit 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 66 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 02 月 03 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 modufolio/appkit 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 modufolio/appkit 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-03