{"id":23036835,"url":"https://github.com/degraciamathieu/php-wording-detector","last_synced_at":"2025-08-14T17:32:35.660Z","repository":{"id":112788786,"uuid":"609584732","full_name":"DeGraciaMathieu/php-wording-detector","owner":"DeGraciaMathieu","description":"Simple tool to analyze and split the words contained in your code to check your DDD approach.","archived":false,"fork":false,"pushed_at":"2024-05-13T06:52:34.000Z","size":76220,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-13T13:41:34.268Z","etag":null,"topics":["ci","ddd","metrics","php","quality","static-analyzer"],"latest_commit_sha":null,"homepage":"","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/DeGraciaMathieu.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,"governance":null}},"created_at":"2023-03-04T16:13:04.000Z","updated_at":"2024-05-13T06:52:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"f1657576-998e-485e-94f3-a17630e3b868","html_url":"https://github.com/DeGraciaMathieu/php-wording-detector","commit_stats":{"total_commits":38,"total_committers":1,"mean_commits":38.0,"dds":0.0,"last_synced_commit":"b85224cfacf4259c6154c0cc718c75a4afb15968"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeGraciaMathieu%2Fphp-wording-detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeGraciaMathieu%2Fphp-wording-detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeGraciaMathieu%2Fphp-wording-detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeGraciaMathieu%2Fphp-wording-detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DeGraciaMathieu","download_url":"https://codeload.github.com/DeGraciaMathieu/php-wording-detector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229851245,"owners_count":18134182,"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":["ci","ddd","metrics","php","quality","static-analyzer"],"created_at":"2024-12-15T17:27:53.272Z","updated_at":"2024-12-15T17:27:53.822Z","avatar_url":"https://github.com/DeGraciaMathieu.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/DeGraciaMathieu/php-smelly-code-detector/blob/master/arts/robot.png\" width=\"250\"\u003e\n\u003c/p\u003e\n\n[![testing](https://github.com/DeGraciaMathieu/php-wording-detector/actions/workflows/phpunit.yml/badge.svg)](https://github.com/DeGraciaMathieu/php-wording-detector/actions/workflows/phpunit.yml)\n![Packagist Version](https://img.shields.io/packagist/v/degraciamathieu/php-wording-detector)\n![Packagist PHP Version](https://img.shields.io/packagist/dependency-v/degraciamathieu/php-wording-detector/php)\n\n# php-wording-detector\n\nSimple tool to analyze and split the words contained in your code to check your DDD approach.\n\n# Installation\n\n```\nRequires \u003e= PHP 8.1\n```\n\n## Phar\nThis tool is distributed as a [PHP Archive (PHAR)](https://www.php.net/phar):\n\n```\nwget https://github.com/DeGraciaMathieu/php-wording-detector/raw/master/builds/php-wording-detector\n```\n\n```\nphp php-wording-detector --version\n```\n\n## Composer\nAlternately, you can directly use composer :\n\n```\ncomposer require degraciamathieu/php-wording-detector --dev\n```\n# Usage\n\nBy default only variables are analyzed :\n\n```\nphp php-wording-detector inspect {path}\n```\n\nThe `--with-method` option allows to parse the name of the methods :\n\n```\nphp php-wording-detector inspect {path} --with-method\n```\n\n```\n$ php php-wording-detector inspect app/Domains/Activity\n❀ PHP Wording Detector ❀\n+-------------+-----------------------+-------------+\n| total words | total distincts words | average use |\n+-------------+-----------------------+-------------+\n| 2'166       | 52                    | 42          |\n+-------------+-----------------------+-------------+\n+--------------+-------+------------+\n| words        | usage | percentage |\n+--------------+-------+------------+\n| activity     | 667   | 31%        |\n| data         | 154   | 7%         |\n| code         | 150   | 7%         |\n| item         | 143   | 7%         |\n| query        | 128   | 6%         |\n| request      | 88    | 4%         |\n| mode         | 85    | 4%         |\n| translations | 78    | 4%         |\n| id           | 77    | 4%         |\n| type         | 63    | 3%         |\n| new          | 46    | 2%         |\n| product      | 41    | 2%         |\n| translation  | 41    | 2%         |\n| types        | 40    | 2%         |\n| master       | 33    | 2%         |\n| filters      | 29    | 1%         |\n| language     | 24    | 1%         |\n| builder      | 23    | 1%         |\n| items        | 22    | 1%         |\n| section      | 21    | under 1%   |\n+--------------+-------+------------+\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdegraciamathieu%2Fphp-wording-detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdegraciamathieu%2Fphp-wording-detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdegraciamathieu%2Fphp-wording-detector/lists"}