PHPackages                             diamondstrider1/sounds - 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. [API Development](/categories/api)
4. /
5. diamondstrider1/sounds

ActiveLibrary[API Development](/categories/api)

diamondstrider1/sounds
======================

Sounds API for PocketMine-MP

v1.2.2(3y ago)143351MITPHP

Since Feb 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Swift-Strider/Sounds)[ Packagist](https://packagist.org/packages/diamondstrider1/sounds)[ RSS](/packages/diamondstrider1-sounds/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (1)Versions (5)Used By (0)

Sounds
======

[](#sounds)

This library adds sound APIs for PocketMine-MP plugins. Sounds from Minecraft version 1.19.0 are supported.

Usage
=====

[](#usage)

Sounds has an API similar to PocketMine's item and block APIs. You can get an `SoundImpl` (which implements PocketMine's Sound interface) by using the `VanillaSounds::XXX()` methods.

```
use DiamondStrider1\Sounds\VanillaSounds;

$sound = VanillaSounds::NOTE_BELL();
$sound->setVolume(2);
$sound->setPitch(2);
$currentVolume = $sound->getVolume();
$currentPitch = $sound->getPitch();
$world->addSound($position, $sound, $players);
```

You can also use `SoundFactory`, if the sound you want is not registered by this library.

```
use DiamondStrider1\Sounds\SoundFactory;

$sound = SoundFactory::create("my.custom.sound", volume: 1, pitch: 1);
$world->addSound($position, $sound, $players);

$anotherSound = SoundFactory::create("my.custom.sound2");
$anotherSound->setVolume(2);
$world->addSound($position, $anotherSound, $players);
```

This library also has constants for the ids of sounds, located in `SoundIds`!

```
use DiamondStrider1\Sounds\SoundIds;
use DiamondStrider1\Sounds\SoundFactory;

$pigStep = SoundIds::MOB_PIG_STEP
$pigStepSound = SoundFactory::create($pigStep);
// Not my favorite pig step, but let's play it anyways!
$world->addSound($position, $pigStepSound, $players);
```

*(side note: Don't confuse mob.pig.step with the true pig step music disc music)*

How it works
============

[](#how-it-works)

By running `composer generate_sounds` we generate `SoundIds` and `VanillaSounds`.

We first download a vanilla resource pack from Microsoft. Then we search the pack's `/sounds` directory for sound files. We then generate source code from the file names.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.5% 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 ~56 days

Total

4

Last Release

1420d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/255281d59473d1a26d9d9a3a16bf48a5ffcc27a2825e54f83037cc609c8bbad5?d=identicon)[DiamondStrider1](/maintainers/DiamondStrider1)

---

Top Contributors

[![Swift-Strider](https://avatars.githubusercontent.com/u/62265561?v=4)](https://github.com/Swift-Strider "Swift-Strider (21 commits)")[![poggit-bot](https://avatars.githubusercontent.com/u/22427965?v=4)](https://github.com/poggit-bot "poggit-bot (1 commits)")

### Embed Badge

![Health badge](/badges/diamondstrider1-sounds/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)[sof3/infoapi

311.6k1](/packages/sof3-infoapi)

PHPackages © 2026

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