PHPackages                             kerkness/kore-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kerkness/kore-wp

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kerkness/kore-wp
================

Common classes for building wordpress plugins

v1.0.13(4y ago)035GPL-2.0-or-laterPHP

Since Aug 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/kerkness/kore-wp)[ Packagist](https://packagist.org/packages/kerkness/kore-wp)[ RSS](/packages/kerkness-kore-wp/feed)WikiDiscussions main Synced 4d ago

READMEChangelog (10)DependenciesVersions (15)Used By (0)

kore-wp
=======

[](#kore-wp)

Common classes and features for wordpress plugin development.

NOTE: Adding `__FILE__` to class creation as exampled below will localize the class to the plugin it's being used in. Otherwise conflicts may arrise if more than one plugin uses `KoreWP` which is the intension.

Kerkness\\KoreWP\\KoreWP
------------------------

[](#kerknesskorewpkorewp)

Some useful generic helper functions

```
// Get the current plugin name
KoreWP::factory(__FILE__)->plugin_name()

```

```
// Get the current plugin directory
KoreWP::factory(__FILE__)->plugin_dir()

```

```
// Get the current plugin url
KoreWP::factory(__FILE__)->plugin_url()

```

Kerkness\\KoreWP\\Template
--------------------------

[](#kerknesskorewptemplate)

Renders PHP template files with options on where to keep your template files.

- Stick your php template in active Theme folder
- Stick your php template in `wp-content/plugins/my-plugin/templates`
- Provide a relative path to your template file

### Basic Usage

[](#basic-usage)

template-file.php

```
Hello World

```

```
Template::render('template-file', [], __FILE__);

```

### With Dynamic Properties

[](#with-dynamic-properties)

template-file.php

```
Hello

```

```
Template::render('template-file', [ 'name' => 'World' ], __FILE__);

```

### Advanced usage

[](#advanced-usage)

my-folder/custom-path/template-file.php

```
Hello

```

```
$template = Template::factory(__FILE__);
$template->set_template('my-folder/custom-path/template-file');
$content = $template->render_view([ 'name' => 'World' ]);
echo $content;

```

Kerkness\\KoreWP\\ReactCode
---------------------------

[](#kerknesskorewpreactcode)

Creates a shortcode for embedding a react component in Wordpress.

Full examples to follow..

```
// enqueue components and styles and localized data
ComponentShortcode::init('assets/components.js', 'assets/style.css', [
    'query_vars' => $_GET,
    'current_user' => wp_get_current_user()
], __FILE__);

// Use the shortcode
[kore_react component="component_name" id="unique-id" other_prop="my other prop"]

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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.

###  Release Activity

Cadence

Every ~0 days

Total

13

Last Release

1729d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/54ff429417ea4cb8d3405c0f7575c32e4dda15c077dd39398636a02a7e751b87?d=identicon)[kerkness](/maintainers/kerkness)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/kerkness-kore-wp/health.svg)

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

###  Alternatives

[t4web/composer-lock-parser

OOP reader of composer.lock file.

20185.2k7](/packages/t4web-composer-lock-parser)[albertborsos/yii2-gdpr-cookie-consent

GDPR compatible Cookie Consent widget allows the user to choose which kind of cookies they want to accept.

1124.3k1](/packages/albertborsos-yii2-gdpr-cookie-consent)

PHPackages © 2026

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