{"id":33960178,"url":"https://github.com/phlib/path","last_synced_at":"2026-06-03T19:31:20.569Z","repository":{"id":57039045,"uuid":"63427462","full_name":"phlib/path","owner":"phlib","description":"PHP path handling component for dealing with escaped directory separators","archived":false,"fork":false,"pushed_at":"2025-01-29T14:27:26.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-17T13:02:52.731Z","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":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phlib.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2016-07-15T14:22:36.000Z","updated_at":"2025-01-29T14:27:31.000Z","dependencies_parsed_at":"2024-02-02T18:47:13.071Z","dependency_job_id":null,"html_url":"https://github.com/phlib/path","commit_stats":{"total_commits":28,"total_committers":3,"mean_commits":9.333333333333334,"dds":0.3214285714285714,"last_synced_commit":"3372c61cae1ebb078fb330e7a1f3cc9360d37999"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/phlib/path","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phlib%2Fpath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phlib%2Fpath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phlib%2Fpath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phlib%2Fpath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phlib","download_url":"https://codeload.github.com/phlib/path/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phlib%2Fpath/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27692498,"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-12-12T02:00:06.775Z","response_time":129,"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":"2025-12-12T21:45:46.464Z","updated_at":"2025-12-12T21:45:47.184Z","avatar_url":"https://github.com/phlib.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# phlib/path\n\n[![Code Checks](https://img.shields.io/github/actions/workflow/status/phlib/path/code-checks.yml?logo=github)](https://github.com/phlib/path/actions/workflows/code-checks.yml)\n[![Codecov](https://img.shields.io/codecov/c/github/phlib/path.svg?logo=codecov)](https://codecov.io/gh/phlib/path)\n[![Latest Stable Version](https://img.shields.io/packagist/v/phlib/path.svg?logo=packagist)](https://packagist.org/packages/phlib/path)\n[![Total Downloads](https://img.shields.io/packagist/dt/phlib/path.svg?logo=packagist)](https://packagist.org/packages/phlib/path)\n![Licence](https://img.shields.io/github/license/phlib/path.svg)\n\nPHP path handling component for dealing with escaped directory separators\n\n## Install\n\nVia Composer\n\n``` bash\n$ composer require phlib/path\n```\n\n## Usage\n\nCreation of path instance\n\n``` php\n$path = \\Phlib\\Path::fromString('foo/bar/baz');\n$info = $path-\u003einfo(); // should return the same as `pathinfo`\n```\n\nUsing path to parse paths with escaped directory separators \n\n``` php\n$path = \\Phlib\\Path::fromString('foo/bar\\\\/baz');\necho $path-\u003einfo(\\Phlib\\Path::INFO_BASENAME); // bar\\/baz\n```\n\nBuild paths with escaped separators\n\n``` php\n$parts = ['foo', 'bar/baz', 'taz'];\n$path  = new \\Phlib\\Path($parts);\necho $path-\u003etoString(); // foo/bar\\/baz/taz\n```\n\n## License\n\nThis package is free software: you can redistribute it and/or modify\nit under the terms of the GNU Lesser General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU Lesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphlib%2Fpath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphlib%2Fpath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphlib%2Fpath/lists"}