Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 478 Bytes

File metadata and controls

28 lines (20 loc) · 478 Bytes

TuTu faker extension

This extensions integrates fzaninotto/faker with TuTu.

Update composer

$ composer require coduo/tutu-faker-extension

Enable extension in TuTu configuration

# config/config.yml

extensions:
    Coduo\TuTu\Extension\Faker: ~

From now you should be able to access faker object in twig templates. Example:

hello_world:
  path: /hello/world
  content: |
    Hello {{ faker.firstName }}