定制 daun/statamic-placeholders 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

daun/statamic-placeholders

最新稳定版本:3.1.0

Composer 安装命令:

composer require daun/statamic-placeholders

包简介

Generate low-quality image placeholders for lazyloading Statamic assets

README 文档

README

Latest Version on Packagist Test Status Code Coverage License

Generate image placeholders of Statamic assets for smoother lazyloading.

Example image placeholders

Low-Quality Image Placeholders (LQIP) improve the perceived performance of sites by showing a small blurry placeholder image while the high-quality version is loading and are often used in combination with progressive lazyloading.

Features

  • Create blurry image placeholders for assets
  • Choose between ThumbHash, BlurHash, and Average Color placeholders
  • Generate placeholders on upload, or optionally on demand
  • Console commands for batch generation

How It Works

The addon ships with a Placeholder Image fieldtype and will automatically generate a small blurry placeholder image for each asset with this fieldtype in its blueprint. In your frontend views, you can access the image placeholder as a data URI string to display while the high-quality image is loading.

Quick Start

  1. Install using composer require daun/statamic-placeholders
  2. Add a placeholder field to your asset blueprint → assets.yaml
  3. Display placeholder data uris using the {{ placeholder }} field inside an {{ asset }} tag

Documentation

Read the documentation for a detailed guide to setting up and configuring the addon.

License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固