themehybrid/hybrid-core
Composer 安装命令:
composer require themehybrid/hybrid-core
包简介
Hybrid Core: A framework for developing modern WordPress plugins and themes.
关键字:
README 文档
README
Hybrid Core is a framework for developing WordPress plugins and themes.
The core package is the application layer that primarily consists of a service container. It can be used alone or alongside any of the available Hybrid packages.
The framework simplifies many of the complexities of WordPress development and helps you write more modern PHP code. Its goal is to provide elegant functions, classes, and interfaces for writing code without the need to rebuild everything from scratch with each project.
Requirements
- PHP 8.2+
- Composer 2.0+
Donations
Hybrid Core is free. However, donations to the project are also welcome.
Documentation
The documentation is handled via Hybrid Core's wiki. This is community-contributed documentation that I hope you will add to if you use the framework.
Installation
Use the following command from your preferred command line utility to install the package.
composer require themehybrid/hybrid-core
If bundling this directly in your plugin, add the following code.
For plugins:
if ( file_exists( 'vendor/autoload.php' ) ) { require_once 'vendor/autoload.php'; }
For themes:
if ( file_exists( get_parent_theme_file_path( 'vendor/autoload.php' ) ) ) { require_once( get_parent_theme_file_path( 'vendor/autoload.php' ) ); }
Bootstrapping Hybrid Core
Hybrid Core isn't launched until an instance of its Hybrid\Core\Application class is created and its boot() method has been called.
Because the Application class can be called multiple times via both plugins and themes, developers need to check the Hybrid\booted() function before attempting to create a new app. If one exists, they should use the existing instance via the Hybrid\app() helper function.
// Create a new application. $slug = \Hybrid\booted() ? \Hybrid\app() : new \Hybrid\Core\Application(); // Add service providers. $slug->provider( \YourProject\Provider::class ); // Bootstrap the application. $slug->boot();
Resources
Copyright and License
This project is licensed under the GNU GPL, version 2 or later.
2008 – 2026 © Theme Hybrid.
Third-Party Licenses
Hybrid Core utilizes code from the illuminate/* package(s).
Repositories:
https://github.com/illuminate/*
License: MIT License - https://opensource.org/licenses/MIT
Copyright (c) Taylor Otwell
themehybrid/hybrid-core 适用场景与选型建议
themehybrid/hybrid-core 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.27k 次下载、GitHub Stars 达 688, 最近一次更新时间为 2021 年 06 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「wordpress」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 themehybrid/hybrid-core 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 themehybrid/hybrid-core 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 themehybrid/hybrid-core 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
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.
Inertia.js server-side adapter for PHP. Handles full visits, Inertia XHR visits, asset-version 409 handshakes and partial reloads. Framework-agnostic, with transparent WordPress integration.
Adds Cache-Tag HTTP response headers for singular WordPress content and purges Cloudflare by tag when content changes.
AI Chatbot & Helpdesk Agent for WooCommerce. Connects your store to Egentify for AI-powered chat, order tracking, email, and ticketing.
MIDDAG's reference architecture for a WordPress plugin — composes the OSS framework/wordpress/ui libraries end to end.
Assets helper package for the Hybrid Core framework.
统计信息
- 总下载量: 1.27k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 688
- 点击次数: 14
- 依赖项目数: 13
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2021-06-23