{"id":29874590,"url":"https://github.com/phpexpertsinc/phploc","last_synced_at":"2025-07-31T00:42:52.503Z","repository":{"id":289025112,"uuid":"969876876","full_name":"PHPExpertsInc/phploc","owner":"PHPExpertsInc","description":"An uptodate and maintained fork of sebastian/phploc.","archived":false,"fork":false,"pushed_at":"2025-04-21T05:20:04.000Z","size":22152,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"trunk","last_synced_at":"2025-07-27T08:54:31.123Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PHPExpertsInc.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":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"sebastianbergmann"}},"created_at":"2025-04-21T04:47:47.000Z","updated_at":"2025-04-21T05:20:09.000Z","dependencies_parsed_at":"2025-04-21T05:55:08.664Z","dependency_job_id":null,"html_url":"https://github.com/PHPExpertsInc/phploc","commit_stats":null,"previous_names":["phpexpertsinc/phploc"],"tags_count":46,"template":false,"template_full_name":null,"purl":"pkg:github/PHPExpertsInc/phploc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPExpertsInc%2Fphploc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPExpertsInc%2Fphploc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPExpertsInc%2Fphploc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPExpertsInc%2Fphploc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PHPExpertsInc","download_url":"https://codeload.github.com/PHPExpertsInc/phploc/tar.gz/refs/heads/trunk","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPExpertsInc%2Fphploc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267967825,"owners_count":24173579,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2025-07-31T00:42:48.218Z","updated_at":"2025-07-31T00:42:52.464Z","avatar_url":"https://github.com/PHPExpertsInc.png","language":"PHP","funding_links":["https://github.com/sponsors/sebastianbergmann"],"categories":[],"sub_categories":[],"readme":"# PHPLOC\n\n`phploc` is a tool for quickly measuring the size and analyzing the structure of a PHP project.\n\nThis is a maintained, up-to-date fork of [Sebastian Bergmann's PHPLoc](https://github.com/sebastianbergmann/phploc).\n\n## Forked Changes\n\n## Version 8.0.0\n* **[2025-04-11 13:02:04 CDT]** Added support for PHPUnit v10.\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://twitter.com/s_bergmann/status/999635212723212288)**\n\n## Usage Examples\n\n### Analyse a directory and print the result\n\n```\n$ php phploc.phar src\nphploc 7.0.0 by Sebastian Bergmann.\n\nDirectories                                          3\nFiles                                               10\n\nSize\n  Lines of Code (LOC)                             1882\n  Comment Lines of Code (CLOC)                     255 (13.55%)\n  Non-Comment Lines of Code (NCLOC)               1627 (86.45%)\n  Logical Lines of Code (LLOC)                     377 (20.03%)\n    Classes                                        351 (93.10%)\n      Average Class Length                          35\n        Minimum Class Length                         0\n        Maximum Class Length                       172\n      Average Method Length                          2\n        Minimum Method Length                        1\n        Maximum Method Length                      117\n    Functions                                        0 (0.00%)\n      Average Function Length                        0\n    Not in classes or functions                     26 (6.90%)\n\nCyclomatic Complexity\n  Average Complexity per LLOC                     0.49\n  Average Complexity per Class                   19.60\n    Minimum Class Complexity                      1.00\n    Maximum Class Complexity                    139.00\n  Average Complexity per Method                   2.43\n    Minimum Method Complexity                     1.00\n    Maximum Method Complexity                    96.00\n\nDependencies\n  Global Accesses                                    0\n    Global Constants                                 0 (0.00%)\n    Global Variables                                 0 (0.00%)\n    Super-Global Variables                           0 (0.00%)\n  Attribute Accesses                                85\n    Non-Static                                      85 (100.00%)\n    Static                                           0 (0.00%)\n  Method Calls                                     280\n    Non-Static                                     276 (98.57%)\n    Static                                           4 (1.43%)\n\nStructure\n  Namespaces                                         3\n  Interfaces                                         1\n  Traits                                             0\n  Classes                                            9\n    Abstract Classes                                 0 (0.00%)\n    Concrete Classes                                 9 (100.00%)\n  Methods                                          130\n    Scope\n      Non-Static Methods                           130 (100.00%)\n      Static Methods                                 0 (0.00%)\n    Visibility\n      Public Methods                               103 (79.23%)\n      Non-Public Methods                            27 (20.77%)\n  Functions                                          0\n    Named Functions                                  0 (0.00%)\n    Anonymous Functions                              0 (0.00%)\n  Constants                                          0\n    Global Constants                                 0 (0.00%)\n    Class Constants                                  0 (0.00%)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpexpertsinc%2Fphploc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphpexpertsinc%2Fphploc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpexpertsinc%2Fphploc/lists"}