{"id":22748832,"url":"https://github.com/apinstein/expiringhash","last_synced_at":"2025-07-12T14:42:56.448Z","repository":{"id":1872696,"uuid":"2797939","full_name":"apinstein/ExpiringHash","owner":"apinstein","description":"Simple class for generating secure, expiring URLs","archived":false,"fork":false,"pushed_at":"2014-04-01T14:14:09.000Z","size":124,"stargazers_count":13,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-23T17:31:25.313Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://pearfarm.org/apinstein/ExpiringHash","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apinstein.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-11-17T19:24:07.000Z","updated_at":"2019-08-13T14:52:54.000Z","dependencies_parsed_at":"2022-07-08T02:10:26.081Z","dependency_job_id":null,"html_url":"https://github.com/apinstein/ExpiringHash","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/apinstein/ExpiringHash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apinstein%2FExpiringHash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apinstein%2FExpiringHash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apinstein%2FExpiringHash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apinstein%2FExpiringHash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apinstein","download_url":"https://codeload.github.com/apinstein/ExpiringHash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apinstein%2FExpiringHash/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265005032,"owners_count":23696531,"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-12-11T03:35:56.991Z","updated_at":"2025-07-12T14:42:56.401Z","avatar_url":"https://github.com/apinstein.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"ExpiringHash\n\nSmall helper class to create a URL parameter containing a tamper-proof expiration date. \n\nThis allows you to implement expiring URLs in the same way that Amazon S3 supports.\n\n```php\n// create\n$eh = new ExpiringHash('my secret');\n$hash = $eh-\u003egenerate(\"15 minutes\");\n$url = \"http://foo.com/mydownload?hash={$hash}\";\n\n// verify\n$eh = new ExpiringHash('my secret');\n$okToDownload = $eh-\u003evalidate($_GET['hash']);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapinstein%2Fexpiringhash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapinstein%2Fexpiringhash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapinstein%2Fexpiringhash/lists"}