PHPackages                             jasonw4331/libcustompack - 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. jasonw4331/libcustompack

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

jasonw4331/libcustompack
========================

A library for compiling and registering resource packs with PocketMine

1.0.1(3y ago)143432[1 PRs](https://github.com/jasonw4331/libCustomPack/pulls)lgpl-3.0-or-laterPHPPHP ^8.0CI passing

Since May 15Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/jasonw4331/libCustomPack)[ Packagist](https://packagist.org/packages/jasonw4331/libcustompack)[ Fund](https://www.buymeacoffee.com/jasonwynn10)[ GitHub Sponsors](https://github.com/[user1)[ RSS](/packages/jasonw4331-libcustompack/feed)WikiDiscussions master Synced 3w ago

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

libCustomPack
=============

[](#libcustompack)

[![Poggit-Ci](https://camo.githubusercontent.com/f5052cf0b97f37516578907e845436e1a1378a8ba2ef79dbf83faea8d5ca4eec/68747470733a2f2f706f676769742e706d6d702e696f2f63692e736869656c642f6a61736f6e77343333312f6c6962437573746f6d5061636b2f6c6962437573746f6d5061636b)](https://poggit.pmmp.io/ci/jasonw4331/libCustomPack/libCustomPack)

A small library for building and registering resource packs with PocketMine-MP

Usage
-----

[](#usage)

This viron was made for developers to build resource packs from plugin resources or from files on the disk, and allows adding new resource packs to the stack without requiring a server restart. *NOTE*: New resource packs are not automatically updated for previously loaded players. Only new players will see new resource packs.

#### Required imports

[](#required-imports)

The following imports are necessary to use the virion library:

```
use libCustomPack\libCustomPack;
```

### API

[](#api)

#### Building a resource pack

[](#building-a-resource-pack)

2 methods are added which allow build a resource pack using the plugin's resource directory or any other given path.

```
libCustomPack::generatePackFromResources($plugin);
//OR
libCustomPack::generatePackFromPath($plugin, $MyFullFolderPath);
```

#### Registering a resource pack

[](#registering-a-resource-pack)

A resource pack can be added to the resource stack using the `registerResourcePack()` method.

```
libCustomPack::registerResourcePack($resoucePackInstance);
```

#### Unregistering a resource pack

[](#unregistering-a-resource-pack)

During a plugin's onDisable() method, it is recommended to call the `unregisterResourcePack()` method to be removed from the resource stack.

```
libCustomPack::unregisterResourcePack($resoucePackInstance);
```

### SubFolders

[](#subfolders)

If the resource pack is a folder we don't know the exact location of within the given folder, we can use the `$packFolderName` parameter to specify the name of the folder to be found. The default subfolder name is the plugin's name followed by " Pack".

```
libCustomPack::generatePackFromResources($plugin, $packFolderName);
//OR
libCustomPack::generatePackFromPath($plugin, $MyFullFolderPath, $packFolderName);
```

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance61

Regular maintenance activity

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 69% 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

1135d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/18d53d426125946a94e8eccf831dc59ec13e3c347f8090d48c968b48c3bd44bb?d=identicon)[jasonw\_4331](/maintainers/jasonw_4331)

---

Top Contributors

[![jasonw4331](https://avatars.githubusercontent.com/u/16521025?v=4)](https://github.com/jasonw4331 "jasonw4331 (20 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")[![poggit-bot](https://avatars.githubusercontent.com/u/22427965?v=4)](https://github.com/poggit-bot "poggit-bot (2 commits)")

---

Tags

phppocketminepocketmine-mppoggit-virion

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jasonw4331-libcustompack/health.svg)

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

###  Alternatives

[roolith/event

PHP event listener

1558.7k1](/packages/roolith-event)[almacareer/coding-standard

Coding standard used in Alma Career projects

1636.3k1](/packages/almacareer-coding-standard)[elegantly/laravel-seo

An Elegant &amp; flexible SEO tag builder for Laravel

123.8k](/packages/elegantly-laravel-seo)

PHPackages © 2026

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