{"id":15027178,"url":"https://github.com/teodoroleckie/url-signer","last_synced_at":"2026-03-27T02:33:42.314Z","repository":{"id":57070544,"uuid":"361664606","full_name":"teodoroleckie/url-signer","owner":"teodoroleckie","description":"⚡ Create secured URLs with a limited lifetime in php","archived":false,"fork":false,"pushed_at":"2021-05-11T07:27:13.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-30T14:50:00.918Z","etag":null,"topics":["php-8","safe-uri","safe-url","safety","security","uri-check","url-signer"],"latest_commit_sha":null,"homepage":"","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/teodoroleckie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["teodoroleckie"],"custom":["https://www.paypal.com/donate?business=ZHYA2MTGA4884\u0026currency_code=USD"]}},"created_at":"2021-04-26T07:55:11.000Z","updated_at":"2021-05-13T05:34:15.000Z","dependencies_parsed_at":"2022-08-24T10:41:07.615Z","dependency_job_id":null,"html_url":"https://github.com/teodoroleckie/url-signer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/teodoroleckie/url-signer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teodoroleckie%2Furl-signer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teodoroleckie%2Furl-signer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teodoroleckie%2Furl-signer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teodoroleckie%2Furl-signer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teodoroleckie","download_url":"https://codeload.github.com/teodoroleckie/url-signer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teodoroleckie%2Furl-signer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31010296,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T02:33:22.146Z","status":"ssl_error","status_checked_at":"2026-03-27T02:33:21.763Z","response_time":164,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["php-8","safe-uri","safe-url","safety","security","uri-check","url-signer"],"created_at":"2024-09-24T20:05:53.971Z","updated_at":"2026-03-27T02:33:42.280Z","avatar_url":"https://github.com/teodoroleckie.png","language":"PHP","funding_links":["https://github.com/sponsors/teodoroleckie","https://www.paypal.com/donate?business=ZHYA2MTGA4884\u0026currency_code=USD"],"categories":[],"sub_categories":[],"readme":"# url-signer\n\nCreate secured URLs with a limited lifetime in php\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/tleckie/url-signer.svg?style=flat-square)](https://packagist.org/packages/tleckie/url-signer)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/teodoroleckie/url-signer/badges/quality-score.png?b=main)](https://scrutinizer-ci.com/g/teodoroleckie/url-signer/?branch=main)\n[![Total Downloads](https://img.shields.io/packagist/dt/tleckie/url-signer.svg?style=flat-square)](https://packagist.org/packages/tleckie/url-signer)\n[![Code Intelligence Status](https://scrutinizer-ci.com/g/teodoroleckie/url-signer/badges/code-intelligence.svg?b=main)](https://scrutinizer-ci.com/code-intelligence)\n[![Build Status](https://scrutinizer-ci.com/g/teodoroleckie/url-signer/badges/build.png?b=main)](https://scrutinizer-ci.com/g/teodoroleckie/url-signer/build-status/main)\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require tleckie/url-signer\n```\n\n## Usage\n\n```php\n\u003c?php\n\n\nuse Tleckie\\UrlSigner\\Exception\\UnsignedException;\nuse Tleckie\\UrlSigner\\Exception\\ExpiredUriException;\nuse Tleckie\\UrlSigner\\Signer;\n\n// sign with expiration\n$signer = new Signer('password', 'signature','ttl',3600);\n$signed = $signer-\u003esign('https://www.domain.com/path/?query=value');\n// https://www.domain.com/path/?query=value\u0026ttl=1619446592\u0026signature=b42cb0868c6c46aad10d2a5f6e3c6503cd6b9668\n\n\ntry{\n\n    $signer-\u003evalidate($signed);\n\n}catch(ExpiredUriException $exception){\n    // handle expired uri\n\n}catch(UnsignedException $exception){\n    // Decrypt failed\n}\n\n\n// sign without expiration\n$signer = new Signer('password', 'signature');\n$signed = $signer-\u003esign('https://www.domain.com/path/?query=value');\n// https://www.domain.com/path/?query=value\u0026signature=e39fe2feea843712dc2b3fa069a50c6965594f5b\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteodoroleckie%2Furl-signer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteodoroleckie%2Furl-signer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteodoroleckie%2Furl-signer/lists"}