定制 bartoszf/simple-analytics 二次开发

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

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

bartoszf/simple-analytics

Composer 安装命令:

composer require bartoszf/simple-analytics

包简介

Laravel package for implementing simple analytics

README 文档

README

Laravel Source License

Laravel package for implementing simple analytics

Table of Contents

Requirements

  • This package requires PHP 5.6+
  • As for now, you need Auth facade with user.

Getting Started

  1. Require the package in your composer.json and update your dependency with composer update:
"require": {
...
"bartoszf/simple-analytics": "~0.8",
...
},
  1. Add the package to your application service providers in config/app.php.
'providers' => [

Illuminate\Foundation\Providers\ArtisanServiceProvider::class,
Illuminate\Auth\AuthServiceProvider::class,
...
BartoszF\SimpleAnalytics\AnalyticsServiceProvider::class,

],
  1. Publish the package migrations to your application and run these with php artisan migrate.
$ php artisan vendor:publish --provider="BartoszF\SimpleAnalytics\AnalyticsServiceProvider"
  1. Add the middleware to your app/Http/Kernel.php.
protected $routeMiddleware = [

....
'analytics' => BartoszF\SimpleAnalytics\Middleware\ReportUserRouteMiddleware::class,

];
  1. Adjust view as you wish (probably extend it with your app layout)

  2. Add analytics middleware to your routes from wich you want to get details.

Contribution Guidelines

Support follows PSR-2 PHP coding standards, and semantic versioning.

Please report any issue you find in the issues page. Pull requests are welcome.

统计信息

  • 总下载量: 39
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-11-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固