{"id":18552005,"url":"https://github.com/baraja-core/url","last_synced_at":"2025-07-25T05:06:31.973Z","repository":{"id":48560366,"uuid":"331239735","full_name":"baraja-core/url","owner":"baraja-core","description":"Simple URL parser and manager.","archived":false,"fork":false,"pushed_at":"2024-01-23T04:36:21.000Z","size":30,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-12T10:47:01.270Z","etag":null,"topics":["manager","parser","url","url-parser"],"latest_commit_sha":null,"homepage":"https://php.baraja.cz","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/baraja-core.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":"janbarasek","custom":["https://brj.app","https://baraja.cz","https://php.baraja.cz"]}},"created_at":"2021-01-20T08:24:14.000Z","updated_at":"2023-10-22T22:55:05.000Z","dependencies_parsed_at":"2024-06-19T11:17:19.774Z","dependency_job_id":"ec4240f4-9673-4460-88d7-26c00dd34f19","html_url":"https://github.com/baraja-core/url","commit_stats":{"total_commits":36,"total_committers":3,"mean_commits":12.0,"dds":0.05555555555555558,"last_synced_commit":"49e65dbd5cac23010d018ef46bddb76236c1ebe4"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/baraja-core/url","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baraja-core%2Furl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baraja-core%2Furl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baraja-core%2Furl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baraja-core%2Furl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baraja-core","download_url":"https://codeload.github.com/baraja-core/url/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baraja-core%2Furl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265352477,"owners_count":23751925,"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":["manager","parser","url","url-parser"],"created_at":"2024-11-06T21:11:32.172Z","updated_at":"2025-07-25T05:06:31.887Z","avatar_url":"https://github.com/baraja-core.png","language":"PHP","funding_links":["https://github.com/sponsors/janbarasek","https://brj.app","https://baraja.cz","https://php.baraja.cz"],"categories":[],"sub_categories":[],"readme":"Baraja safe URL\n===============\n\n![Integrity check](https://github.com/baraja-core/url/workflows/Integrity%20check/badge.svg)\n\nSimple manager to get parts of the current URL. URL resolving is done in a secure way.\n\n📦 Installation\n---------------\n\nIt's best to use [Composer](https://getcomposer.org) for installation, and you can also find the package on\n[Packagist](https://packagist.org/packages/baraja-core/url) and\n[GitHub](https://github.com/baraja-core/url).\n\nTo install, simply use the command:\n\n```\n$ composer require baraja-core/url\n```\n\nYou can use the package manually by creating an instance of the internal classes, or register a DIC extension to link the services directly to the Nette Framework.\n\nHow to use\n----------\n\nAn easy-to-use library for obtaining and managing current URLs.\n\nYou will get the current URL:\n\n```php\necho \\Baraja\\Url\\Url::get()-\u003egetCurrentUrl();\n```\n\nA base URL:\n\n```php\necho \\Baraja\\Url\\Url::get()-\u003egetBaseUrl();\n```\n\nOr relative URL:\n\n```php\n// return with query parameters (if used)\necho \\Baraja\\Url\\Url::get()-\u003egetRelativeUrl();\n\n// return only path\necho \\Baraja\\Url\\Url::get()-\u003egetRelativeUrl(false);\n```\n\nNette Url or Script Url can also be obtained for robust work with URL parts:\n\n```php\n$netteUrl = \\Baraja\\Url\\Url::get()-\u003egetNetteUrl();\n\necho $netteUrl-\u003egetDomain();\necho $netteUrl-\u003egetPort();\necho $netteUrl-\u003egetQuery();\n```\n\nAnd many other getters, [see the documentation](https://github.com/nette/http) for more.\n\n📄 License\n-----------\n\n`baraja-core/url` is licensed under the MIT license. See the [LICENSE](https://github.com/baraja-core/url/blob/master/LICENSE) file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaraja-core%2Furl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaraja-core%2Furl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaraja-core%2Furl/lists"}