neuralglitch/omnia-ipsum 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

neuralglitch/omnia-ipsum

最新稳定版本:0.1.0

Composer 安装命令:

composer require neuralglitch/omnia-ipsum

包简介

All-in-One Placeholder Bundle for Symfony - Generate placeholder images, Lorem Ipsum text, and realistic fake data for rapid prototyping

README 文档

README

Omnia Ipsum

All-in-One Placeholder Text, Images, Audios and Videos for Symfony

PHP Version Symfony
PHPUnit Coverage PHPStan
Psalm Infection Code Style
Release Downloads License

Features

  • Placeholder Images - 5 providers with real photos and colored placeholders
  • Avatar Generation - Automatic initials and colors
  • Placeholder Videos - Professional video clips
  • Placeholder Audio - Music tracks and silent audio
  • Lorem Ipsum Text - Classic placeholder text generation
  • Fake Data - FakerPHP integration for realistic content
  • Twig Functions - Simple, intuitive template functions

Prerequisites

For fully automatic setup, visit the related Flex recipe repository and follow the instructions to add it to the composer.json in the consuming project, as the recipe is not yet part of the Symfony's main recipe repository.

Installation

composer require neuralglitch/omnia-ipsum

Quick Start

{# Images #}
<img src="{{ omnia_image(600, 400) }}" alt="Placeholder">
<img src="{{ omnia_avatar('John Doe', 100) }}" alt="Avatar">

{# Videos #}
<video src="{{ omnia_video(1920, 1080) }}" controls></video>

{# Audio #}
<audio src="{{ omnia_audio(10) }}" controls></audio>

{# Text #}
<h1>{{ lorem_title() }}</h1>
<p>{{ lorem_paragraphs(3) }}</p>

{# Fake Data #}
<p>{{ fake('name') }} - {{ fake('email') }}</p>
<p>{{ fake_text(200) }}</p>

Important: Disable in production by configuring the bundle only for dev and test environments.

Documentation

Requirements

  • PHP 8.1 or higher
  • Symfony 6.4, 7.x, or 8.x
  • Twig 3.0 or higher

Support

License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-22