PHPackages                             xs-khairul/pac04 - 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. xs-khairul/pac04

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

xs-khairul/pac04
================

Utility packages for Wpmet plugin, It will be used to serve Stories, Notice , Banner and Ratings

v1.0.0(3y ago)023GPL-3.0-onlyPHP

Since Feb 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/xs-khairul/pac04)[ Packagist](https://packagist.org/packages/xs-khairul/pac04)[ RSS](/packages/xs-khairul-pac04/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

\#Over View of package

- Wpmet Plugin Utility helper package for Banner , Notice , Stories and Rating.
- We made a composer package for these classes together.
- By using this Helper package we are centralizing the feature of these Classes in a package manager (so that any update or modifications of this functionalities globally no need to give hand or keep any dependencies on our plugins)

Composer and making :
---------------------

[](#composer-and-making-)

composer is a php dependency manager which take cares of all dependencies of projects , it take care of namespaces initializing and calling by mapping it in its autoload.php file we just need to specify the root dir in its jeson file call composer.json we can also configure its dependencies here and its author and package name etc.

`composer.json  file example`

```
{
    "name": "xs-khairul/pac04",
    "description": "Utility packages for Wpmet plugin, It will be used to serve Stories, Notice , Banner and Ratings",
    "version": "v1.0.0",
    "type": "library",
    "license": "GPL-3.0-only",
    "autoload": {
        "psr-4": {
            "Wpmett\\UtilityPackage\\": "src/"
        }
    },
    "authors": [
        {
            "name": "XpeedStudio",
            "email": "info@xpeedstudio.com"
        },
        {
            "name": "Wpmet",
            "email": "info@xpeedstudio.com"
        }
    ],
    "minimum-stability": "stable",
    "require": {

    },
    "require-dev": {

    }

}
```

### explanation

[](#explanation)

- namespace "Wpmett\\UtilityPackage\\" point to the src/ folder directly by composer when it calls
- require if any other package needed for this project.
- required-dev if any other package needed for this project for only development purpose.

to install this package by CLI
------------------------------

[](#to-install-this-package-by-cli)

`composer require xs-khairul/pac04 `

Using feature example
---------------------

[](#using-feature-example)

```
/**
			 * Show WPMET stories widget in dashboard
			 */
			\Wpmett\UtilityPackage\Stories\Stories::instance( 'elementskit-lite' )
			// ->is_test(true)
			->set_filter( $filter_string )
			->set_plugin( 'ElementsKit', 'https://wpmet.com/plugin/elementskit/' )
			->set_api_url( 'https://api.wpmet.com/public/stories/' )
			->call();

			/**
			 * Show WPMET banner (codename: jhanda)
			 */
			\Wpmett\UtilityPackage\Banner\Banner::instance( 'elementskit-lite' )
			// ->is_test(true)
			->set_filter( ltrim( $filter_string, ',' ) )
			->set_api_url( 'https://api.wpmet.com/public/jhanda' )
			->set_plugin_screens( 'edit-elementskit_template' )
			->set_plugin_screens( 'toplevel_page_elementskit' )
			->call();
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

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

Unknown

Total

1

Last Release

1169d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/38429e3d410720124f704201b33331ab516ffe624134bbec305a50d51f6cdd8c?d=identicon)[xs-khairul](/maintainers/xs-khairul)

---

Top Contributors

[![xs-khairul](https://avatars.githubusercontent.com/u/124554941?v=4)](https://github.com/xs-khairul "xs-khairul (32 commits)")

### Embed Badge

![Health badge](/badges/xs-khairul-pac04/health.svg)

```
[![Health](https://phpackages.com/badges/xs-khairul-pac04/health.svg)](https://phpackages.com/packages/xs-khairul-pac04)
```

PHPackages © 2026

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