2017 © Pedro Peláez
 

library hybrid-core

Hybrid Core WordPress theme framework

image

justintadlock/hybrid-core

Hybrid Core WordPress theme framework

  • Sunday, July 29, 2018
  • by justintadlock
  • Repository
  • 66 Watchers
  • 590 Stars
  • 6,958 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 151 Forks
  • 4 Open issues
  • 15 Versions
  • 4 % Grown

The README.md

Hybrid Core: WordPress Framework

Hybrid Core is a framework for developing WordPress plugins and themes., (*1)

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., (*2)

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., (*3)

Requirements

  • WordPress 6.1+
  • PHP 8.0+
  • Composer 2.0+

Donations

Hybrid Core is free. However, donations to the project are also welcome., (*4)

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., (*5)

Installation

Use the following command from your preferred command line utility to install the package., (*6)

composer require themehybrid/hybrid-core

If bundling this directly in your plugin, add the following code., (*7)

For plugins:, (*8)

if ( file_exists( 'vendor/autoload.php' ) ) {
        require_once 'vendor/autoload.php';
}

For themes:, (*9)

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., (*10)

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., (*11)

// 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, (*12)

This project is licensed under the GNU GPL, version 2 or later., (*13)

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, (*14)

2008 – 2024 © Theme Hybrid., (*15)

The Versions

29/07 2018

5.0.x-dev

5.0.9999999.9999999-dev https://themehybrid.com/hybrid-core

Hybrid Core WordPress theme framework

  Sources   Download

GPL-2.0+ GPL-2.0-or-later

The Requires

  • php >=5.6

 

wordpress

01/08 2017

dev-master

9999999-dev https://themehybrid.com/hybrid-core

Hybrid Core WordPress theme framework

  Sources   Download

GPL-2.0+

wordpress

01/08 2017

dev-dev

dev-dev https://themehybrid.com/hybrid-core

Hybrid Core WordPress theme framework

  Sources   Download

GPL-2.0+

wordpress

01/08 2017

4.0.x-dev

4.0.9999999.9999999-dev https://themehybrid.com/hybrid-core

Hybrid Core WordPress theme framework

  Sources   Download

GPL-2.0+

wordpress

01/08 2017

4.0.0

4.0.0.0 https://themehybrid.com/hybrid-core

Hybrid Core WordPress theme framework

  Sources   Download

GPL-2.0+

wordpress

15/05 2016

3.1.x-dev

3.1.9999999.9999999-dev http://themehybrid.com/hybrid-core

Hybrid Core WordPress theme framework

  Sources   Download

GPL-2.0+

wordpress

28/10 2015

3.0.x-dev

3.0.9999999.9999999-dev http://themehybrid.com/hybrid-core

Hybrid Core WordPress theme framework

  Sources   Download

GPL-2.0+

wordpress

17/08 2015

3.0.0

3.0.0.0 http://themehybrid.com/hybrid-core

Hybrid Core WordPress theme framework

  Sources   Download

GPL-2.0+

wordpress

01/07 2015

2.0.x-dev

2.0.9999999.9999999-dev http://themehybrid.com/hybrid-core

Hybrid Core WordPress theme framework

  Sources   Download

GPL-2.0+

wordpress

14/02 2015

2.1.x-dev

2.1.9999999.9999999-dev http://themehybrid.com/hybrid-core

Hybrid Core WordPress theme framework

  Sources   Download

GPL-2.0+

wordpress

12/12 2014

2.0.4

2.0.4.0 http://themehybrid.com/hybrid-core

Hybrid Core WordPress theme framework

  Sources   Download

GPL-2.0+

wordpress

21/10 2014

2.0.3

2.0.3.0 http://themehybrid.com/hybrid-core

Hybrid Core WordPress theme framework

  Sources   Download

GPL-2.0+

wordpress

12/08 2014

2.0.2

2.0.2.0 http://themehybrid.com/hybrid-core

Hybrid Core WordPress theme framework

  Sources   Download

GPL-2.0+

wordpress

24/07 2014

2.0.1

2.0.1.0 http://themehybrid.com/hybrid-core

Hybrid Core WordPress theme framework

  Sources   Download

GPL-2.0+

wordpress

14/07 2014

2.0.0

2.0.0.0 http://themehybrid.com/hybrid-core

Hybrid Core WordPress theme framework

  Sources   Download

GPL-2.0+

wordpress