PHPackages                             szepeviktor/sentencepress - 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. szepeviktor/sentencepress

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

szepeviktor/sentencepress
=========================

OOP toolkit for daily tasks in WordPress development.

v0.4.0(1y ago)111.4k[1 issues](https://github.com/szepeviktor/SentencePress/issues)MITPHPPHP ^7.4 || ^8.0

Since Dec 21Pushed 8mo ago2 watchersCompare

[ Source](https://github.com/szepeviktor/SentencePress)[ Packagist](https://packagist.org/packages/szepeviktor/sentencepress)[ RSS](/packages/szepeviktor-sentencepress/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (6)Used By (0)

SentencePress
=============

[](#sentencepress)

[![Build Status](https://camo.githubusercontent.com/80de3959e214f1f7a14c6e0d337940a0f74556b7d445c03889e212c5c09682e5/68747470733a2f2f6170702e7472617669732d63692e636f6d2f737a65706576696b746f722f53656e74656e636550726573732e7376673f6272616e63683d6d6173746572)](https://app.travis-ci.com/szepeviktor/SentencePress)[![Packagist](https://camo.githubusercontent.com/2d34ea824e1eae248ef3fc4686bc3821b840f3137ab4794f2ca4527799a18216/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f737a65706576696b746f722f73656e74656e636570726573732e7376673f636f6c6f723d323339393232267374796c653d706f706f7574)](https://packagist.org/packages/szepeviktor/sentencepress)[![PHPStan](https://camo.githubusercontent.com/c961f520ec74aa0d9e60565e511aebb1c4930b5a0ea635e9be3e99bf562be287/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d323339393232)](https://phpstan.org/)

These [tools](/src) are recommended for use in agency-type projects where you have full control over the development and installation environment.

### Installation

[](#installation)

```
composer require szepeviktor/sentencepress
```

See [WordPress website lifecycle](https://github.com/szepeviktor/wordpress-website-lifecycle)for working with WordPress.

### Examples

[](#examples)

```
// Instead of wp_enqueue_script('main-js', get_template_directory_uri() . '/assets/js/main.js', [], '8.44', true)
$mainJs = new Script(get_template_directory_uri() . '/assets/js/main.js');
$mainJs
    ->setHandle('main-js')
    ->setVer('8.44')
    ->moveToFooter()
    ->enqueue();
```

```
// Instead of add_action('plugins_loaded', [$this, 'init'], 0, 20);
class Plugin
{
    use SzepeViktor\SentencePress\HookAnnotation;
    public function __construct()
    {
        $this->hookMethods();
    }

    /**
     * @hook plugins_loaded 20
     */
    public function init(): void
    {
        doSomething();
    }
}
```

```
// Instead of require __DIR__ . '/inc/template-functions.php';
// template-functions.php will be loaded and pingbackHeader called when wp_head hook is fired
class Template
{
    use SzepeViktor\SentencePress\HookProxy;
    public function __construct()
    {
        $this->lazyHookFunction(
            'wp_head',
            __NAMESPACE__ . '\\TemplateFunction\\pingbackHeader',
            10,
            0,
            __DIR__ . '/inc/template-functions.php'
        );
    }
}
```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance50

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

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 ~186 days

Total

5

Last Release

542d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/135d8104cdf926e2b15b6a06413153a9582729f0cd48ccba7bc7e62878a39781?d=identicon)[szepeviktor](/maintainers/szepeviktor)

---

Top Contributors

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

---

Tags

object-oriented-programmingoopwordpresswordpress-developmentwordpresstoolsOOP

### Embed Badge

![Health badge](/badges/szepeviktor-sentencepress/health.svg)

```
[![Health](https://phpackages.com/badges/szepeviktor-sentencepress/health.svg)](https://phpackages.com/packages/szepeviktor-sentencepress)
```

PHPackages © 2026

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