PHPackages                             rogierkn/pages-for-wp - 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. rogierkn/pages-for-wp

ActiveLibrary[Framework](/categories/framework)

rogierkn/pages-for-wp
=====================

A bootstrap for developing plugins for wordpress in a structured way

031PHP

Since Jul 29Pushed 9y ago1 watchersCompare

[ Source](https://github.com/rogierkn/pages-for-wordpress)[ Packagist](https://packagist.org/packages/rogierkn/pages-for-wp)[ RSS](/packages/rogierkn-pages-for-wp/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Pages for Wordpress

Easily bootstrap your new Wordpress plugin.

In your plugin.php

```
use Rogierkn\PagesForWp\App;
use Rogierkn\PagesForWp\DatabaseConnection;

// Or any other PDO object
$databaseConnection = DatabaseConnection::getInstance('localhost', 'wordpress', 'user', 'strongPassword');

$app = new App($databaseConnection);

$app->pages->register([
    ExamplePage::class
]);

$app->setViewsFolder(__DIR__ . '/views/');
$app->run();
```

ExamplePage.php

```
use Rogierkn\PagesForWp\Pages\Page;

class ExamplePage extends Page
{
    /**
    * The wordpress event to bind to
    */
    public function event()
    {
        return 'admin_menu';
    }

    /**
    * Called when the above event occurs
    * This example binds to the options page
    */
    public function register()
    {
        // Any related wordpress function can be used for this
        return function () {
            add_options_page('Page Title', 'Menu Title', 'capability', "slug", $this->handle());
        };
    }

    /**
    * Handle your Page's actions in here
    * You have access to the $request and $db in here
    */
    public function handle()
    {
        return $this->render('superView.html.twig', ["name" => "John Doe"]);
    }
}
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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/bfa9bd1582adf7e851fa7ffec49fb76ff3abad21c61b71e31b1efedc399bf418?d=identicon)[Rogierkn](/maintainers/Rogierkn)

---

Top Contributors

[![rogierknoester](https://avatars.githubusercontent.com/u/4541046?v=4)](https://github.com/rogierknoester "rogierknoester (3 commits)")

### Embed Badge

![Health badge](/badges/rogierkn-pages-for-wp/health.svg)

```
[![Health](https://phpackages.com/badges/rogierkn-pages-for-wp/health.svg)](https://phpackages.com/packages/rogierkn-pages-for-wp)
```

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k104.3M836](/packages/laravel-socialite)[laravel/dusk

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

1.9k38.6M289](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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