{"id":13505168,"url":"https://github.com/sebastianbergmann/phploc","last_synced_at":"2025-04-09T02:10:19.986Z","repository":{"id":486486,"uuid":"112500","full_name":"sebastianbergmann/phploc","owner":"sebastianbergmann","description":"A tool for quickly measuring the size of a PHP project.","archived":false,"fork":false,"pushed_at":"2024-01-30T14:03:43.000Z","size":22147,"stargazers_count":2346,"open_issues_count":0,"forks_count":165,"subscribers_count":68,"default_branch":"main","last_synced_at":"2025-04-02T01:09:00.360Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sebastianbergmann.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"sebastianbergmann"}},"created_at":"2009-01-22T11:10:47.000Z","updated_at":"2025-04-01T01:39:32.000Z","dependencies_parsed_at":"2024-06-18T10:40:56.636Z","dependency_job_id":"0d1906fc-9066-4e02-95e6-a6e739722bfc","html_url":"https://github.com/sebastianbergmann/phploc","commit_stats":{"total_commits":599,"total_committers":47,"mean_commits":12.74468085106383,"dds":0.1769616026711185,"last_synced_commit":"0797c79fa6fff56094740225e922ac278a5a1816"},"previous_names":[],"tags_count":46,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianbergmann%2Fphploc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianbergmann%2Fphploc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianbergmann%2Fphploc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianbergmann%2Fphploc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sebastianbergmann","download_url":"https://codeload.github.com/sebastianbergmann/phploc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247318739,"owners_count":20919484,"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-08-01T00:00:59.541Z","updated_at":"2025-04-09T02:10:19.965Z","avatar_url":"https://github.com/sebastianbergmann.png","language":"PHP","funding_links":["https://github.com/sponsors/sebastianbergmann"],"categories":["Standalone","代码分析","PHP","Table of Contents","目录","Code Analysis","Programming Languages","代码分析( Code Analysis )","类库","Development","代码分析 Code Analysis"],"sub_categories":["Metrics","Code Analysis","代码分析 Code Analysis","代码检查/静态分析","Quality Check","Library"],"readme":"# PHPLOC\n\n`phploc` is a tool for quickly measuring the size of a PHP project.\n\n## Installation\n\nThis tool is distributed as a [PHP Archive (PHAR)](https://php.net/phar):\n\n```bash\n$ wget https://phar.phpunit.de/phploc.phar\n\n$ php phploc.phar --version\n```\n\nUsing [Phive](https://phar.io/) is the recommended way for managing the tool dependencies of your project:\n\n```bash\n$ phive install phploc\n\n$ ./tools/phploc --version\n```\n\n**[It is not recommended to use Composer to download and install this tool.](https://docs.phpunit.de/en/main/installation.html#phar-or-composer)**\n\n## Usage Example\n\n```\n$ php phploc.phar src\nphploc 8.0-dev by Sebastian Bergmann.\n\nDirectories:                                        104\nFiles:                                              856\n\nLines of Code (LOC):                             67,955\nComment Lines of Code (CLOC):                    19,533 (28.74%)\nNon-Comment Lines of Code (NCLOC):               48,422 (71.26%)\nLogical Lines of Code (LLOC):                    18,478 (27.19%)\n\nClasses or Traits                                   662\n  Methods                                         3,389\n    Cyclomatic Complexity\n      Lowest                                       1.00\n      Average                                      2.00\n      Highest                                    156.00\n\nFunctions                                           185\n  Cyclomatic Complexity\n    Lowest                                         1.00\n    Average                                        1.00\n    Highest                                        1.00\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianbergmann%2Fphploc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebastianbergmann%2Fphploc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianbergmann%2Fphploc/lists"}