PHPackages                             terremoth/php-win32-playwav - 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. terremoth/php-win32-playwav

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

terremoth/php-win32-playwav
===========================

Play wav (wave) files natively with PHP on Windows

v1.0.0(1y ago)01GPL-3.0-or-laterPHPPHP ^8.1

Since Nov 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/terremoth/php-win32-playwav)[ Packagist](https://packagist.org/packages/terremoth/php-win32-playwav)[ RSS](/packages/terremoth-php-win32-playwav/feed)WikiDiscussions main Synced 1mo ago

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

PHP Native Win32 Play Sound (wav)
=================================

[](#php-native-win32-play-sound-wav)

Play wav (wave) files natively with PHP on Windows. Zero extensions or dependencies needed!

It uses `PlaySound` from `winmm.dll`, unlocked by the power of PHP [FFI](https://www.php.net/manual/en/book.ffi.php)

*Not because we must do it, but because we can!*

Made by [Terremoth](https://github.com/terremoth/) with ⚡ &amp; ❤

[![CodeCov](https://camo.githubusercontent.com/962d8516737b78eceac6423b8ece3fac78238a14d5f834189508fd9ecafd3c0f/68747470733a2f2f636f6465636f762e696f2f67682f74657272656d6f74682f7068702d77696e33322d706c61797761762f67726170682f62616467652e7376673f746f6b656e3d544f4b454e)](https://app.codecov.io/gh/terremoth/php-win32-playwav)[![Psalm type coverage](https://camo.githubusercontent.com/607bb3baa3faa83adc72eca5bd0b08dee166376b7ee92971ea2c53b36da4c370/68747470733a2f2f73686570686572642e6465762f6769746875622f74657272656d6f74682f7068702d77696e33322d706c61797761762f636f7665726167652e737667)](https://shepherd.dev/github/terremoth/php-win32-playwav)[![Psalm level](https://camo.githubusercontent.com/befd97ea34fc753d57339488087eaedc8f937caef4a57203ac6de703148626c8/68747470733a2f2f73686570686572642e6465762f6769746875622f74657272656d6f74682f7068702d77696e33322d706c61797761762f6c6576656c2e737667)](https://shepherd.dev/github/terremoth/php-win32-playwav)[![Test Run Status](https://github.com/terremoth/php-win32-playwav/actions/workflows/workflow.yml/badge.svg?branch=main)](https://github.com/terremoth/php-win32-playwav/actions/workflows/workflow.yml)[![Test Coverage](https://camo.githubusercontent.com/a5c33d658256fcb843579663e03b736c8fab1ad8df3529942f4fec53a922f44d/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f61313331333262653161663430316464623837312f746573745f636f766572616765)](https://codeclimate.com/github/terremoth/php-win32-playwav/test_coverage)[![Codacy Badge](https://camo.githubusercontent.com/e543e0f2de73c47859d380c72b19a252e7f95d5b466ba3759ed730effec94625/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6566373863396136666136383433613161613130363436626437306131653964)](https://app.codacy.com/gh/terremoth/php-win32-playwav/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)[![Maintainability](https://camo.githubusercontent.com/ef76b51dcfa1b77edb9289982aaedf4c855d78877745838f96ce2fa9d905aebe/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f61313331333262653161663430316464623837312f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/terremoth/php-win32-playwav/maintainability)[![License](https://camo.githubusercontent.com/f94ef14200873474aea6dfa34f58c0cf84142f04a27e86fec41d847be1d651d0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f74657272656d6f74682f7068702d77696e33322d706c61797761762e7376673f6c6f676f3d676e7526636f6c6f723d343162623133)](https://github.com/terremoth/php-win32-playwav/blob/main/LICENSE)

See [demos/demo.php](demos/demo.php) for examples.

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

[](#installation)

```
composer require terremoth/php-win32-playwav
```

Documentation
-------------

[](#documentation)

### Play Sync

[](#play-sync)

```
