erdnaxelaweb / staticfakedesign
Provides utilities to generate fake data in order to create a static design
Installs: 13 799
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 3
Open Issues: 0
Requires
- babdev/pagerfanta-bundle: ^2.0
- doctrine/collections: ^2.0
- fakerphp/faker: ^1.23
- friendsofphp/proxy-manager-lts: ^1.0
- knplabs/knp-menu-bundle: ^3.0
- smknstd/fakerphp-picsum-images: ^1.0
- symfony/form: ^5.0
- symfony/options-resolver: ^5.0
- symfony/translation: ^5.0
- twig/intl-extra: ^3.0
Requires (Dev)
Suggests
- ext-dom: *
This package is auto-updated.
Last update: 2024-11-05 07:21:19 UTC
README
Features
Add the following syntax in your twig template to generate variable with a fake value
{# @fake variable_name value_type }
The variable is generated only when a variable with the same name doesn't exist The available value types are (some type accept parameters) :
- audio
- block
- breadcrumb
- content
- coordinates
- form
- image
- link
- pager
- richtext
- search_form
- taxonomy_entry
- video
full documentation (coming soon)
Installation
Require the package with composer require erdnaxelaweb/staticfakedesign:dev-main
then activate the bundle :
ErdnaxelaWeb\StaticFakeDesignBundle\StaticFakeDesignBundle::class => ['all' => true],
Routing
Add the following root to access the examples `/static/examples:
static: path: /static/{path} controller: ErdnaxelaWeb\StaticFakeDesignBundle\Controller\StaticController::viewAction requirements: path: .*
Create your own value generator
coming soon