{"id":37231943,"url":"https://github.com/fluffy-factory/user-stats-bundle","last_synced_at":"2026-01-15T03:46:39.740Z","repository":{"id":43466276,"uuid":"301351273","full_name":"fluffy-factory/user-stats-bundle","owner":"fluffy-factory","description":"Get user stats route :page_with_curl: :bar_chart:","archived":false,"fork":false,"pushed_at":"2023-06-20T13:09:08.000Z","size":745,"stargazers_count":7,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-08T20:59:06.415Z","etag":null,"topics":["easyadmin","hacktoberfest","statistics","symfony","user"],"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/fluffy-factory.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}},"created_at":"2020-10-05T09:08:56.000Z","updated_at":"2023-10-09T10:17:45.000Z","dependencies_parsed_at":"2022-08-23T08:30:59.150Z","dependency_job_id":null,"html_url":"https://github.com/fluffy-factory/user-stats-bundle","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/fluffy-factory/user-stats-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffy-factory%2Fuser-stats-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffy-factory%2Fuser-stats-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffy-factory%2Fuser-stats-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffy-factory%2Fuser-stats-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluffy-factory","download_url":"https://codeload.github.com/fluffy-factory/user-stats-bundle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffy-factory%2Fuser-stats-bundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28417716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:25:19.714Z","status":"ssl_error","status_checked_at":"2026-01-14T10:22:49.371Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["easyadmin","hacktoberfest","statistics","symfony","user"],"created_at":"2026-01-15T03:46:39.097Z","updated_at":"2026-01-15T03:46:39.727Z","avatar_url":"https://github.com/fluffy-factory.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# User stats\n\n![screenshot](Resources/docs/images/screenshot.png)\n\n## Introduction\n\nYou need to require Symfony 4.* or 5.* for use this bundle. (and Easyadmin 3.* for the easier installation)\n\n### :rotating_light: Disclaimer\n\nThis bundle retrieves user information. You must ask permission from your users to use this bundle legally. Any negligence in the strict application of the recommended procedures relieves us of all responsibility for their use.\n\n## Installation\n```\ncomposer require fluffy-factory/user-stats-bundle\n```\n\n## Configuration\n\nYou can create your own configuration in `config/packages/fluffy_user_stats.yaml`:\n\n```yaml\nuser_stats:\n  exclude_route: [\"liip_imagine_filter\"]\n  user_stat_enabled: true\n  max_month_before_archive: 6\n  user_stat_max_result: 2000\n```\n\n### Entity\n\nAdd mixin Class `use UserStats` in your User entity\n```php\nclass User\n{\n    ### ADD THIS ###\n    use UserStats;\n\n    ...\n}\n```\n\nMake a database schema update\n\n```\nphp bin/console d:s:u --force\n```\n\nInstall assets \n\n```\nphp bin/console assets:install\n```\n\n### Routing\n\nCreate routes file `config/routes/fluffy_user_stats.yaml` with the below config:\n\n```yaml\nfluffy_user_stats:\n  resource: \"@UserStatsBundle/Controller/UserStatsController.php\"\n  type: annotation\n  # prefix: /admin\n```\n\n### Archive\n\nIf you have a lot of users and the data table is getting too big; you can archive your data older than 6 months (by default) in a data table named **user_stats_lines_archives**.\n\nTo archive you need to use the command ```make:user:stats:archive```\n\nYou can change the number of months archived :\n```yaml\n# config/packages/fluffy_user_stats.yaml\nuser_stats:\n    # number of months before the data is archived\n    max_month_before_archive: 6 \n```\n\n## Integration\n\n### Easyadmin 3.*\n\nAdd custom actions in your entity configuration\n\n```php\n$userStats = Action::new('userStats', 'Statistiques utilisateur')\n    -\u003elinkToRoute('fluffy_user_stats', function (User $entity) {\n       return [\n           'id' =\u003e $entity-\u003egetId()\n       ];\n    });\n\nreturn parent::configureActions($actions)\n    -\u003eadd(Crud::PAGE_INDEX, $userStats)\n        -\u003esetPermission('userStats', 'ROLE_SUPER_ADMIN');\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluffy-factory%2Fuser-stats-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluffy-factory%2Fuser-stats-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluffy-factory%2Fuser-stats-bundle/lists"}