-
Notifications
You must be signed in to change notification settings - Fork 2
LibCommons
LibCommons is the official shared utility library for EasyLibrary 3.x.
It replaces the old pure utility helpers that used to live inside the EasyLibrary core, while keeping the 3.x core small enough to boot, repair config and install packages without depending on a large embedded utility layer.
| Field | Value |
|---|---|
| Package id | libcommons |
| Plugin name | LibCommons |
| Namespace | imperazim\commons |
| Package type | classpath |
imperazim\commons\collection\Arrimperazim\commons\data\Base64imperazim\commons\data\Hashimperazim\commons\data\Jsonimperazim\commons\diagnostics\Reportimperazim\commons\diagnostics\Tableimperazim\commons\filesystem\DataFileimperazim\commons\filesystem\FileSystemimperazim\commons\filesystem\Pathimperazim\commons\math\Aabbimperazim\commons\math\Easingimperazim\commons\math\Geometryimperazim\commons\math\Interpolationimperazim\commons\math\Shapeimperazim\commons\math\WeightedRandomimperazim\commons\number\Numberimperazim\commons\result\Optionimperazim\commons\result\Resultimperazim\commons\text\Textimperazim\commons\time\Clockimperazim\commons\time\Durationimperazim\commons\time\KeyCooldownimperazim\commons\validation\Validator
/easylibrary packages bootstrap
/easylibrary packages bootstrap confirm
Or install it directly:
/easylibrary packages install libcommons stable confirm
Restart, then validate:
/easylibrary packages doctor
/easylibrary doctor
elprobe libcommons
elprobe run libcommons
Old EasyLibrary 2.x helpers such as components\utils\Text,
components\utils\Number, components\utils\TimeUtils,
components\utils\ValidationUtils, components\filesystem\File and
components\filesystem\Path should move to LibCommons or to direct PMMP APIs
depending on the use case.
Common replacements:
| Old helper direction | New LibCommons direction |
|---|---|
| Array/config helpers | imperazim\commons\collection\Arr |
| Text/color/string helpers | imperazim\commons\text\Text |
| Number formatting/ranges | imperazim\commons\number\Number |
| Time/duration helpers |
imperazim\commons\time\Clock, Duration, KeyCooldown
|
| Validation helpers | imperazim\commons\validation\Validator |
| Plugin-owned files | imperazim\commons\filesystem\DataFile |
| Path helpers | imperazim\commons\filesystem\Path |
| Explicit success/failure values |
imperazim\commons\result\Result, Option
|
Path::normalize() and Path::isWithin() are lexical helpers for ordinary
plugin-owned paths. They are useful for config/cache paths, but code that must
defend against symlink tricks should still resolve paths with filesystem-aware
checks.
- Package Manager
- Package Backed Plugins
- Standalone vs Package
- Package Switch and Migration
- Package Doctor
- Package Safety Gate
- Support Report Bundle
- Timings
- Package Recovery
- Proxy Troubleshooting
- Migrating from EasyLibrary 2.0 to 3.x
- Embedded Libraries Migration Map
- Removed Features and Replacements
- Deprecated APIs
- Compatibility Policy
- Config Migration
- 3x Dev Scope Checkpoint
- Plugin Developer Migration
- Server Administrator Migration
- Official Libraries
- LibPacket
- LibCommand
- LibSerializer
- LibForm
- LibDB
- LibCommons
- LibHttp
- LibAssets
- LibPlaceholder
- LibWorld
- EasyLibrary Agent Bridge
- LibCustom
- LibEnchantment
- LibHud
- LibTrigger
- LibWindow
- Public API Contract
- Doctor Output
- Repository Notifications
- Smoke Tests
- Common Errors
- Release and Changelog