sitetheory/profiler-storage-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

sitetheory/profiler-storage-bundle

最新稳定版本:0.1.8

Composer 安装命令:

composer require sitetheory/profiler-storage-bundle

包简介

Sitetheory ProfilerStorageBundle

README 文档

README

Sitetheory Profiler Storage Bundle for Symfony 2.8+

Package Information

Latest Stable Version Latest Unstable Version Total Downloads

Code Inspection

Travis CI

Build Status

Scrutinizer

Scrutinizer Code Quality Code Coverage Build Status Code Intelligence Status

Overview

We'll be maintaining the following Profiler Bindings for the foreseeable future:

  • MemCache
  • MongoDB
  • MySQL
  • PDO
  • Redis
  • SQLite

Installation

Composer

Add this bundle to your Composer Package and follow the configuration below.

composer require sitetheory/profiler-storage-bundle

If you are using MongoDB, you will also need to add the MongoDB Driver. Instructions are available in the official repository: github.com/mongodb/mongo-php-library.

Configuration

Enable the Bundle:

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new Sitetheory\Bundle\ProfilerStorageBundle\SitetheoryProfilerStorageBundle()
        );

        // ...
    }

    // ...
}

Add the following to your config.yml to control the location for Profiler Storage:

Mongo

sitetheory_profiler_storage:
    profiler:
        defaultStorage: false
        class: Sitetheory\Bundle\ProfilerStorageBundle\Profiler\MongoDbProfilerStorage
        dsn: "mongodb://%user%:%password%@%host%:%port%/%name%/profiler"
        ttl: 3600

MySQL

sitetheory_profiler_storage:
    profiler:
        defaultStorage: false
        class: Sitetheory\Bundle\ProfilerStorageBundle\Profiler\MysqlProfilerStorage
        dsn: "mysql:host=%host%;port=%port%;dbname=%name%"
        username: "%user%"
        password: "%password%"
        ttl: 3600

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 7
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-05-08