定制 christianessl/placeholder_images 二次开发

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

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

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.

Code Climate Latest Stable Version Total Downloads Latest Unstable Version License

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.

Add placeholder image Button

Placeholder modal

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)
  • 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}

3. Usage

Create a new content element like Text / Media and enjoy adding a few placeholder images.

Placeholder frontend

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 我们能提供哪些服务?
定制开发 / 二次开发

基于 christianessl/placeholder_images 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2019-01-26