backto/framework

There is no license information available for the latest version (4.0.0.x-dev) of this package.

Maintainers

Package info

github.com/BackToStudio/Framework

pkg:composer/backto/framework

Statistics

Installs: 859

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

4.0.0.x-dev 2026-03-25 07:29 UTC

README

A structured, modular WordPress framework powered by Symfony Dependency Injection.

BackTo Framework brings Clean Architecture, DDD patterns, and a compiled service container to WordPress theme and plugin development.

Installation

composer require backto/framework

Requirements: PHP 8.1+

Quick Start

// functions.php (theme) or plugin.php (plugin)
require_once __DIR__ . '/vendor/autoload.php';

$kernel = new MyTheme\Kernel('production', false);
$kernel->setTextDomain('my-theme');
$kernel->load();
// src/Kernel.php
namespace MyTheme;

use BackTo\Framework\Theme\ThemeKernel;

class Kernel extends ThemeKernel {}

See the Build a Theme tutorial for a complete walkthrough.

Documentation

The documentation follows the Diataxis framework:

Section Purpose
Tutorials Step-by-step lessons to get started
How-to Guides Practical guides for specific tasks
Reference Technical descriptions of modules and contracts
Explanation Design decisions and architectural concepts

Tutorials

How-to Guides

Reference

Explanation

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.