{"id":42583826,"url":"https://github.com/reshadman/php-bijective-shortener","last_synced_at":"2026-01-28T22:38:47.032Z","repository":{"id":28730390,"uuid":"32251634","full_name":"reshadman/php-bijective-shortener","owner":"reshadman","description":"A Bijectiive Shortener based on longening the base of the given number","archived":false,"fork":false,"pushed_at":"2015-03-15T09:48:00.000Z","size":164,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-09T08:35:07.520Z","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":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reshadman.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}},"created_at":"2015-03-15T08:45:59.000Z","updated_at":"2020-04-08T15:01:42.000Z","dependencies_parsed_at":"2022-08-17T22:15:23.713Z","dependency_job_id":null,"html_url":"https://github.com/reshadman/php-bijective-shortener","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/reshadman/php-bijective-shortener","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reshadman%2Fphp-bijective-shortener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reshadman%2Fphp-bijective-shortener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reshadman%2Fphp-bijective-shortener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reshadman%2Fphp-bijective-shortener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reshadman","download_url":"https://codeload.github.com/reshadman/php-bijective-shortener/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reshadman%2Fphp-bijective-shortener/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28853739,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T15:15:36.453Z","status":"ssl_error","status_checked_at":"2026-01-28T15:15:13.020Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-28T22:38:46.486Z","updated_at":"2026-01-28T22:38:47.026Z","avatar_url":"https://github.com/reshadman.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Php Bijective Shortener\nThis package is a bijective shortener which shortens your unique integer identifier(like a mysql auto increment key) to a unique short string, the strategy simply makes a number with a longer base.\n\n### Usage\nYou can set the characters which you want to be included into the shortened string, by default a random string is set. You should note that this is not an encrypting solution it's just an encoding solution like base_64 but in a bigger base, but by making a random sort of allowed characters you can gaurantee that it is impossible to guess a long number given a shortened string.\n```php\n\u003c?php\nuse \\Reshadman\\BijectiveShortener\\BijectiveShortener;\n\nBijectiveShortener::setChars(\n    'YRCAtS2qcL06JzFeWIsf9HbwgVPUoOkrZpaGm47vjNEuMT1dynlDxXhQK8i5B3'\n);\n\n$shortened = BijectiveShortener::makeFromInteger($int = 60500);\n\n$decoded = BijectiveShortener::decodeToInteger($shortened);\n\necho 'The Shortened version of ' . $int ' is' . $shortened '\\n';\necho 'The decoded version of ' . $shortened ' is ' . $decoded ' which is equal to original number(' . $int ')';\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freshadman%2Fphp-bijective-shortener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freshadman%2Fphp-bijective-shortener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freshadman%2Fphp-bijective-shortener/lists"}