evoluted/twigtools-plugin 问题修复 & 功能扩展

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

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

evoluted/twigtools-plugin

Composer 安装命令:

composer require evoluted/twigtools-plugin

包简介

Useful development debugging tools for Twig on PyroCMS 3.x

README 文档

README

Twigtools is a PyroCMS plugin, providing useful tools for development and debugging with twig.

Initially this provides the following functions inside twig templates:

  • dd Dumps an item and kills the rest of the page.
  • debug Dumps an item and continues execution
  • debug Debugs an item to Debugbar under the Messages tab

Installing

You can install this plugin into your existing PyroCMS 3.x installation by requiring it inside your composer file:

"require-dev": {
    "evoluted/twigtools-plugin": "~1.0",`
}

Or by running the command line composer install command:

composer require evoluted/twigtools-plugin

Once installed you will not have to perform any additional actions to start using this plugin.

Usage

dd

dd(yourVariable)

Uses Laravels dump method, and stops execution.

dump

dump(yourVariable)

Uses Laravels dump method, but continues rendering the rest of the page.

debug

debug(yourVariable)

Debugs a variable to Laravel Debugbar (if it is installed)

Future Ideas

  • Manipulation of objects and arrays (E.g resorting, inserting within arrays, etc)
  • Debug to log files from within twig

Release History

  • 1.0.0
    • Initial release, containing dd(), debug(), debug()

Contributing

  1. Fork it (https://github.com/EvolutedNewMedia/twigtools-plugin/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-07-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固