{"id":86573,"library":"phploc-phploc","title":"PHPLOC","description":"A tool for quickly measuring the size of a PHP project.","status":"active","version":"7.0.2","language":"php","source_language":null,"source_url":"https://github.com/sebastianbergmann/phploc","tags":["metrics","code-size","analysis","sebastian"],"install":[{"cmd":"composer require phploc/phploc","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"Analyser","correct":"use SebastianBergmann\\PHPLOC\\Analyser;"}],"quickstart":{"code":"use SebastianBergmann\\PHPLOC\\Analyser;\n\n$analyser = new Analyser();\n$result = $analyser->countFiles(['/path/to/project'], false);\necho 'Lines of code: ' . $result['loc'];","lang":"php","description":"Analyze a PHP project to count lines of code and other metrics."},"warnings":[{"fix":"Check the new array keys (e.g., 'loc' instead of 'linesOfCode').","message":"Output format changed in version 7.0.","severity":"breaking","affected_versions":">=7.0.0"}],"env_vars":null,"search_vec":"'analysi':17 'code':15 'code-s':14 'measur':6 'metric':13 'php':11 'phploc':1 'project':12 'quick':5 'sebastian':18 'size':8,16 'tool':3","created_at":"2026-06-19T08:03:58.733179+00:00","updated_at":"2026-06-19T08:03:58.733179+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/sebastianbergmann/phploc","github":"https://github.com/sebastianbergmann/phploc","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["build-tool"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}