{"id":21467437,"url":"https://github.com/elusivecodes/fyrepath","last_synced_at":"2026-01-31T01:13:45.602Z","repository":{"id":56982777,"uuid":"417070042","full_name":"elusivecodes/FyrePath","owner":"elusivecodes","description":"FyrePath is a free, open-source path library for PHP.","archived":false,"fork":false,"pushed_at":"2024-06-29T01:48:09.000Z","size":86,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-02T23:03:05.248Z","etag":null,"topics":["file","path","php","utility"],"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/elusivecodes.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-14T09:32:31.000Z","updated_at":"2024-06-29T01:48:02.000Z","dependencies_parsed_at":"2024-10-26T08:12:35.591Z","dependency_job_id":"4a3262a7-9233-4439-8857-9349d822be09","html_url":"https://github.com/elusivecodes/FyrePath","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"2274817936552c44b4a144fb80ab93eb3231ffac"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyrePath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyrePath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyrePath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyrePath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elusivecodes","download_url":"https://codeload.github.com/elusivecodes/FyrePath/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226017578,"owners_count":17560539,"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":["file","path","php","utility"],"created_at":"2024-11-23T08:18:07.441Z","updated_at":"2026-01-31T01:13:45.540Z","avatar_url":"https://github.com/elusivecodes.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FyrePath\r\n\r\n**FyrePath** is a free, open-source path library for *PHP*.\r\n\r\n\r\n## Table Of Contents\r\n- [Installation](#installation)\r\n- [Methods](#methods)\r\n\r\n\r\n\r\n## Installation\r\n\r\n**Using Composer**\r\n\r\n```\r\ncomposer require fyre/path\r\n```\r\n\r\nIn PHP:\r\n\r\n```php\r\nuse Fyre\\Utility\\Path;\r\n```\r\n\r\n\r\n## Methods\r\n\r\n**Base Name**\r\n\r\nGet the base name from a file path.\r\n\r\n- `$path` is a string representing the file path.\r\n\r\n```php\r\n$baseName = Path::baseName($path);\r\n```\r\n\r\n**Dir Name**\r\n\r\nGet the directory name from a file path.\r\n\r\n- `$path` is a string representing the file path.\r\n\r\n```php\r\n$dirName = Path::dirName($path);\r\n```\r\n\r\n**Extension**\r\n\r\nGet the file extension from a file path.\r\n\r\n- `$path` is a string representing the file path.\r\n\r\n```php\r\n$extension = Path::extension($path);\r\n```\r\n\r\n**File Name**\r\n\r\nGet the file name from a file path.\r\n\r\n- `$path` is a string representing the file path.\r\n\r\n```php\r\n$fileName = Path::fileName($path);\r\n```\r\n\r\n**Format**\r\n\r\nFormat path info as a file path.\r\n\r\n- `$pathInfo` is an array containing the path info.\r\n\r\n```php\r\n$path = Path::format($pathInfo);\r\n```\r\n\r\n**Is Absolute**\r\n\r\nDetermine whether a file path is absolute.\r\n\r\n- `$path` is a string representing the file path.\r\n\r\n```php\r\n$isAbsolute = Path::isAbsolute($path);\r\n```\r\n\r\n**Join**\r\n\r\nJoin path segments.\r\n\r\nAll arguments supplied will be joined.\r\n\r\n```php\r\n$path = Path::join(...$paths);\r\n```\r\n\r\n**Normalize**\r\n\r\nNormalize a file path.\r\n\r\n- `$path` is a string representing the file path.\r\n\r\n```php\r\n$normalized = Path::normalize($path);\r\n```\r\n\r\n**Parse**\r\n\r\nParse a file path.\r\n\r\n- `$path` is a string representing the file path.\r\n\r\n```php\r\n$pathInfo = Path::parse($path);\r\n```\r\n\r\n**Resolve**\r\n\r\nResolve a file path from path segments.\r\n\r\nAll arguments supplied will be resolved.\r\n\r\n```php\r\n$path = Path::resolve(...$paths);\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felusivecodes%2Ffyrepath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felusivecodes%2Ffyrepath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felusivecodes%2Ffyrepath/lists"}