PHPackages                             masterfermin02/audio - 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. [Image &amp; Media](/categories/media)
4. /
5. masterfermin02/audio

ActiveLibrary[Image &amp; Media](/categories/media)

masterfermin02/audio
====================

Extracts attributes of audio-files &amp; Visualization

v1.0.6(2y ago)17MITPHPPHP ^8.1

Since Dec 4Pushed 2y ago1 watchersCompare

[ Source](https://github.com/masterfermin02/audio)[ Packagist](https://packagist.org/packages/masterfermin02/audio)[ Docs](https://github.com/masterfermin02/audio)[ RSS](/packages/masterfermin02-audio/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (3)Versions (8)Used By (0)

Extracts attributes of audio-files &amp; Visualization
======================================================

[](#extracts-attributes-of-audio-files--visualization)

[![Latest Version on Packagist](https://camo.githubusercontent.com/26495ed612d9844a4c9225eca6fa36319557fd9a2e6a980f81342c6c214379f6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d61737465726665726d696e30322f617564696f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/masterfermin02/audio)[![Tests](https://github.com/masterfermin02/audio/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/masterfermin02/audio/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/4d5a4cc3c6413df8aeba02af97d49c0735eae8267d04be42ff9a427327a1fe1f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d61737465726665726d696e30322f617564696f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/masterfermin02/audio)

This package was designed to identify various attributes of audio files such as frequency, format, channels, resolution, compression, length, and id3-tags. Currently, it supports audio files in .wav, .aif, .mp3, and .ogg formats. Additionally, the latest version comes with a feature that allows users to visualize audio samples similar to popular audio software such as waveLab and CoolEdit, using the GD library.

inspire by [PHP-Extracts-attributes-of-audio-files-Visualization.html](https://www.phpclasses.org/package/482-PHP-Extracts-attributes-of-audio-files-Visualization.html)

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

[](#installation)

You can install the package via composer:

```
composer require masterfermin02/audio
```

Usage
-----

[](#usage)

```
use Masterfermin02\Audio\Audio;

$audio = Audio::create();

$audio->loadFile(getenv('filename'));
$audio->printSampleInfo();

if ($audio->waveId == "RIFF")
{
    $imageSrc = $audio->getVisualization();
    print "";
}
```

You can add the image dir
-------------------------

[](#you-can-add-the-image-dir)

```
use Masterfermin02\Audio\Audio;

$audio = Audio::create();

$audio->loadFile(getenv('filename'));
$audio->printSampleInfo();

if ($audio->waveId == "RIFF")
{
    $imageSrc = $audio->setImageBaseDir('./images/')
    ->getVisualization($filename);
    print "";
}
```

Screenshots
-----------

[](#screenshots)

[![result](./screen/Screenshot%202023-12-04%20at%203.40.12%20PM.png?raw=true "Result")](./screen/Screenshot%202023-12-04%20at%203.40.12%20PM.png?raw=true)

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Fermin](https://github.com/masterfermin02)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~1 days

Total

7

Last Release

887d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/17c416be607cbb47c55e76e115e3c35c3d74906ff422e808e4bba3be1dfb5cd6?d=identicon)[masterfermin02](/maintainers/masterfermin02)

---

Top Contributors

[![masterfermin02](https://avatars.githubusercontent.com/u/4625540?v=4)](https://github.com/masterfermin02 "masterfermin02 (1 commits)")

---

Tags

audiomasterfermin02

###  Code Quality

TestsPHPUnit

Static AnalysisRector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/masterfermin02-audio/health.svg)

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

###  Alternatives

[php-ffmpeg/php-ffmpeg

FFMpeg PHP, an Object Oriented library to communicate with AVconv / ffmpeg

5.0k21.7M165](/packages/php-ffmpeg-php-ffmpeg)[danog/madelineproto

Async PHP client API for the telegram MTProto protocol.

3.4k855.0k18](/packages/danog-madelineproto)[happyworm/jplayer

jPlayer allows you to create a media player with a consistent interface and experience across all browsers.

4.6k114.2k1](/packages/happyworm-jplayer)[codescale/ffmpeg-php

PHP wrapper for FFmpeg application

495270.5k1](/packages/codescale-ffmpeg-php)[char0n/ffmpeg-php

PHP wrapper for FFmpeg application

495225.1k1](/packages/char0n-ffmpeg-php)[wapmorgan/mp3info

The fastest php library to extract mp3 tags &amp; meta information.

1481.4M7](/packages/wapmorgan-mp3info)

PHPackages © 2026

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