PHPackages                             pyrello/sox-php - 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. pyrello/sox-php

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

pyrello/sox-php
===============

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

126541PHP

Since Mar 27Pushed 10y agoCompare

[ Source](https://github.com/pyrello/sox-php)[ Packagist](https://packagist.org/packages/pyrello/sox-php)[ RSS](/packages/pyrello-sox-php/feed)WikiDiscussions master Synced yesterday

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

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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/cb5cffabd7d9e6f9267966e9b052329959c46d553703fce4a4703337a26f50cd?d=identicon)[pyrello](/maintainers/pyrello)

---

Top Contributors

[![arroyo](https://avatars.githubusercontent.com/u/378457?v=4)](https://github.com/arroyo "arroyo (9 commits)")[![pyrello](https://avatars.githubusercontent.com/u/709009?v=4)](https://github.com/pyrello "pyrello (1 commits)")

### Embed Badge

![Health badge](/badges/pyrello-sox-php/health.svg)

```
[![Health](https://phpackages.com/badges/pyrello-sox-php/health.svg)](https://phpackages.com/packages/pyrello-sox-php)
```

###  Alternatives

[voku/urlify

PHP port of URLify.js from the Django project. Transliterates non-ascii characters for use in URLs.

274.2M8](/packages/voku-urlify)[appstract/laravel-meta

Model meta

12981.9k](/packages/appstract-laravel-meta)[spatie/laravel-mailcoach-monaco

A Monaco editor package for Mailcoach

1016.8k1](/packages/spatie-laravel-mailcoach-monaco)[octopoda/octopus

PHP Sitemap crawler

114.9k](/packages/octopoda-octopus)

PHPackages © 2026

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