承接 carter-digital/twig-extensions 相关项目开发

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

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

carter-digital/twig-extensions

最新稳定版本:3.0.5

Composer 安装命令:

composer require carter-digital/twig-extensions

包简介

Carter Digital's twig extensions pack

README 文档

README

Custom Twig functions used for our websites since 2020.

Installation

Should be easily installed using composer

composer require carter-digital/twig-extensions

Extensions

PHP function based

  • getenv() - implementation of PHP/Craft's getenv()
  • isEnglish() - implementation of PHP's preg_match to find alphanumeric latin symbols in a string
  • manifestFile() - cache busting helper function
  • md5() - implemenation of PHP's md5()
  • pathinfo() - implementation of PHP's pathinfo()
  • uniqueId() - implementation of PHP's rand()

CraftCMS based

  • Filters
    • text|t - returns the same text
  • Functions
    • svg('filepath') - returns file_get_contents() of the filepath

Credits:

Heavily based on jasny/twig-extensions package.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-03-31