定制 justintadlock/hybrid-core 二次开发

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

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

justintadlock/hybrid-core

最新稳定版本:7.0.4

Composer 安装命令:

composer require justintadlock/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

  • WordPress 6.1+
  • PHP 8.0+
  • 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

Join Slack Community

Copyright and License

This project is licensed under the GNU GPL, version 2 or later.

Hybrid Core uses code from Laravel Framework. The Laravel framework is open-sourced software licensed under the MIT license. License: MIT - https://opensource.org/licenses/MIT

2008 – 2024 © Theme Hybrid.

统计信息

  • 总下载量: 17.93k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 687
  • 点击次数: 1
  • 依赖项目数: 6
  • 推荐数: 0

GitHub 信息

  • Stars: 687
  • Watchers: 60
  • Forks: 141
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2014-07-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固