PHPackages                             sau/wp-framework - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. sau/wp-framework

ActiveLibrary[Framework](/categories/framework)

sau/wp-framework
================

Framework for fast dev plugin and template

07PHP

Since Feb 8Pushed 7y agoCompare

[ Source](https://github.com/AkinaySau/wp-framework)[ Packagist](https://packagist.org/packages/sau/wp-framework)[ RSS](/packages/sau-wp-framework/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

WP framework
============

[](#wp-framework)

Small framework for dev plugin or templates in WP

In base use Symfony framework(bundle):

Install
-------

[](#install)

Framework mady install in plugin or template

First install pack:

```
composer require sau/wp-framework

```

### Plugin install

[](#plugin-install)

Add this code in base file framework

```
use Sau\WP\Framework\Install\Install;
use Sau\WP\Framework\Install\Remove;

include_once __DIR__.'/vendor/autoload.php';

register_activation_hook (__FILE__, function(){
    Install::install(__DIR__);
});
register_deactivation_hook (__FILE__, function(){
    Remove::deactivate(__DIR__);
});
```

### Theme install

[](#theme-install)

Add this code in function.php file framework

```
use Sau\WP\Framework\Install\Install;
use Sau\WP\Framework\Install\Remove;

include_once __DIR__.'/vendor/autoload.php';

add_action('after_switch_theme', function(){
    Install::install(__DIR__);
});
add_action('switch_theme', function(){
    Remove::deactivate(__DIR__);
});
```

### After Install

[](#after-install)

After install with activate plugin/theme. In project you see infrastructure

Start codding...

Extend
------

[](#extend)

Base extend it's [Bundle](https://symfony.com/doc/current/bundles.html)

If using base infrastructure use as symfony flex application

### Action

[](#action)

If need extent plugin use actions:

`do_action('before_boot_'.$name, $kernel);` - before kernel load

`do_action('after_boot_'.$name, $kernel);` - after get response object (load kernel)

`do_action('response_'.$name, $response);` - after get response object. Use for modify response in framework

`do_action('wp_response_'.$name, $response);` - after create WP response (if route not found)

**!!!** Kernel load in action ***after\_setup\_theme*** in priority 99.

Use in wp template
------------------

[](#use-in-wp-template)

If you need use kernel in your code:

```
global $sau_kernels;
//___name___ its name plugin/template
$sau_kernels[ '___name___' ]->getContainer()
                           ->get('twig')
                           ->display('index.html.twig');
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/aebf20696c0962e374ef4d391c179f1ea6c20cf9d4107216ff578bf05ca15b9a?d=identicon)[Sau](/maintainers/Sau)

---

Top Contributors

[![AkinaySau](https://avatars.githubusercontent.com/u/28915095?v=4)](https://github.com/AkinaySau "AkinaySau (21 commits)")

### Embed Badge

![Health badge](/badges/sau-wp-framework/health.svg)

```
[![Health](https://phpackages.com/badges/sau-wp-framework/health.svg)](https://phpackages.com/packages/sau-wp-framework)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
