承接 lukasbableck/contao-twig-utils-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

lukasbableck/contao-twig-utils-bundle

Composer 安装命令:

composer require lukasbableck/contao-twig-utils-bundle

包简介

This bundle provides some useful additional twig functions and filters for Contao Open Source CMS.

README 文档

README

This bundle provides some useful additional twig functions and filters for Contao Open Source CMS.

Filters

json_decode(?bool $assoc = false)

Decodes a JSON string into a PHP array or object.

to_array

Converts a given value to an array. If the value is already an array, its children are converted to arrays as well.

Functions

contao_config()

Returns the Contao Config object.

contao_form(id|alias)

Generates a form and returns the html output.

file(id|uuid|path)

Returns the FilesModel for the given id, uuid or path.

page(id|alias, ?bool $published = false)

Returns the PageModel for the given id or alias. If $published is set to true, it will only return published pages.

reading_time(text, ?int $wpm = 250)

Estimates the reading time for the given text based on the provided words per minute (default is 250 wpm). The function returns the reading time in seconds.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2025-03-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固