mremi/templating-extra-bundle 问题修复 & 功能扩展

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

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

mremi/templating-extra-bundle

Composer 安装命令:

composer require mremi/templating-extra-bundle

包简介

Profiles all the rendered templates (Twig or PHP) during a Symfony2 page rendering

README 文档

README

SensioLabsInsight

Build Status Total Downloads Latest Stable Version Scrutinizer Code Quality Code Coverage

This bundle profiles all the rendered templates (Twig or PHP) during a Symfony2 page rendering. This only includes templates which are rendered by render and renderResponse through the templating service (for instance, include and embed Twig tags are not tracked).

License

This bundle is available under the MIT license.

Prerequisites

This version of the bundle requires Symfony 2.1+.

Basic Docs

Installation

Installation is a quick 2 step process:

  1. Download MremiTemplatingExtraBundle using composer
  2. Enable the Bundle

Step 1: Download MremiTemplatingExtraBundle using composer

Add MremiTemplatingExtraBundle in your composer.json:

{
    "require": {
        "mremi/templating-extra-bundle": "dev-master"
    }
}

Now tell composer to download the bundle by running the command:

$ php composer.phar update mremi/templating-extra-bundle

Composer will install the bundle to your project's vendor/mremi directory.

Step 2: Enable the bundle

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Mremi\TemplatingExtraBundle\MremiTemplatingExtraBundle(),
    );
}

Profiler

If your are in debug mode (see your front controller), you can check in the web debug toolbar the rendered templates and some statistics from the current HTTP request: number of templates, consumed memory, request duration...

It's very easy to know which templates consume just looking at the colors (red and yellow).

Moreover, you can see all parameters passed to each template. This can be useful for the front office development.

Screenshot

If you configured the framework bundle (or xdebug.file_link_format), you can edit templates just by clicking on name.

Contribution

Any question or feedback? Open an issue and I will try to reply quickly.

A feature is missing here? Feel free to create a pull request to solve it!

I hope this has been useful and has helped you. If so, share it and recommend it! :)

@mremitsme

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固