{"id":13699889,"url":"https://github.com/php-ds/ext-ds","last_synced_at":"2025-05-14T06:05:55.474Z","repository":{"id":46260088,"uuid":"50824235","full_name":"php-ds/ext-ds","owner":"php-ds","description":"An extension providing efficient data structures for PHP 7","archived":false,"fork":false,"pushed_at":"2025-05-02T16:41:49.000Z","size":1086,"stargazers_count":2121,"open_issues_count":24,"forks_count":95,"subscribers_count":87,"default_branch":"master","last_synced_at":"2025-05-02T17:28:48.561Z","etag":null,"topics":["data-structures","extension","pecl","php","php-7"],"latest_commit_sha":null,"homepage":"https://medium.com/p/9dda7af674cd","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/php-ds.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2016-02-01T08:05:07.000Z","updated_at":"2025-05-02T16:41:48.000Z","dependencies_parsed_at":"2024-02-28T17:57:18.592Z","dependency_job_id":"b7a695b0-de06-44eb-9ccd-7c9f89e40650","html_url":"https://github.com/php-ds/ext-ds","commit_stats":null,"previous_names":["php-ds/extension"],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-ds%2Fext-ds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-ds%2Fext-ds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-ds%2Fext-ds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-ds%2Fext-ds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-ds","download_url":"https://codeload.github.com/php-ds/ext-ds/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254078635,"owners_count":22011009,"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","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":["data-structures","extension","pecl","php","php-7"],"created_at":"2024-08-02T20:00:45.281Z","updated_at":"2025-05-14T06:05:55.460Z","avatar_url":"https://github.com/php-ds.png","language":"C","readme":"# Native Data Structures for PHP\n\n[![Build Status](https://github.com/php-ds/ext-ds/workflows/CI/badge.svg)](https://github.com/php-ds/ext-ds/actions?query=workflow%3A%22CI%22+branch%3Amaster)\n[![Build status](https://ci.appveyor.com/api/projects/status/9w0xitp3q04hdu1d?svg=true)](https://ci.appveyor.com/project/rtheunissen/ext-ds)\n[![PECL](https://img.shields.io/badge/PECL-1.6.0-blue.svg)](https://pecl.php.net/package/ds)\n\nA PHP language extension that provides specialized data structures as efficient alternatives to the PHP array.\nYou can read about it in more detail [in this blog post](https://medium.com/p/9dda7af674cd) which highlights the API, performance (relative to PHP 7) and other benefits of using the extension.\n\n## Documentation\n\nDocumentation is available on [php.net](https://www.php.net/manual/en/book.ds.php). You should also include the [polyfill](https://github.com/php-ds/polyfill) in your project for IDE integration.\n\n## Installation\n\nThe easiest way to install the extension is to use PECL:\n\n```\npecl install ds\n```\n\nIf you're on Windows, you can download a compiled `.dll` on [PECL](https://pecl.php.net/package/ds) or under [releases](https://github.com/php-ds/extension/releases).\n\n## Enabling the extension\n\nYou'll need to add `extension=ds.so` to your primary `php.ini` file.\n\nIf you encounter an \"undefined symbol\" error, see [#2](https://github.com/php-ds/extension/issues/2#issuecomment-181855047).\n\n```bash\n# To see where .ini files are located\nphp -i | grep \"\\.ini\"\n```\n\n---\n\nYou can also enable the extension temporarily using the command line:\n\n```bash\nphp -d extension=ds.so\n```\n\n**Note**: Windows would use `php_ds.dll` instead.\n\n## Testing\n\nThere is a suite of PHPUnit tests that can be installed using [**Composer**](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx).\n\n``` bash\ncomposer install   # Install the test suite\ncomposer test      # Run the tests\ncomposer memtest   # Run the tests checking for memory leaks\n```\n\n## Compatibility\n\nYou may include the [polyfill](https://github.com/php-ds/polyfill) as a dependency in your project. This allows your codebase to still function in an environment where the extension is not installed.\n\n## Contributing\n\nFor local development, I'm using Docker:\n\n```\n./dev.sh  # opens a shell into a development environment\n\nphpize\n./configure\nmake\nmake install\n\ncomposer install\ncomposer test\n```\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for more information.\n\n## Credits\n\n- [Rudi Theunissen](https://github.com/rtheunissen)\n- [Joe Watkins](https://github.com/krakjoe)\n\n## License\n\nThe MIT License (MIT). Please see [LICENSE](LICENSE) for more information.\n","funding_links":[],"categories":["C","Data Processing","数据转换"],"sub_categories":["Tokenizers \u0026 Prompt Utilities"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-ds%2Fext-ds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-ds%2Fext-ds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-ds%2Fext-ds/lists"}