reiterus/app-stats-symfony

Statistics about your Symfony application: size, files, methods, templates, services, etc.

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 2

Open Issues: 0

Type:symfony-bundle

2.0.0 2023-04-02 04:16 UTC

This package is auto-updated.

Last update: 2024-05-31 00:23:20 UTC


README

Statistics about your Symfony application: size, files, methods, templates, services, etc.

All you have to do is run a command from the "rts" namespace.

Directories for analysis: assets, bin, config, migrations, public, templates, translations, src, tests

# Title Value
1 Root folder /var/www/demo.symfony.localhost
2 All project in bytes 94539478 (vendor, var, etc)
3 Working files in bytes 12104484
4 Number of working files 519
5 ...including "assets" 13
... ... ...
12 ...including "src" 35
# Extension Amount
1 Root folder /var/www/demo.symfony.localhost
2 js 214
3 woff2 60
... ... ...
8 php 47
# Title Amount
1 Root folder /var/www/demo.symfony.localhost
2 Directory list src, tests
3 ... found "class" 49
4 ... found "interface" 5
... ... ...
8 ... found "public function" 171

To get one of the statistics options, run the following commands:

  • general information: rts:stats:general
  • all files information: rts:stats:files
  • only php files information: rts:stats:php

To get Summary Application Statistics (general, files, php) run the command rts:stats:summary

To get more detailed information about a specific service run this command bin/console debug:container rts.app

General Statistics

Installation

You can install the bundle in two ways

From packagist.org

composer require reiterus/app-stats-symfony

From GitHub repository

{
 "repositories": [
  {
   "type": "vcs",
   "url": "https://github.com/reiterus/app-stats-symfony.git"
  }
 ]
}

Tests

To run tests with visual code coverage, launch the command as follows:

XDEBUG_MODE=coverage ./vendor/phpunit/phpunit/phpunit \
--configuration phpunit.xml \
--testsuite default \
--coverage-html coverage/

Test results will be saved in the coverage directory.

Tip: vendor/bin/phpunit --generate-configuration

License

This library is released under the MIT license.