Skip to content

This extensions integrates fzaninotto/faker with TuTu.

License

Notifications You must be signed in to change notification settings

coduo/tutu-faker-extension

Repository files navigation

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 }}

About

This extensions integrates fzaninotto/faker with TuTu.

Resources

License

Stars

Watchers

Forks

Packages

No packages published