Skip to content

neuralglitch/omnia-ipsum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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