{"id":18358754,"url":"https://github.com/phmlabs/namespaceanalyzer","last_synced_at":"2025-04-06T13:31:38.018Z","repository":{"id":3612106,"uuid":"4677223","full_name":"phmLabs/NamespaceAnalyzer","owner":"phmLabs","description":"Namespace Analyzer - This tool will check if all used (T_USE) namespaces are needed in a given PHP file.","archived":false,"fork":false,"pushed_at":"2014-05-24T18:04:48.000Z","size":167,"stargazers_count":9,"open_issues_count":5,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T00:44:17.304Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.phmlabs.com","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/phmLabs.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":"2012-06-15T16:06:26.000Z","updated_at":"2016-06-15T12:42:40.000Z","dependencies_parsed_at":"2022-08-23T23:30:59.566Z","dependency_job_id":null,"html_url":"https://github.com/phmLabs/NamespaceAnalyzer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phmLabs%2FNamespaceAnalyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phmLabs%2FNamespaceAnalyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phmLabs%2FNamespaceAnalyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phmLabs%2FNamespaceAnalyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phmLabs","download_url":"https://codeload.github.com/phmLabs/NamespaceAnalyzer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247488536,"owners_count":20946957,"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-05T22:19:20.761Z","updated_at":"2025-04-06T13:31:37.538Z","avatar_url":"https://github.com/phmLabs.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Namespace Analyzer\r\n==================\r\n\r\n[![Build Status](https://secure.travis-ci.org/phmLabs/NamespaceAnalyzer.png)](http://travis-ci.org/phmLabs/NamespaceAnalyzer)\r\n\r\nThis tool will check if all used (*T_USE*) namespaces are needed in a given PHP file.\r\n\r\nInstallation\r\n------------\r\n\r\nRequire with [`Composer`](http://getcomposer.org)\r\n\r\n``` json\r\n    {\r\n        \"require\": {\r\n            \"phm/namespace-analyzer\": \"*\"\r\n        }\r\n    }\r\n```\r\n\r\nInstallation from Source\r\n------------------------\r\n\r\n``` sh\r\ngit clone https://github.com/phmLabs/NamespaceAnalyzer.git\r\n```\r\n\r\n**Fetch Dependencies with Composer**\r\n\r\n``` sh\r\n$ curl -s http://getcomposer.org/installer | php\r\n$ php composer.phar update --dev\r\n```\r\n\r\n\r\nCreating the PHAR\r\n-----------------\r\n\r\n(make sure your *php.ini* settings allows creating PHAR Archives\r\n\r\n``` sh\r\n$ php bin/compile\r\n```\r\n\r\nfrom now on you can use the PHAR as follows `php namespace-analyzer.phar analyze PATH/TO/CHECK`\r\n\r\nExample\r\n-------\r\n\r\n**Single File**\r\n\r\n``` sh\r\n$ php bin/console analyze example/unusednamespace.php\r\n```\r\n\r\n**Directory**\r\n\r\n``` sh\r\n$ php bin/console analyze example\r\n```\r\n\r\nTests\r\n-----\r\n\r\nTODO","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphmlabs%2Fnamespaceanalyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphmlabs%2Fnamespaceanalyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphmlabs%2Fnamespaceanalyzer/lists"}