| Recommend this page to a friend! | 
|  Download | 
| Info | Documentation |  Files |  Install with Composer |  Download | Reputation | Support forum | Blog | Links | 
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not enough user ratings | Total: 45 | All time:  10,816 This week: 40  | ||||
| Version | License | PHP version | Categories | |||
| php-wording-detector 1.0.0 | The PHP License | 5 | PHP 5, Language, Parsers | 
<p align="center"> <img src="https://github.com/DeGraciaMathieu/php-smelly-code-detector/blob/master/arts/robot.png" width="250"> </p>
Simple tool to analyze and split the words contained in your variables to check your DDD approach.
Requires >= PHP 8.1
composer require degraciamathieu/php-wording-detector --dev
php php-wording-detector inspect {path}
$ php php-wording-detector inspect app
? PHP Wording Detector ?
+-------------+-----------------------+-------------+
| total words | total distincts words | average use |
+-------------+-----------------------+-------------+
| 18'363      | 560                   | 33          |
+-------------+-----------------------+-------------+
+--------------+-------+-------------+
| words        | usage | pourcentage |
+--------------+-------+-------------+
| user         | 1629  | 9%          |
| activity     | 1150  | 6%          |
| exam         | 925   | 5%          |
| organization | 671   | 4%          |
| mode         | 460   | 3%          |
| data         | 416   | 2%          |
| code         | 383   | 2%          |
| builder      | 368   | 2%          |
| part         | 351   | 2%          |
| item         | 350   | 2%          |
| license      | 308   | 2%          |
| request      | 296   | 2%          |
| subscription | 289   | 2%          |
| id           | 228   | 1%          |
| answers      | 225   | 1%          |
| coupon       | 214   | 1%          |
| question     | 200   | 1%          |
| exception    | 182   | under 1%    |
| current      | 161   | under 1%    |
| count        | 160   | under 1%    |
+--------------+-------+-------------+
|  Files (24) | 
| File | Role | Description | ||
|---|---|---|---|---|
|  .github (1 directory) | ||||
|  app (5 directories) | ||||
|  bootstrap (1 file) | ||||
|  config (3 files) | ||||
|  resources (1 directory) | ||||
|  tests (2 files, 1 directory) | ||||
|    .editorconfig | Data | Auxiliary data | ||
|    box.json | Data | Auxiliary data | ||
|    composer.json | Data | Auxiliary data | ||
|    composer.lock | Data | Auxiliary data | ||
|    php-wording-detector | Appl. | Application script | ||
|    phpunit.xml.dist | Data | Auxiliary data | ||
|    README.md | Doc. | Documentation | ||
|  Files (24) | / | app | 
|  Files (24) | / | app | / | Nodes | 
| File | Role | Description | 
|---|---|---|
|  NodeExtractor.php | Class | Class source | 
|  NodeValidator.php | Class | Class source | 
|  Files (24) | / | config | 
| File | Role | Description | 
|---|---|---|
|  app.php | Class | Class source | 
|  commands.php | Class | Class source | 
|    view.php | Aux. | Auxiliary script | 
|  Files (24) | / | tests | 
| File | Role | Description | ||
|---|---|---|---|---|
|  Unit (2 directories) | ||||
|  CreatesApplication.php | Class | Class source | ||
|  TestCase.php | Class | Class source | ||
|  Files (24) | / | tests | / | Unit | / | Nodes | 
| File | Role | Description | 
|---|---|---|
|  NodeExtractorTest.php | Class | Class source | 
|  NodeValidatorTest.php | Class | Class source | 
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. | 
|  Install with Composer | 
|  | php-wording-detector-2023-03-10.zip 34KB | 
|  | php-wording-detector-2023-03-10.tar.gz 29KB | 
|  | Install with Composer | 
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% | 
 | 
 | 
| Applications that use this package | 
 If you know an application of this package, send a message to the author to add a link here.
 If you know an application of this package, send a message to the author to add a link here.