christianessl/placeholder_images
Composer 安装命令:
composer require christianessl/placeholder_images
包简介
Easily add placeholder images in TYPO3 using either external sources (like placeholder.com) or generating them on the fly.
README 文档
README
Easily add placeholder images in TYPO3 using either external sources (like placeholder.com) or generating them on the fly.
What does it do?
This extensions adds a button "Add placeholder image" to content elements and other data records using FAL media fields in the TYPO3 Backend. This makes it easy to quickly add a few generated placeholder images for prototyping. Support uploading multiple placeholders images at once.
Requirements
Currently supports TYPO3 8.7 and 9.5 LTS
1. Installation
Installation with composer
composer require christianessl/placeholder_images.
Clear caches and reload the backend for all changes to take effect.
Installation with TER
Open the TYPO3 Extension Manager, search for placeholder_images and install the extension.
Clear caches and reload the backend for all changes to take effect.
2. Configuration
Initially after installing the extension, the new button will only show up if TYPO3_CONTEXT is set to Development, which can be adjusted in the Extension Configuration.
Configuration in TYPO3 8.7
- Go to Admin Tools -> Extensions -> Extension placeholder_images
- Click the extension name to access the Extension Configuration.
Configuration in TYPO3 9.5
- Go to Admin Tools -> Settings -> Extension Configuration
- Click Configure extensions and the placeholder_images to access the configuration.
Configuration options
- typo3Contexts (default: Development)
- Comma separated list of TYPO3_CONTEXT settings for which the placeholder button should be displayed.
- defaultWidth
- Default width of the generated images (changeable in the modal)
- defaultHeight
- Default height of the generated images (changeable in the modal)
- defaultFormat (default: png)
- Default file format of the generated images (changeable in the modal)
- defaultText
- Default placeholder text (changeable in the modal). Shown as "1024x768", if empty.
- defaultBGColor
- Default background color of the generated images (changeable in the modal)
- defaultTextColor
- Default text color of the generated images (changeable in the modal)
- imageSource
- The source from which the images should be generated. There are 3 options at the moment:
- placeholder.com (external)
- imagemagick (local image generation)
- custom (connect your own image generation service)
- The source from which the images should be generated. There are 3 options at the moment:
- customSourceUrl
- If you want to connect your own image generation service, place the url here in a format like:
- //source-example.local/?width={width}&height={height}&bgcolor={bgcolor}&textcolor={textcolor}&format={format}&text={text}
- If you want to connect your own image generation service, place the url here in a format like:
3. Usage
Create a new content element like Text / Media and enjoy adding a few placeholder images.
christianessl/placeholder_images 适用场景与选型建议
christianessl/placeholder_images 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 283 次下载、GitHub Stars 达 2, 最近一次更新时间为 2019 年 01 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「extension」 「images」 「placeholder」 「typo3」 「fal」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 christianessl/placeholder_images 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 christianessl/placeholder_images 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 christianessl/placeholder_images 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Laravel Nova field for distribute your images as array of object.
Pexels API Client for www.pexels.com
A custom URL rule class for Yii 2 which allows to create translated URL rules
The Yii2 extension uses jQuery jquery.carousel-1.1.min.js and makes image carousel from php array of structure defined.
A plugin which generates an invisible SVG of specific dimensions for use when lazyloading images in Craft CMS templates.
TYPO3 CMS extension to create gallery content element with preset crop ratios and pagination
统计信息
- 总下载量: 283
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2019-01-26


