Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reiterus/app-stats-symfony
Statistics about your Symfony application: size, files, methods, templates, services, etc.
https://github.com/reiterus/app-stats-symfony
application bundle reiterus stats symfony symfony-bundle
Last synced: 24 days ago
JSON representation
Statistics about your Symfony application: size, files, methods, templates, services, etc.
- Host: GitHub
- URL: https://github.com/reiterus/app-stats-symfony
- Owner: reiterus
- License: mit
- Created: 2022-07-17T08:40:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-02T04:18:05.000Z (over 1 year ago)
- Last Synced: 2024-03-08T08:07:08.119Z (8 months ago)
- Topics: application, bundle, reiterus, stats, symfony, symfony-bundle
- Language: PHP
- Homepage:
- Size: 65.4 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Symfony Application Stats
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](img-services.png)
# Installation
You can install the bundle in two waysFrom packagist.org
```shell
composer require reiterus/app-stats-symfony
```From GitHub repository
```json
{
"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:
```shell
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](LICENSE).