Hello everyone, I’m Lucas Mendes, a Brazilian software architect, working with PHP as the main technology for more than 7 years and one of my favorite things is to hack the PHP core and figure out the best way to do my job using PHP for almost everything (no, I don’t use only PHP, but it’s my favorite).
A long time ago, I developed an extension called PHP CLI Audio Streammer, so I refactored this extension in a new and improved one, supporting PHP 7+. The extension was renamed to modplayer, and this extension aims to enable the support for stream and reproduce module (aka tracker) files in the CLI SAPI. The extension has only three functions and uses the libmikmod to decode the audio and interface the machine audio drivers. The available functions are: modplayer_play, modplayer_getpid and modplayer_stop. You could get the full extension documentation in the repository of the project. I’d like to publish it in the pecl for and an easy install, package indexation and to get some reviews and feedbacks for another ideas or improvements that I could make in it. I worked with libmikmod for an academic research about synth audio mixing, and after finishing that, I decided to integrate it into the PHP. I know that it’s not a really useful extension when compared to other extension (hahaha), but I think that every contribution is great and this could open the doors for another ideas about the use of the PHP. The extension is located at: https://github.com/devsdmf/php-modplayer <https://github.com/devsdmf/php-modplayer> And I’d like to let here a question, with the changes of the zend_parse_parameters macro in PHP 7+, how can I parse the parameters making the extension compatible with PHP 5.5+ and 7+ ? Thank you for your attention. Sincerely, Lucas Mendes CTO at devSDMF Software Development Inc. Software Architect at TiendaNube/NuvemShop Contact: https://www.fb.com/devsdmf https://www.twitter.com/devsdmf https://www.linkedin.com/in/devsdmf http://www.devsdmf.io/
