Faker

Allows you to use Faker to output random fake data in your templates.

Description #

It can go hand in hand with for example Viget's Front-end Parts Kits

Usage #

Here's an example of some faking:

{% set faker = craft.faker.fake %}
<ul>
{% for i in 1..10 %}
    <li>{{ faker.name }}, living at: {{ faker.address }}. Profile picture: {{ faker.imageUrl(640, 450, 'people') }}</li>
{% endfor %}
</ul>

Localization #

To use another locale, like French:

{% set faker = craft.faker.locale('fr_FR').fake() %}

For a list of supported locales, check out the Faker docs

Releases

0.1 — 2015-10-11 Download
  • Added: Initial release

Currently available for Craft consulting and custom plugin development

Contact me