coduo / tutu-faker-extension
此扩展集成了 fzaninotto/faker 与 TuTu。
1.0.0
2016-11-20 17:19 UTC
Requires
- php: >=5.5.0
- fzaninotto/faker: ~1.0
- twig/twig: 1.*
Requires (Dev)
- behat/behat: 3.0.*
- behat/mink-extension: ~2.0
- behat/mink-goutte-driver: ~1.0
- bossa/phpspec2-expect: ~1.0
- coduo/tutu: ~1.0
This package is auto-updated.
Last update: 2024-09-20 07:57:50 UTC
README
此扩展集成了 fzaninotto/faker 与 TuTu。
更新 composer
$ composer require coduo/tutu-faker-extension
在 TuTu 配置中启用扩展
# config/config.yml
extensions:
Coduo\TuTu\Extension\Faker: ~
从现在起,您应该可以在 twig 模板中访问 faker
对象。示例
hello_world:
path: /hello/world
content: |
Hello {{ faker.firstName }}