{"id":18431290,"url":"https://github.com/zhan3333/php-namespace-explain","last_synced_at":"2025-07-19T02:33:36.971Z","repository":{"id":102225416,"uuid":"101983483","full_name":"zhan3333/php-namespace-explain","owner":"zhan3333","description":"php 命名空间讲解","archived":false,"fork":false,"pushed_at":"2017-08-31T14:57:41.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T00:50:05.410Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhan3333.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-08-31T09:22:46.000Z","updated_at":"2018-11-30T06:31:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"263e8710-c01a-428a-bd34-d924f90fec11","html_url":"https://github.com/zhan3333/php-namespace-explain","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zhan3333/php-namespace-explain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhan3333%2Fphp-namespace-explain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhan3333%2Fphp-namespace-explain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhan3333%2Fphp-namespace-explain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhan3333%2Fphp-namespace-explain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhan3333","download_url":"https://codeload.github.com/zhan3333/php-namespace-explain/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhan3333%2Fphp-namespace-explain/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265877029,"owners_count":23842956,"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":[],"created_at":"2024-11-06T05:24:14.012Z","updated_at":"2025-07-19T02:33:36.951Z","avatar_url":"https://github.com/zhan3333.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 使用\n\n1. 非限定命名使用\n2. 限定命名使用\n3. 完全限定名称使用\n\n- 类比与文件系统\n    1. 在当前目录下直接使用文件(当前路径) `vim 123.txt`\n    2. 在当前目录下的文件夹中使用文件(相对路径) `vim dir_a/123.txt`\n    3. 在根目录下的访问(绝对路径) `vim /data/wwwroot/dir/123.txt`\n- 命名空间中使用\n    1. 在当前命名空间下使用 `get_name()`\n    2. 使用子命名空间下的文件 `lib\\get_name()`\n    3. 相对于根目录下的访问 `\\App\\lib\\get_name()`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhan3333%2Fphp-namespace-explain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhan3333%2Fphp-namespace-explain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhan3333%2Fphp-namespace-explain/lists"}