PHPackages                             jeenus/phpsox - 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. jeenus/phpsox

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

jeenus/phpsox
=============

This is a simple PHP library that wraps the functionality of the Sound eXchange command line utility.

01PHP

Since Oct 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/jeenusjunanio/PhpSox)[ Packagist](https://packagist.org/packages/jeenus/phpsox)[ RSS](/packages/jeenus-phpsox/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

SoundExchange PHP
=================

[](#soundexchange-php)

What you need to manipulate audio in PHP
----------------------------------------

[](#what-you-need-to-manipulate-audio-in-php)

Requirements

1. PHP 5
2. sox installed on your server Linux (Ubuntu): sudo apt-get install sox Max OS X: sudo port install sox

Optional

1. lame mp3 encoder

What you get
------------

[](#what-you-get)

SoundExchange PHP is an easy to use library which wraps common sox calls. To use SoundExchange include the SoundExchange.php src file in your website and make some calls to included functions. Use any of the static members to convert, trim, &amp; normalize audio files. Some bundled convenience methods are also included, for instance the preview() method which creates a normalized short preview file of the supplied audio file.

For advanced users you can use the generic sox() call and supply your own commands. It is not recommended to use this function unless you are familiar with how to use sox on the command line.

Demo
----

[](#demo)

See demo/demo.php for examples on how to use SoundExchange

Unit Testing
------------

[](#unit-testing)

Run the php unit tests by running 'phpunit tests/SoundExchangeTest.php' on the command line. phpunit must be installed to work.

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

[](#troubleshooting)

If you have trouble using the script be sure that sox is properly installed on your server. Try sox --combine concatenate file1.mp3 file2.mp3 outputFile.mp3, it should add a new file which places file1 and file2 end to end. You might also run the phpunit test script supplied to help debug.

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/126a72cb3d8e088671e3c5cd1eeb8d650494c1e61c37c6741955a7647ca85bad?d=identicon)[jeenusjunanio](/maintainers/jeenusjunanio)

---

Top Contributors

[![jeenusjunanio](https://avatars.githubusercontent.com/u/72936571?v=4)](https://github.com/jeenusjunanio "jeenusjunanio (3 commits)")

### Embed Badge

![Health badge](/badges/jeenus-phpsox/health.svg)

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

PHPackages © 2026

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