{"id":22873747,"url":"https://github.com/ponup/php-openal","last_synced_at":"2026-02-28T16:32:24.490Z","repository":{"id":70708280,"uuid":"187383666","full_name":"Ponup/php-openal","owner":"Ponup","description":"OpenAL audio library bindings for PHP","archived":false,"fork":false,"pushed_at":"2022-01-21T22:24:27.000Z","size":5187,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-06T19:06:57.606Z","etag":null,"topics":["audio","extension","openal","php"],"latest_commit_sha":null,"homepage":"http://pecl.php.net/package/openal","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ponup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-18T16:59:07.000Z","updated_at":"2023-10-28T11:29:38.000Z","dependencies_parsed_at":"2023-08-19T21:15:07.696Z","dependency_job_id":null,"html_url":"https://github.com/Ponup/php-openal","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Ponup/php-openal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ponup%2Fphp-openal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ponup%2Fphp-openal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ponup%2Fphp-openal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ponup%2Fphp-openal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ponup","download_url":"https://codeload.github.com/Ponup/php-openal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ponup%2Fphp-openal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29942857,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T13:49:17.081Z","status":"ssl_error","status_checked_at":"2026-02-28T13:48:50.396Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio","extension","openal","php"],"created_at":"2024-12-13T14:30:02.777Z","updated_at":"2026-02-28T16:32:24.450Z","avatar_url":"https://github.com/Ponup.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/Ponup/php-openal.svg?branch=master)](https://travis-ci.org/Ponup/php-openal)\n\n# PHP-OpenAL\n\n**OpenAL** bindings for PHP.\n\n```php\n$device = openal_device_open(null);\n$context = openal_context_create($device);\nopenal_context_current($context);\n\n$source = openal_source_create();\n$buffer = openal_buffer_create();\nopenal_buffer_data($buffer, AL_FORMAT_STEREO16, $wavData, $wavSampleRate);\n\nopenal_source_set($source, AL_BUFFER, $buffer);\nopenal_source_set($source, AL_LOOPING, true);\n\nopenal_source_play($source);\nsleep($wavLength);\nopenal_source_stop($source);\n\nopenal_context_destroy($context);\nopenal_device_close($device);\n```\n\n## Requirements\n\n- PHP8.1\n- OpenAL library and headers\n\n## Documentation\n\nhttps://www.php.net/manual/en/book.openal.php\n\n## Docker\n\n```sh\ndocker build -t php-openal .\ndocker run -it --device /dev/snd -e PULSE_SERVER=/tmp/pulse-native -e PULSE_COOKIE=/tmp/pulse-cookie -v $XDG_RUNTIME_DIR/pulse/native:/tmp/pulse-native -v ~/.config/pulse/cookie:/tmp/pulse-cookie --group-add audio --entrypoint php php-openal examples/example.php\n```\n\n## Building\n\n```sh\nphpize\n./configure --with-openal=/usr/local/Cellar/openal-soft/1.19.1 # Adjust path accordingly\nmake\nsudo make install\n```\n\n## Packaging\n\n```sh\npear package # This will generate an openal-X.X.X.tgz to push to pecl.php.net\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fponup%2Fphp-openal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fponup%2Fphp-openal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fponup%2Fphp-openal/lists"}