Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A fake data generator for Kohana
Branch: master
Failed to load latest commit information.
classes Add factory style, idea by @gevans
config 0.3.1 Documentation
guide/faker 0.3.1 Documentation
views/faker 0.3.1 Documentation
LICENSE Add factory style, idea by @gevans
TODO Break out sub-classes, makes it more extensible. Added new stuff too.
doxygen.cfg 0.3.1 Documentation

K3-Faker Module

A Ko3 Module by John Hobbs of Little Filament, Inc.


This module provides a lazy-loading, modular, locale aware fake data generator for Kohana 3.1.x.

It is inspired by (and borrows data from) Ruby's Faker gem, and Perl's Data::Faker


K3-Faker is a simple, standard module.

  1. Drop the source in your MODPATH folder.
  2. Add the module to Kohana::modules in your bootstrap.php


Use the module methods from Faker:

echo 'Name: ' . Faker::Name()->name();


Name: Abbigail Vandervort

Additionally, if you have no arguments, you can now act as if the module method is a property.

echo 'Name: ' . Faker::Name()->name;

An alternate syntax is to use the factory style (thanks @gevans):

echo 'Name: ' . Faker::factory( 'name' )->name;

Full documentation is available online

Inspiration / Credit

Something went wrong with that request. Please try again.