{"id":17172839,"url":"https://github.com/wodcz/hashrouterextension","last_synced_at":"2025-07-17T09:41:06.246Z","repository":{"id":92989490,"uuid":"44914835","full_name":"wodCZ/hashRouterExtension","owner":"wodCZ","description":"Nette Framework extension that masks ids in urls to hashes and vice versa","archived":false,"fork":false,"pushed_at":"2015-10-25T18:06:24.000Z","size":144,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T23:49:14.292Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/wodCZ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-25T15:03:02.000Z","updated_at":"2015-10-26T12:26:46.000Z","dependencies_parsed_at":"2023-03-07T06:41:32.656Z","dependency_job_id":null,"html_url":"https://github.com/wodCZ/hashRouterExtension","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wodCZ%2FhashRouterExtension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wodCZ%2FhashRouterExtension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wodCZ%2FhashRouterExtension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wodCZ%2FhashRouterExtension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wodCZ","download_url":"https://codeload.github.com/wodCZ/hashRouterExtension/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245344364,"owners_count":20599940,"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":[],"created_at":"2024-10-14T23:48:02.877Z","updated_at":"2025-03-24T20:22:41.574Z","avatar_url":"https://github.com/wodCZ.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hash-router-extension\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]](LICENSE.md)\n[![Build Status][ico-travis]][link-travis]\n[![Coverage Status][ico-scrutinizer]][link-scrutinizer]\n[![Quality Score][ico-code-quality]][link-code-quality]\n[![Total Downloads][ico-downloads]][link-downloads]\n\n\nThis is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what\nPSRs you support to avoid any confusion with users and contributors.\n\n## Install\n\nVia Composer\n\n``` bash\n$ composer require wodcz/hash-router-extension\n```\n\nthen register extension in config.neon:\n\n```\nextensions:\n    hashRouter: WodCZ\\HashRouterExtension\\DI\\HashRouterExtension\n```\n\nand finally, configure extension:\n\n **salt** is required. You should pick unique salt, so you get never-seen hashes.\n **styles** is array of router styles, which will be handled by this extension. by default only id style is handled\n\n```\nhashRouter:\n    salt: loremipsum\n    styles: ['id']\n```\n\n\n\n## Usage\n\nAfter configuring styles (and cleaning cache), router will automatically hash chosen parameters when generating links \nand, of course, will translate them back from request. \n\n## Security, limits\n\nThis extension is only wrapper for [hashids](http://hashids.org/php/) library.\nLook at their [official documentation](http://hashids.org/php/) and [repository](https://github.com/ivanakimov/hashids.php/tree/master) for more information.\n\nTLDR:\n - there are no collisions thanks to integer to hex conversion\n - you **can't** encode negative numbers \n - you **can't** encode strings \n - you **shouldn't** encode sensitive data \n - you **can't** encode numbers greater then 1,000,000,000 by default because of php limitations. [read more here](https://github.com/ivanakimov/hashids.php/tree/master#big-numbers)\n\n## Known bugs, limitations\n - this extension currently doesn't handle component signal parameters, I'm not sure how to handle this nicely\n \n\n## Testing\n\nCurrently no tests are written, sorry.\n\n``` bash\n$ composer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email admin@ikw.cz instead of using the issue tracker.\n\n## Credits\n\n- [Martin Janeček][link-author]\n- [All Contributors][link-contributors]\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/wodcz/hash-router-extension.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-travis]: https://img.shields.io/travis/wodcz/hash-router-extension/master.svg?style=flat-square\n[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/wodcz/hash-router-extension.svg?style=flat-square\n[ico-code-quality]: https://img.shields.io/scrutinizer/g/wodcz/hash-router-extension.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/wodcz/hash-router-extension.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/wodcz/hash-router-extension\n[link-travis]: https://travis-ci.org/wodcz/hash-router-extension\n[link-scrutinizer]: https://scrutinizer-ci.com/g/wodcz/hash-router-extension/code-structure\n[link-code-quality]: https://scrutinizer-ci.com/g/wodcz/hash-router-extension\n[link-downloads]: https://packagist.org/packages/wodcz/hash-router-extension\n[link-author]: https://github.com/wodCZ\n[link-contributors]: ../../contributors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwodcz%2Fhashrouterextension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwodcz%2Fhashrouterextension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwodcz%2Fhashrouterextension/lists"}