{"id":13601101,"url":"https://github.com/apioo/psx-uri","last_synced_at":"2025-08-11T09:39:37.174Z","repository":{"id":57045585,"uuid":"55151476","full_name":"apioo/psx-uri","owner":"apioo","description":"URI, URL and URN value objects","archived":false,"fork":false,"pushed_at":"2025-02-02T10:34:42.000Z","size":74,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-08T07:04:17.682Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apioo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"chriskapp","patreon":"fusio","custom":"https://www.paypal.me/fusioapi"}},"created_at":"2016-03-31T13:09:37.000Z","updated_at":"2025-02-02T10:33:46.000Z","dependencies_parsed_at":"2024-01-16T23:26:37.784Z","dependency_job_id":"c9c3292e-ec64-453a-923b-806de2fc0be2","html_url":"https://github.com/apioo/psx-uri","commit_stats":{"total_commits":37,"total_committers":2,"mean_commits":18.5,"dds":"0.16216216216216217","last_synced_commit":"920a945ec4710b26461754c4fe1ea49960431a8a"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/apioo/psx-uri","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apioo%2Fpsx-uri","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apioo%2Fpsx-uri/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apioo%2Fpsx-uri/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apioo%2Fpsx-uri/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apioo","download_url":"https://codeload.github.com/apioo/psx-uri/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apioo%2Fpsx-uri/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269864153,"owners_count":24487576,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-08-01T18:00:55.733Z","updated_at":"2025-08-11T09:39:36.859Z","avatar_url":"https://github.com/apioo.png","language":"PHP","funding_links":["https://github.com/sponsors/chriskapp","https://patreon.com/fusio","https://www.paypal.me/fusioapi"],"categories":["Repositories"],"sub_categories":[],"readme":"\n# Uri\n\n## About\n\nLibrary which contains value objects to represent URI, URL and URNs. The value\nobjects are immutable so in case you change a value through a with* method you\nget a new instance of that object. There is also a uri resolver class to resolve\na uri against a base uri.\n\n## Usage\n\n```php\n\u003c?php\n\n$uri = Uri::parse('/bar?foo=bar');\n\n$uri-\u003egetPath(); // /bar\n$uri-\u003egetQuery(); // foo=bar\n$uri-\u003egetParameters(); // ['foo' =\u003e 'bar']\n\n$uri = $uri-\u003ewithScheme('https');\n$uri = $uri-\u003ewithScheme('foo.com');\n\necho $uri-\u003etoString(); // https://foo.com/bar?foo=bar\n\n// the url object validates whether a scheme and host is available thus it is a valid url\n$url = Url::parse($uri-\u003etoString());\n\n// a urn provides additional getter to get the urn specific components. A urn must start with urn:\n$urn = Urn::parse('urn:uuid:6e8bc430-9c3a-11d9-9669-0800200c9a66');\n\n$urn-\u003egetNid(); // uuid\n$urn-\u003egetNss(); // 6e8bc430-9c3a-11d9-9669-0800200c9a66\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapioo%2Fpsx-uri","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapioo%2Fpsx-uri","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapioo%2Fpsx-uri/lists"}