Giter Club home page Giter Club logo

hybrid-core's Introduction

Hybrid Core: WordPress Theme Framework

Hybrid Core is a framework for developing WordPress themes.

It is a package that simplifies some of the complexities of theme development and helps you write more modern PHP code. Its goal is to provide elegant functions, classes, and interfaces for writing code without having to rebuild everything from scratch for each theme.

Requirements

  • WordPress 4.9.6+.
  • PHP 5.6+ (7.0+ recommended).
  • Composer for managing PHP dependencies.

The framework is coded to work on PHP 5.6+, but only 7.0+ is officially supported.

To ease developers into Composer, version 5.0 is a standalone package with no dependencies. Therefore, theme authors can still drop this directly into their theme and use a custom class autoloader. However, no such guarantee exists for future versions.

Purchase or donate

Hybrid Core is free. However, I ask that you purchase a support membership at Theme Hybrid. Even if you don't need support, every purchase helps fund the development of this project.

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 justintadlock/hybrid-core

If bundling this directly in your theme, you'll need to add the following code to your functions.php to autoload the project (and any other dependencies).

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 booted, which should look something like the following.

// Create a new application.
$themeslug = new \Hybrid\Core\Application();

// Add service providers, bindings, etc.

// Bootstrap the application.
$themeslug->boot();

Check out the officially-supported Mythic starter theme for example code or as a good starting point for your HC-based project.

Copyright and License

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

2008 – 2019 © Justin Tadlock.

hybrid-core's People

Contributors

justintadlock avatar m-e-h avatar nextgenthemes avatar oakwoodgates avatar rarst avatar riyaku avatar robneu avatar samikeijonen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.