{"id":19433209,"url":"https://github.com/ssnepenthe/wp-hashids","last_synced_at":"2025-04-24T20:31:27.342Z","repository":{"id":57058730,"uuid":"89980476","full_name":"ssnepenthe/wp-hashids","owner":"ssnepenthe","description":"Hashids implementation for WordPress.","archived":false,"fork":false,"pushed_at":"2023-02-08T18:53:16.000Z","size":121,"stargazers_count":3,"open_issues_count":5,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-03T10:01:33.876Z","etag":null,"topics":["hashids","php","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":null,"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/ssnepenthe.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}},"created_at":"2017-05-02T01:54:22.000Z","updated_at":"2023-02-09T11:02:47.000Z","dependencies_parsed_at":"2023-02-19T03:15:44.673Z","dependency_job_id":null,"html_url":"https://github.com/ssnepenthe/wp-hashids","commit_stats":{"total_commits":62,"total_committers":1,"mean_commits":62.0,"dds":0.0,"last_synced_commit":"56631d9b5b645e708848a79d643d7128172e258e"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssnepenthe%2Fwp-hashids","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssnepenthe%2Fwp-hashids/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssnepenthe%2Fwp-hashids/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssnepenthe%2Fwp-hashids/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ssnepenthe","download_url":"https://codeload.github.com/ssnepenthe/wp-hashids/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250704630,"owners_count":21473733,"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","php","wordpress","wordpress-plugin"],"created_at":"2024-11-10T14:38:47.382Z","updated_at":"2025-04-24T20:31:27.056Z","avatar_url":"https://github.com/ssnepenthe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wp-hashids\nThis plugin provides a [Hashids](http://hashids.org/php/) implementation for WordPress.\n\n## Requirements\nWordPress 4.7 or greater, PHP 5.6 or greater and Composer.\n\n## Installation\nInstall using Composer:\n\n```\n$ composer require ssnepenthe/wp-hashids\n```\n\n## Usage\nOnce the plugin is activated, browse to `wp-admin \u003e settings \u003e permalinks` and set a custom structure which contains the tag `%hashid%`.\n\nIf you need to manually interact with the underlying Hashids instance for some reason, it can be accessed by calling `_wph_instance( 'hashids' )`.\n\n## Configuration\nSensible defaults are automatically set for you.\n\nIf you wish to set custom values, there are two methods for doing so:\n\n1) Define any number of `WP_HASHIDS_*` constants (preferred)\n2) Browse to `wp-admin \u003e settings \u003e wp hashids` and set the values via the provided interface.\n\nThe following constants can be used for configuration:\n\n* `WP_HASHIDS_ALPHABET` - valid options are `lower`, `upper`, `lowerupper`, `lowernumber`, `uppernumber`, and `all`. You will need to manually flush rewrite rules after changing this constant by going to `settings \u003e permalinks`.\n* `WP_HASHIDS_MIN_LENGTH` - can be any integer \u003e= 0.\n* `WP_HASHIDS_SALT` - should be a unique string to ensure hashids are unique to your site.\n\nKeep in mind that any changes to the plugin settings will immediately change all post URLs that use the `%hashid%` rewrite tag, and as such, should only be modified immediately after plugin activation.\n\nIf all three constants are configured, the `WP Hashids` settings page will not be visible.\n\n## Considerations\nAs mentioned previously, changing any config value will result in all of your post URLs changing. This should only be done immediately after installing the plugin.\n\nThis plugin provides a method of obfuscating post IDs in URLs, however it makes no attempt to hide them anywhere else. If you need to completely mask post IDs from your users, look elsewhere.\n\nCustom post types are supported but you will need to configure a custom permastruct using `add_permastruct()` if you want to remove the post name from the URL.\n\n## Warning\n**HASHIDS ONLY PROVIDES OBFUSCATION OF IDS IN PERMALINKS.**\n\n**IT DOES NOT PROVIDE ENCRYPTION AND IT IS NOT SECURE.**\n\n**YOU SHOULD ASSUME THAT YOUR SALT CAN AND WILL BE READ BY ANYONE THAT CAN VIEW YOUR SITE!**\n\n**FOR THIS REASON, YOU SHOULD NOT (RE)USE ANY SENSITIVE INFORMATION (LIKE PASSWORDS OR CORE SALTS) FOR YOUR HASHIDS SALT.**\n\n**YOUR SALT SHOULD BE A UNIQUE VALUE THAT IS ONLY USED BY THIS PLUGIN.**\n\n**FOR MORE INFORMATION, CHECK THE LINKS LISTED [HERE](http://hashids.org/#decoding).**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssnepenthe%2Fwp-hashids","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fssnepenthe%2Fwp-hashids","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssnepenthe%2Fwp-hashids/lists"}