{"id":17226822,"url":"https://github.com/dantleech/vim-phpnamespace","last_synced_at":"2026-03-11T15:37:16.607Z","repository":{"id":32024030,"uuid":"35595276","full_name":"dantleech/vim-phpnamespace","owner":"dantleech","description":"Insert namespace for current file","archived":false,"fork":false,"pushed_at":"2021-02-17T20:17:59.000Z","size":6,"stargazers_count":7,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T01:12:58.485Z","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/dantleech.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}},"created_at":"2015-05-14T06:35:48.000Z","updated_at":"2021-03-14T04:30:49.000Z","dependencies_parsed_at":"2022-08-24T14:22:47.344Z","dependency_job_id":null,"html_url":"https://github.com/dantleech/vim-phpnamespace","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dantleech/vim-phpnamespace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantleech%2Fvim-phpnamespace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantleech%2Fvim-phpnamespace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantleech%2Fvim-phpnamespace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantleech%2Fvim-phpnamespace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dantleech","download_url":"https://codeload.github.com/dantleech/vim-phpnamespace/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantleech%2Fvim-phpnamespace/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30386175,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T14:10:17.325Z","status":"ssl_error","status_checked_at":"2026-03-11T14:09:37.934Z","response_time":84,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-10-15T04:17:19.085Z","updated_at":"2026-03-11T15:37:16.575Z","avatar_url":"https://github.com/dantleech.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Vim Namespace\n=============\n\nPlugin which guesses the namespace of the current file from `composer.json`.\n\nNote that the algorithm for determining the namespace is not 100% accurate\n(although it could be) but it should work in the majority of cases.\n\nIt should work with both `psr-0` and `psr-4` projects.\n\nInstallation\n------------\n\nWith Vundle:\n\n````vim\nPlugin \"dantleech/vim-phpnamespace\"\n````\n\nUsage\n-----\n\nMap it:\n\n````vim\nnnoremap \u003csilent\u003e\u003cleader\u003enn :call PhpNamespaceInsert()\u003cCR\u003e\n````\n\nCall it:\n\n````vim\nlet s:foo = PhpNamespaceGet()\n````\n\nIntegration with Ultisnips\n--------------------------\n\nUse it with ultisnips to generate class / interface templates:\n\n````vim\nsnippet interface \"Interface declaration template\" !b\n\u003c?php\n\nnamespace ${1:`!v PhpNamespaceGet()`};\n\ninterface ${1:`!v expand(\"%:t:r\")`}\n{\n    $0;\n}\nendsnippet\n\nsnippet class \"Class declaration template\" !b\n\u003c?php\n\nnamespace ${1:`!v PhpNamespaceGet()`};\n\nclass ${1:`!v expand(\"%:t:r\")`}\n{\n    $0;\n}\nendsnippet\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdantleech%2Fvim-phpnamespace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdantleech%2Fvim-phpnamespace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdantleech%2Fvim-phpnamespace/lists"}