{"id":34705917,"url":"https://github.com/bluemoehre/flac-php","last_synced_at":"2025-12-24T23:21:26.658Z","repository":{"id":4125107,"uuid":"5236379","full_name":"bluemoehre/flac-php","owner":"bluemoehre","description":"PHP class for native reading FLAC's metadata","archived":false,"fork":false,"pushed_at":"2024-10-15T14:32:05.000Z","size":1166,"stargazers_count":8,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-25T12:33:15.325Z","etag":null,"topics":["flac","metadata","php","vorbis-comment"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"purescript-contrib/purescript-freet","license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bluemoehre.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}},"created_at":"2012-07-30T18:57:03.000Z","updated_at":"2025-03-08T10:58:01.000Z","dependencies_parsed_at":"2022-07-20T07:02:09.464Z","dependency_job_id":null,"html_url":"https://github.com/bluemoehre/flac-php","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bluemoehre/flac-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluemoehre%2Fflac-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluemoehre%2Fflac-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluemoehre%2Fflac-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluemoehre%2Fflac-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bluemoehre","download_url":"https://codeload.github.com/bluemoehre/flac-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluemoehre%2Fflac-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28012134,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-24T02:00:07.193Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["flac","metadata","php","vorbis-comment"],"created_at":"2025-12-24T23:21:25.836Z","updated_at":"2025-12-24T23:21:26.649Z","avatar_url":"https://github.com/bluemoehre.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"FLAC-PHP [![Build Status](https://github.com/bluemoehre/flac-php/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/bluemoehre/flac-php/actions/workflows/ci.yml)\n========\n\nClass for native reading FLAC's metadata in PHP.\nProvides direct access to the Vorbis comment (artist, title, album, …) to fetch all desired information.\n\nInstallation\n------------\n\nThis class can easily be installed via [Composer](https://getcomposer.org):  \n`composer require bluemoehre/flac-php`\n\nAlternatively you may include it the old fashioned way of downloading and adding it via  \n`require 'Flac.php'`\n\nUsage\n-----\n```php\n\u003c?php\n\nuse bluemoehre\\Flac;\n\nheader('Content-Type: text/plain;charset=utf-8');\n\n// benchmark start\n$t = microtime(true);\n\n$flac = new Flac('mySong.flac');\n\n// benchmark end\n$t = microtime(true) - $t;\n\necho 'Benchmark: ' . $t .'s' . \"\\n\\n\";\necho 'Filename: ' . $flac-\u003egetFilename() . \"\\n\";\necho 'File size: ' . $flac-\u003egetFileSize() . \" Bytes\\n\";\necho 'Meta-Blocks: '; print_r($flac-\u003egetMetadataBlockCounts()); echo \"\\n\";\necho 'Sample Rate: ' . $flac-\u003egetSampleRate() . \"\\n\";\necho 'Channels: ' . $flac-\u003egetChannels() . \"\\n\";\necho 'Bits per sample: ' . $flac-\u003egetBitsPerSample() . \"\\n\";\necho 'Total samples: ' . $flac-\u003egetTotalSamples() . \"\\n\";\necho 'Duration: ' . $flac-\u003egetDuration() . \"s\\n\";\necho 'MD5 checksum (audio data): ' . $flac-\u003egetAudioMd5() . \"\\n\";\necho 'Vorbis-Comment: '; nl2br(print_r($flac-\u003egetVorbisComment())); echo \"\\n\";\n```\n\nTODOs\n-----\n- Add getter for pictures\n\n\nTechnical information\n---------------------\nFLAC: https://xiph.org/flac/format.html  \nVorbis comment: https://www.xiph.org/vorbis/doc/v-comment.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluemoehre%2Fflac-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbluemoehre%2Fflac-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluemoehre%2Fflac-php/lists"}