承接 xoops/xmf 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

xoops/xmf

Composer 安装命令:

composer require xoops/xmf

包简介

XMF - XOOPS Module Framework

README 文档

README


XOOPS
XMF — XOOPS Module Framework

The toolkit that makes XOOPS module development faster, safer, and more consistent.

CI Status Scrutinizer Packagist Version Downloads PHP Version License

Why XMF?

Building XOOPS modules means solving the same problems over and over: filtering input, managing sessions, handling permissions, generating meta tags, working with databases. XMF gives you battle-tested solutions for all of them so you can focus on what makes your module unique.

What you get Why it matters
Input & Security Request handling, input filtering, IP address validation Stop writing your own sanitization — use proven, audited code
Database Schema migrations, table management, bulk loading Evolve your database safely across module versions
Authentication JWT tokens, key management, secure storage Add token-based auth without pulling in heavyweight packages
Module Helpers Admin panels, permissions, sessions, caching Common module tasks reduced to one-liners
Content Tools Meta tag generation, SEO titles, YAML config, search summaries Improve SEO and content handling with zero effort
Identifiers ULID and UUID generation Generate unique, sortable identifiers out of the box
Developer Tools Debugging (Kint), YAML import/export, assertions Debug and inspect with a single call

Quick Start

composer require xoops/xmf
use Xmf\Request;
use Xmf\FilterInput;
use Xmf\Metagen;

// Safe input handling
$id = Request::getInt('id', 0, 'GET');
$name = Request::getString('name', '', 'POST');

// Generate SEO-friendly meta tags
Metagen::generateMetaTags($title, $body);

// Generate a ULID
$ulid = \Xmf\Ulid::generate();

Components

xmf/src/
  |
  |-- Request.php          HTTP request handling & input retrieval
  |-- FilterInput.php      Input sanitization & XSS prevention
  |-- IPAddress.php        IPv4/IPv6 validation & subnet checks
  |-- ProxyCheck.php       Proxy detection for real client IPs
  |
  |-- Database/
  |     |-- Tables.php     Schema definition & ALTER operations
  |     |-- Migrate.php    Module schema migrations
  |     +-- TableLoad.php  Bulk data import
  |
  |-- Jwt/
  |     |-- JsonWebToken   Create & decode signed JWT tokens
  |     |-- TokenFactory   Convenient token builder
  |     +-- TokenReader    Token verification & claim extraction
  |
  |-- Key/
  |     |-- Basic.php      Key pair generation
  |     |-- FileStorage    Persistent key storage (filesystem)
  |     +-- ArrayStorage   In-memory key storage (testing)
  |
  |-- Module/
  |     |-- Admin.php      Admin panel rendering & config display
  |     +-- Helper/
  |           |-- Permission   Group permission management
  |           |-- Session      Secure session read/write
  |           |-- Cache        Module-scoped caching
  |           +-- GenericHelper  Common helper utilities
  |
  |-- Metagen.php          Meta keywords, descriptions & SEO titles
  |-- Highlighter.php      Search term highlighting
  |-- StopWords.php        Keyword filtering (multi-language)
  |
  |-- Ulid.php             ULID generation (monotonic & standard)
  |-- Uuid.php             UUID v4 generation
  |-- Random.php           Cryptographically secure random bytes
  |
  |-- Yaml.php             YAML read/write with PHP-wrapped security
  |-- Language.php         Safe language file loading
  |-- Debug.php            Kint-powered variable inspection
  +-- Assert.php           Runtime assertion helpers

Requirements

Requirement Version
PHP 8.2+
XOOPS 2.5.x, 2.6.x, or 2.7.x
Composer Required

Key Dependencies

Installation

Via Composer (recommended):

composer require xoops/xmf

As part of XOOPS:

XMF is included in XOOPS 2.5.8+ as a core library. No separate installation needed.

Development

# Install dependencies
composer install

# Run tests
composer test

# Static analysis
composer analyse

# Code style check
composer lint

# Auto-fix code style
composer fix

# Run all CI checks
composer ci

# Regenerate PHPStan baseline
composer baseline

Contributing

Contributions are welcome! Please see our Contributing Guide for details.

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/my-feature)
  3. Make your changes and add tests
  4. Run composer ci to verify
  5. Submit a Pull Request

Links

License

XMF is licensed under the GPL-2.0-or-later.

Acknowledgments

JetBrains Logo

Thank you to JetBrains for supporting open-source development by providing free IDE licenses to this project.

Made with ❤️ by the XOOPS Project community

xoops/xmf 适用场景与选型建议

xoops/xmf 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7.51k 次下载、GitHub Stars 达 7, 最近一次更新时间为 2016 年 02 月 29 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「framework」 「module」 「xoops」 「xmf」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

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

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

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

  • 总下载量: 7.51k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 18
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 3
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2016-02-29