定制 dedmytro/laravel-metrics 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dedmytro/laravel-metrics

Composer 安装命令:

composer require dedmytro/laravel-metrics

包简介

Provides customizable dashboard to see project metrics

README 文档

README

Laravel Metrics provides an ability to display your custom or default metrics widgets. img.png

Stable Version Unstable Version Total Downloads License

Table of contents

Installation

To get the latest version of Laravel Metrics, simply require the project using Composer:

$ composer require dedmytro/laravel-metrics

Or manually update require block of composer.json and run composer update.

{
    "require": {
        "dedmytro/laravel-metrics": "^0.1"
    }
}

And run install command publishes config and assets

$ php artisan metrics:install

Using

Visit /metrics to see dashboard with default widgets. To manage visible widgets open config/metrics.php and check widgets key:

    'widgets' => [
        MysqlConnections::class,
        RequestsPerSecond::class,
        UsersOnline::class,
    ],

Widgets

To create your custom widget use default command. By default you can found generated widgets in ** app/Metrics/Widgets/**

$ php artisan metrics:widget ActiveUsersCount --type=value

There are few types of widgets (--type=):

--type=value

Default type, when no type specified. The simplest widget to display one value.

--type=multiple

Widget type which can be used to display multiple values with labels within one widget.

Roadmap

  • More default widgets
  • Live widgets
  • Chart widget

统计信息

  • 总下载量: 7
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-04-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固