RepositoryPHPDEĐức
FL

FluidTYPO3/vhs

TYPO3 extension VHS: Fluid ViewHelpers

193sao
227fork
53issue
2lượt xem

🧩 VHS — Bộ ViewHelpers "Swiss Army Knife" cho TYPO3 Fluid

Mở rộng khả năng template Fluid với hàng chục ViewHelper thực dụng: định dạng, tính toán, logic điều kiện, xử lý mảng — tất cả những gì core chưa cung cấp.

VHS (ViewHelper Set) là extension TYPO3 do nhóm FluidTYPO3 phát triển, đóng gói một tập hợp lớn các ViewHelper bổ sung cho Fluid templating engine. Fluid bản thân đã khá mạnh, nhưng vẫn thiếu nhiều tiện ích nhỏ mà dev phải tự viết lặp lại: format tiền tệ/ngày giờ phức tạp, phép toán số học trong template, so sánh điều kiện nâng cao, lọc/transform mảng, sinh hash, v.v. VHS gom hết những nhu cầu đó vào một package cài qua Composer, tương thích TYPO3 10–13, tài liệu trực tuyến đầy đủ tại docs.typo3.org.

✨ Điểm nổi bật

  • Formatters nâng cao: định dạng số, tiền tệ, ngày giờ, kích thước file, relative time, v.v. không cần PHP inline.
  • Math ViewHelpers: cộng/trừ/nhân/chia, làm tròn, min/max, random, modulo — tính toán trực tiếp trong template.
  • Condition ViewHelpers: so sánh chuỗi, số, kiểm tra rỗng/null, regex match, range check — logic điều kiện phong phú hơn <f:if>.
  • Iterator & Array processors: map, filter, reduce, chunk, shuffle, unique, group by, sort, slice — thao tác mảng như lodash nhưng trong Fluid.
  • String utilities: truncate, slugify, camelCase, snake_case, base64, hash (md5/sha1), replace regex, word wrap.
  • Date/Time helpers: parse, format, modify, diff, timezone convert, business day check.
  • Media/Asset helpers: image resize/crop thông số, video/audio embed, favicon, gravatar.
  • Security/Validation: CSRF token, honeypot, sanitize HTML, email/URL validation.
  • Debug/Dev: dump biến, benchmark, memory usage, backtrace — hữu ích khi dev template.
  • Tương thích rộng: hỗ trợ TYPO3 10, 11, 12, 13; cài đặt qua composer require fluidtypo3/vhs; tài liệu versioned trên docs.typo3.org.

💡 Vì sao đáng chú ý

VHS giải quyết triệt để vấn đề "logic lọt vào template" mà các TYPO3 dev thường gặp: thay vì viết ViewHelper custom cho từng project hoặc nhúng PHP qua <f:format.raw>/{f:variable}, chỉ cần khai báo namespace xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers" là dùng ngay hàng chục helper sẵn có. Code template gọn hơn, tái sử dụng cao, giảm boilerplate. Đặc biệt phù hợp cho team làm multi-site TYPO3 cần chuẩn hóa cách xử lý dữ liệu hiển thị.


#TYPO3 #Fluid #ViewHelpers #VHS #OpenSource #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryPHP
TYPO3-Solr/ext-solr

A TYPO3 extension that integrates the Apache Solr search server with TYPO3 CMS. dkd Internet Service GmbH is developing the extension. Community contributions are welcome. See CONTRIBUTING.md for details.

146
Dec 1, 2026
RepositoryPHP
dmitryd/typo3-realurl

**Vintage** RealURL extension for TYPO3 CMS. Read the wiki if you have questions!

107
Oct 31, 2021
RepositoryPHP
cundd/rest

REST webservices for TYPO3 CMS

77
Nov 15, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
Repository
getify/You-Dont-Know-JS

A book series (2 published editions) on the JS language.

184.8k
Oct 31, 2026
RepositoryTypeScript
freeCodeCamp/freeCodeCamp

freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

459.9k
Dec 2, 2026
RepositoryPython
donnemartin/system-design-primer

Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.

379.9k
Sep 15, 2026
RepositoryTypeScript
nilbuild/developer-roadmap

Interactive roadmaps, guides and other educational content to help developers grow in their careers.

373.1k
Dec 1, 2026
RepositoryPython
practical-tutorials/project-based-learning

Curated list of project-based tutorials

290.9k
Nov 30, 2026