{"id":15142721,"url":"https://github.com/pmmp/ext-libdeflate","last_synced_at":"2026-03-07T01:02:29.653Z","repository":{"id":55859127,"uuid":"302985237","full_name":"pmmp/ext-libdeflate","owner":"pmmp","description":"PHP bindings for libdeflate, a zlib replacement with significantly better performance.","archived":false,"fork":false,"pushed_at":"2025-12-24T03:58:41.000Z","size":32,"stargazers_count":11,"open_issues_count":2,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-12-25T17:07:10.915Z","etag":null,"topics":["github-actions-enabled","php-extension","php80","php81","php82"],"latest_commit_sha":null,"homepage":"","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/pmmp.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,"zenodo":null}},"created_at":"2020-10-10T20:34:37.000Z","updated_at":"2025-12-24T03:58:45.000Z","dependencies_parsed_at":"2023-11-24T14:24:29.524Z","dependency_job_id":"cd53f8e9-c757-4de9-883e-73b06a962808","html_url":"https://github.com/pmmp/ext-libdeflate","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/pmmp/ext-libdeflate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmmp%2Fext-libdeflate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmmp%2Fext-libdeflate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmmp%2Fext-libdeflate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmmp%2Fext-libdeflate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmmp","download_url":"https://codeload.github.com/pmmp/ext-libdeflate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmmp%2Fext-libdeflate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30204452,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["github-actions-enabled","php-extension","php80","php81","php82"],"created_at":"2024-09-26T10:00:22.564Z","updated_at":"2026-03-07T01:02:29.619Z","avatar_url":"https://github.com/pmmp.png","language":"C","readme":"# ext-libdeflate\n[![CI](https://github.com/pmmp/ext-libdeflate/actions/workflows/ci.yml/badge.svg)](https://github.com/pmmp/ext-libdeflate/actions/workflows/ci.yml)\n\nPHP bindings for [libdeflate](https://github.com/ebiggers/libdeflate), a zlib replacement with significantly better performance.\n\n## Features\nAt the time of writing, this extension only exposes libdeflate's compression APIs, since these are the simplest to implement.\n\nSince libdeflate doesn't support stream decompression, the decompression APIs are less useful unless you know the decompressed size of the data before decompressing it.\n\n## Performance\nCompared to `zlib_encode()`, a 40% performance improvement can be observed at level 1, rising to 50-70% at level 6 (default), for approximately the same compression ratios. Also, `libdeflate_deflate_compress()` was observed to sometimes be faster at level 6 compression than `zlib_encode()` at level 1 compression.\n\n## API\n```php\n\u003c?php\n\n/**\n * Equivalent to zlib_encode($data, ZLIB_ENCODING_RAW, $level)\n * @throws \\RuntimeException\n */\nfunction libdeflate_deflate_compress(string $data, int $level = 6) : string;\n\n/**\n * Equivalent to zlib_encode($data, ZLIB_ENCODING_DEFLATE, $level)\n * @throws \\RuntimeException\n */\nfunction libdeflate_zlib_compress(string $data, int $level = 6) : string;\n\n/**\n * Equivalent to zlib_encode($data, ZLIB_ENCODING_GZIP, $level)\n * @throws \\RuntimeException\n */\nfunction libdeflate_gzip_compress(string $data, int $level = 6) : string;\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmmp%2Fext-libdeflate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmmp%2Fext-libdeflate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmmp%2Fext-libdeflate/lists"}