{"id":17192116,"url":"https://github.com/arokettu/bencode","last_synced_at":"2025-08-20T12:31:43.408Z","repository":{"id":54692081,"uuid":"85870630","full_name":"arokettu/bencode","owner":"arokettu","description":"PHP Bencode (BitTorrent) Encoder/Decoder","archived":false,"fork":false,"pushed_at":"2024-10-11T15:26:29.000Z","size":356,"stargazers_count":22,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-10T02:11:02.429Z","etag":null,"topics":["bencode","bittorrent","php-library","torrent","torrent-files"],"latest_commit_sha":null,"homepage":"https://sandfox.dev/php/bencode.html","language":"PHP","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/arokettu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2017-03-22T20:00:10.000Z","updated_at":"2024-10-11T15:26:33.000Z","dependencies_parsed_at":"2023-12-21T18:53:33.489Z","dependency_job_id":"f51d9097-54f6-4509-941a-843ae72520cc","html_url":"https://github.com/arokettu/bencode","commit_stats":{"total_commits":386,"total_committers":2,"mean_commits":193.0,"dds":"0.012953367875647714","last_synced_commit":"7c9c98633b05ff02a0ebc9b6954dbbdfe2552f6f"},"previous_names":[],"tags_count":43,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arokettu%2Fbencode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arokettu%2Fbencode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arokettu%2Fbencode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arokettu%2Fbencode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arokettu","download_url":"https://codeload.github.com/arokettu/bencode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230423563,"owners_count":18223435,"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":["bencode","bittorrent","php-library","torrent","torrent-files"],"created_at":"2024-10-15T01:28:18.120Z","updated_at":"2024-12-19T11:12:33.558Z","avatar_url":"https://github.com/arokettu.png","language":"PHP","readme":"# PHP Bencode Encoder/Decoder\n\n[![Packagist](https://img.shields.io/packagist/v/arokettu/bencode.svg?style=flat-square)](https://packagist.org/packages/arokettu/bencode)\n[![PHP](https://img.shields.io/packagist/php-v/arokettu/bencode.svg?style=flat-square)](https://packagist.org/packages/arokettu/bencode)\n[![Packagist](https://img.shields.io/github/license/arokettu/bencode.svg?style=flat-square)](https://opensource.org/licenses/MIT)\n[![Gitlab pipeline status](https://img.shields.io/gitlab/pipeline/sandfox/bencode/master.svg?style=flat-square)](https://gitlab.com/sandfox/bencode/-/pipelines)\n[![Codecov](https://img.shields.io/codecov/c/gl/sandfox/bencode?style=flat-square)](https://codecov.io/gl/sandfox/bencode/)\n\n[Bencode] is the encoding used by the peer-to-peer file sharing system\n[BitTorrent] for storing and transmitting loosely structured data.\n\nThis is a pure PHP library that allows you to encode and decode Bencode data.\n\n## Installation\n\n```bash\ncomposer require 'arokettu/bencode'\n```\n\nSupported versions:\n\n* 4.x (current, PHP 8.1+)\n\n## Simple use\n\n```php\n\u003c?php\n\n\\Arokettu\\Bencode\\Bencode::encode(['info' =\u003e ['length' =\u003e 12345, 'name' =\u003e 'Bencoded demo']]);\n\\Arokettu\\Bencode\\Bencode::decode('d4:infod6:lengthi12345e4:name13:Bencoded demoee');\n```\n\n## Documentation\n\nRead full documentation here: \u003chttps://sandfox.dev/php/bencode.html\u003e\n\nDocumentation for all past major versions can be found on Read the Docs:\n\n* 1.x: \u003chttps://bencode.readthedocs.io/en/1.x/\u003e\n* 2.x: \u003chttps://bencode.readthedocs.io/en/2.x/\u003e\n* 3.x: \u003chttps://bencode.readthedocs.io/en/3.x/\u003e\n* 4.x: \u003chttps://bencode.readthedocs.io/\u003e\n\n## Support\n\nPlease file issues on our main repo at GitLab: \u003chttps://gitlab.com/sandfox/bencode/-/issues\u003e\n\nFeel free to ask any questions in our room on Gitter: \u003chttps://gitter.im/arokettu/community\u003e\n\n## License\n\nThe library is available as open source under the terms of the [MIT License].\n\n[Bencode]:      https://en.wikipedia.org/wiki/Bencode\n[BitTorrent]:   https://en.wikipedia.org/wiki/BitTorrent\n[MIT License]:  https://opensource.org/licenses/MIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farokettu%2Fbencode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farokettu%2Fbencode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farokettu%2Fbencode/lists"}