modulespress/framework
Composer 安装命令:
composer require modulespress/framework
包简介
The core powering the modulespress framework.
关键字:
README 文档
README
ModulesPress is a modern WordPress plugin development framework that brings the power of TypeScript, React, and NestJS-style architecture to WordPress development.
🌟 Overview
ModulesPress supercharges your WordPress plugin development by introducing modern development practices and powerful features that make building complex plugins a breeze.
✨ Key Features
- 📂 PSR-4 Autoloader - All classes are loaded by default
- 🎯 Modern Architecture - NestJS-inspired modular design
- ⚡ Vite Integration - Bundling and hot reloading of assets
- 🎨 Blade Templates - Elegant templating with Laravel's Blade
- 🚀 TypeScript & React - First-class support for modern frontend
- 🛠️ PHP 8+ Attributes - Use decorators for clean, declarative code
- 🎭 Dependency Injection - Powerful IoC container
- 🔌 Plugin Framework - Built specifically for WordPress plugins
- 🔄 Hot Module Replacement - Instant feedback during development
📹 ModulesPress Video Guide
Discover how to get started with ModulesPress. This video walks you through installation, setup, and plugin packaging using the powerful ModulesPress framework and CLI.
🚀 Quick Start
Installation
composer global require modulespress/cli
Note: Make sure the composer global bin directory is in your PATH.
After installation, you can access the CLI using either modulespress or mp in your terminal.
Documentation
For comprehensive documentation and guides, visit our Official Documentation.
🎯 Framework Philosophy
ModulesPress is built on these core principles:
- Modern Development: Embrace contemporary development practices
- Developer Experience: Provide excellent tooling and debugging
- Type Safety: Leverage TypeScript and PHP 8+ features
- Performance: Optimize for production environments
- WordPress Integration: Seamless WordPress compatibility
📝 Example Usage
Here's a simple example of a ModulesPress plugin:
/** * Plugin Name: My Awesome Plugin * Description: Built with ModulesPress * Version: 1.0.0 */ use MyPlugin\Modules\RootModule\RootModule; use ModulesPress\Foundation\ModulesPressPlugin; if (!defined('ABSPATH')) exit; final class MyAwesomePlugin extends ModulesPressPlugin { public const NAME = "My ModulesPress Plugin"; public const SLUG = "my-modulespress-plugin"; public function __construct() { parent::__construct( rootModule: RootModule::class, rootDir: __DIR__, rootFile: __FILE__ ); } } (new MyAwesomePlugin())->bootstrap();
🤝 Contributing
We welcome contributions! Please feel free to submit a Pull Request.
📄 License
This project is licensed under the MIT License.
🌐 Community
Join our Discord community for support and discussions.
📚 Documentation
For detailed documentation, please visit our Wiki.
🤝 Support
If you need help or have questions:
- Open an issue
- Join our Discord community
🙏 Acknowledgments
Thanks to all our contributors and the open source community!
modulespress/framework 适用场景与选型建议
modulespress/framework 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 79 次下载、GitHub Stars 达 15, 最近一次更新时间为 2024 年 11 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「plugin」 「wordpress」 「modules」 「development」 「plugin development」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 modulespress/framework 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 modulespress/framework 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 modulespress/framework 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
CakePHP 4.x AdminLTE Theme.
Plugin for YOURLS. Default tools to use in some laemmi plugins
Must-use plugin integrating WordPress with the Upsun platform: environment awareness, router-cache friendliness, safe preview clones, deploy migrations, Site Health checks, and a wp upsun CLI command.
High-performance, opinionated PHP 8 web framework with O(1) routing, parallel async MySQL, type-safe asset bridge, and React-island frontend
Allows polling user for event dates and times.
统计信息
- 总下载量: 79
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 15
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-11-29