{"id":20410026,"url":"https://github.com/vdlp/oc-hashids-plugin","last_synced_at":"2025-04-12T15:53:14.035Z","repository":{"id":47291353,"uuid":"166390703","full_name":"vdlp/oc-hashids-plugin","owner":"vdlp","description":"Allows developers to use secure hashed ID's in October CMS powered websites.","archived":false,"fork":false,"pushed_at":"2024-03-14T13:48:06.000Z","size":41,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-03-14T14:53:35.668Z","etag":null,"topics":["hashids","hashing","laravel","october-cms","octobercms","octobercms-plugin","php","security"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vdlp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2019-01-18T10:53:18.000Z","updated_at":"2024-03-14T14:53:35.669Z","dependencies_parsed_at":"2024-11-15T12:16:39.853Z","dependency_job_id":null,"html_url":"https://github.com/vdlp/oc-hashids-plugin","commit_stats":{"total_commits":27,"total_committers":4,"mean_commits":6.75,"dds":0.2222222222222222,"last_synced_commit":"d20bb3f4f102e46026b5da40fb139a0e981f8760"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdlp%2Foc-hashids-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdlp%2Foc-hashids-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdlp%2Foc-hashids-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdlp%2Foc-hashids-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vdlp","download_url":"https://codeload.github.com/vdlp/oc-hashids-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248592129,"owners_count":21130184,"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":["hashids","hashing","laravel","october-cms","octobercms","octobercms-plugin","php","security"],"created_at":"2024-11-15T05:44:37.907Z","updated_at":"2025-04-12T15:53:14.011Z","avatar_url":"https://github.com/vdlp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\t\u003cimg height=\"60px\" width=\"60px\" src=\"https://plugins.vdlp.nl/octobercms/icons/Vdlp.Hashids.svg\"\u003e\n\t\u003ch1 align=\"center\"\u003eVdlp.Hashids\u003c/h1\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003cem\u003eAllows developers to use secure hashed ID's.\u003c/em\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg src=\"https://badgen.net/packagist/php/vdlp/oc-hashids-plugin\"\u003e\n\t\u003cimg src=\"https://badgen.net/packagist/license/vdlp/oc-hashids-plugin\"\u003e\n\t\u003cimg src=\"https://badgen.net/packagist/v/vdlp/oc-hashids-plugin/latest\"\u003e\n\t\u003cimg src=\"https://badgen.net/badge/cms/October%20CMS\"\u003e\n\t\u003cimg src=\"https://badgen.net/badge/type/plugin\"\u003e\n\t\u003cimg src=\"https://plugins.vdlp.nl/octobercms/badge/installations.php?plugin=vdlp-hashids\"\u003e\n\u003c/p\u003e\n\nFetches RSS/Atom feeds to put on your website. It can be automated using a cronjob or triggered manually.\n\nIt converts numbers like 347 into strings like \"yr8\", or array of numbers like [27, 986] into \"3kTMd\".\n\nYou can also decode those ids back. This is useful in bundling several parameters into one or simply using them as short UIDs.\n\n## Requirements\n\n* PHP 8.0.2 or higher\n* October CMS 2.x or higher\n\n## Installation\n\n```\ncomposer require vdlp/oc-hashids-plugin\n```\n\n## Configuration\n\nTo configure this plugin execute the following command:\n\n```\nphp artisan vendor:publish --provider=\"Vdlp\\Hashids\\ServiceProvider\" --tag=\"config\"\n```\n\nThis will create a `config/hashids.php` file in your app where you can modify the configuration.\n\n## Example\n\nHere you can see an example of how to use this plugin. Out of the box, the default configuration used is `main`.\n\n```\n// You can use this class with Dependency Injection\nuse Vdlp\\Hashids\\Classes\\HashidsManager;\n\n/** @var HashidsManager $hashids */\n$hashidsManager = resolve(HashidsManager::class);\n\n// Encodes the integer 1 to a hashid using the default configuration\n$hashidsManager-\u003eencode(1);\n$hashidsManager-\u003einstance()-\u003eencode(1);\n\n// Encodes the integer 1 to a hashid using a different configuration\n$hashidsManager-\u003einstance('different-configuration')-\u003eencode(1);\n```\n\n## Questions? Need help?\n\nIf you have any question about how to use this plugin, please don't hesitate to contact us at octobercms@vdlp.nl. We're happy to help you. You can also visit the support forum and drop your questions/issues there.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvdlp%2Foc-hashids-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvdlp%2Foc-hashids-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvdlp%2Foc-hashids-plugin/lists"}