Skip to content

DeusExM/user-stats

 
 

Repository files navigation

User stats

Installation

composer require fluffy-factory/user-stats

Configuration

Entity

Add mixin Class use UserStats in your User entity

class User
{
    ### ADD THIS ###
    use UserStats;

    ...
}

Make a database schema update

php bin/console d:s:u --force

Routing

Create routes file config/routes/fluffy_user_stats.yaml with the below config:

fluffy_user_stats:
  resource: "@UserStatsBundle/Controller/UserStatsController.php"
  type: annotation
  # prefix: /admin

Integration

Easyadmin

Add custom actions in your entity configuration

actions:
  - { name: 'fluffy_user_stats', type: 'route', label: false, icon: 'user', css_class: 'btn btn-primary' }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 86.5%
  • Twig 13.5%