PHPackages                             nhanaz/libregrsp - 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. nhanaz/libregrsp

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

nhanaz/libregrsp
================

Resource pack register library for PocketMine plugins

5241PHP

Since Mar 25Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/NhanAZ-Libraries/libRegRsp)[ Packagist](https://packagist.org/packages/nhanaz/libregrsp)[ RSS](/packages/nhanaz-libregrsp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

libRegRsp
=========

[](#libregrsp)

Resource-pack compile &amp; register helper for PocketMine-MP (virion or composer library).

Features
--------

[](#features)

- Build `.mcpack` directly from your plugin `resources/`.
- Supports both layouts: default `/` and legacy `" Pack"/`.
- Registers the pack at the top of the stack and removes duplicates (same UUID/path) first.
- Optional `forceRequired` to require players to accept the pack.

Requirements
------------

[](#requirements)

- PocketMine-MP API 5.x
- PHP 8.1+

Installation
------------

[](#installation)

### Composer (self-hosted plugin)

[](#composer-self-hosted-plugin)

```
composer require nhanaz/libregrsp
```

### Poggit (virion)

[](#poggit-virion)

Add to `.poggit.yml`:

```
projects:
  YourPlugin:
    libs:
      - src: NhanAZ/libRegRsp/libRegRsp
        version: ^1.0.4
```

Quick start
-----------

[](#quick-start)

```
use NhanAZ\libRegRsp\libRegRsp;

class MyPlugin extends PluginBase {
    protected function onEnable() : void{
        // Resources under resources/MyPlugin/ or resources/MyPlugin Pack/
        libRegRsp::compileAndRegister($this);
    }

    protected function onDisable() : void{
        libRegRsp::unregister($this); // removes the .mcpack
    }
}
```

### API reference (concise)

[](#api-reference-concise)

- Build only: `libRegRsp::compile($plugin, ?string $packFolder = null, ?string $zipFileName = null): ?string`
- Register only: `libRegRsp::register($plugin, ?string $zipPath = null, bool $forceRequired = true): void`
- Unregister + delete: `libRegRsp::unregister($plugin, ?string $zipPath = null): void`

`$packFolder` defaults to plugin name; legacy `" Pack"/` is auto-detected when no custom folder is provided.

Troubleshooting
---------------

[](#troubleshooting)

- **Cannot create data folder:** check write permissions of `plugins/YourPlugin/`.
- **Empty zip:** ensure assets are in `resources//...` or `resources/ Pack/`.
- **Duplicate UUID:** library already evicts duplicates before insert; if it persists, other packs likely share the same UUID.

License &amp; Contact
---------------------

[](#license--contact)

- LGPL-3.0-or-later (see `LICENSE`)
- Discord: [NhanAZ #9115](https://discord.gg/j2X83ujT6c)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance59

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 Bus Factor1

Top contributor holds 90.9% 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/737e9f0e23b56164d8e08729d58be66b69dc994c6b2bfa3c71b4efe4b231d785?d=identicon)[NhanAZ](/maintainers/NhanAZ)

---

Top Contributors

[![NhanAZ](https://avatars.githubusercontent.com/u/60387689?v=4)](https://github.com/NhanAZ "NhanAZ (30 commits)")[![poggit-bot](https://avatars.githubusercontent.com/u/22427965?v=4)](https://github.com/poggit-bot "poggit-bot (3 commits)")

---

Tags

liblibraryphppmmppocketminepocketmine-mpregrsp

### Embed Badge

![Health badge](/badges/nhanaz-libregrsp/health.svg)

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

###  Alternatives

[ferdiunal/nova-editable-field

A Laravel Nova package to make fields editable.

104.6k](/packages/ferdiunal-nova-editable-field)

PHPackages © 2026

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