Skip to content

erdnaxelaweb/staticfakedesign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Static Fake Design Bundle

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

About

Provides utilities to generate fake data in order to create a static design

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published