PHPackages                             survos/faker-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. survos/faker-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

survos/faker-bundle
===================

Makes fakerphp/faker methods available via twig

2.0.83(5mo ago)0143MITPHPPHP ^8.4

Since Aug 23Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/survos/SurvosFakerBundle)[ Packagist](https://packagist.org/packages/survos/faker-bundle)[ GitHub Sponsors](https://github.com/kbond)[ RSS](/packages/survos-faker-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (804)Used By (0)

FakerBundle
===========

[](#fakerbundle)

Symfony Bundle for fakerphp/faker, exposes many of the formatters in twig.

```
composer req survos/faker-bundle
```

```

{% for i in 1..10 %}
{{ person_name() }}, {{ company_company() }}
{% endfor %}

```

By default, the data will change with every page refresh. To keep it consistent, change the seed. If the twig function names interfere with another twig function, set a prefix, e.g. fake\_name().

```
# config/packages/survos_faker.yaml
survos_faker:
  seed: 42
  prefix: fake_
```

You can also set the seed in a twig file, via the faker\_set\_seed() function.

Working example
---------------

[](#working-example)

Cut and paste the following to create a new Symfony project with a landing page that demonstrates the faker twig functions.

```
symfony new FakerDemo --webapp && cd FakerDemo
bin/console make:controller AppController
sed  -i "s|'/app'|'/'|" src/Controller/AppController.php # the landing page controller
composer config allow-plugins.survos/installer true
composer req survos/faker-bundle
echo "{% extends 'base.html.twig' %} {% block body %} {% for i in 0..10 %} {{ person_name() }} {{ internet_email() }}   {{ company_jobTitle() }}, {{ company_company() }}  {% endfor %} {% endblock %}" > templates/app/index.html.twig
symfony server:start -d
symfony open:local
```

symfony new pwa-demo --webapp --php=8.2 &amp;&amp; cd pwa-demo composer config extra.symfony.allow-contrib true composer req symfony/stimulus-bundle

bin/console make:controller AppController sed -i "s|Route('/app'|Route('/'|" src/Controller/AppController.php sed -i "s|'app\_app'|'app\_homepage'|" src/Controller/AppController.php cat &gt; templates/app/index.html.twig &lt;&lt;END {% extends 'base.html.twig' %} {% block body %}

A simple CRUD
=============

[](#a-simple-crud)

[Listing](){% endblock %} END Now open the site. Each refresh generates different results. To make the results consistent, set a seed.

```
echo "survos_faker: {seed: 1}" > config/packages/survos_faker.yaml
bin/console cache:clear
symfony server:start
```

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance71

Regular maintenance activity

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

803

Last Release

173d ago

Major Versions

1.6.24 → 2.0.152025-09-28

PHP version history (3 changes)1.0.1PHP ^8.1

1.5.424PHP ^8.3

2.0.15PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/21b39551f92ed4143772c622f9e571589c5a72c96ab3c53fe67489ce0d83e806?d=identicon)[tacman1123](/maintainers/tacman1123)

---

Top Contributors

[![tacman](https://avatars.githubusercontent.com/u/619585?v=4)](https://github.com/tacman "tacman (1 commits)")

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/survos-faker-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/survos-faker-bundle/health.svg)](https://phpackages.com/packages/survos-faker-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)[a2lix/auto-form-bundle

Automate form building

873.8M11](/packages/a2lix-auto-form-bundle)[iq2i/storia-bundle

UI Storia bundle

144.6k](/packages/iq2i-storia-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
