PHPackages                             fabricio872/random-teapot-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. fabricio872/random-teapot-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

fabricio872/random-teapot-bundle
================================

This is a Symfony bundle which replaces some requests with error 418 - I'm a teapot

v1.0.1(3y ago)03MITPHP

Since Oct 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Fabricio872/random-teapot-bundle)[ Packagist](https://packagist.org/packages/fabricio872/random-teapot-bundle)[ RSS](/packages/fabricio872-random-teapot-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (4)Used By (0)

Random teapot
=============

[](#random-teapot)

This is a Symfony bundle which replaces some requests with error 418 - I'm a teapot. You can specify what percentage of random picked request will be replaced by error 418

Valuable partners:
==================

[](#valuable-partners)

[![PhpStorm logo](https://camo.githubusercontent.com/1e31d98d23a59aa7fddbdae1155126adeac9ad6cded9a478fc8c5d377942c433/68747470733a2f2f7265736f75726365732e6a6574627261696e732e636f6d2f73746f726167652f70726f64756374732f636f6d70616e792f6272616e642f6c6f676f732f50687053746f726d2e737667)](https://camo.githubusercontent.com/1e31d98d23a59aa7fddbdae1155126adeac9ad6cded9a478fc8c5d377942c433/68747470733a2f2f7265736f75726365732e6a6574627261696e732e636f6d2f73746f726167652f70726f64756374732f636f6d70616e792f6272616e642f6c6f676f732f50687053746f726d2e737667)

Installation
============

[](#installation)

Make sure Composer is installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Applications that use Symfony Flex
----------------------------------

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
$ composer require fabricio872/random-teapot-bundle
```

Applications that don't use Symfony Flex
----------------------------------------

[](#applications-that-dont-use-symfony-flex)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require fabricio872/random-teapot-bundle
```

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php
return [
    // ...
    Fabricio872\RandomTeapotBundle\RandomTeapotBundle::class => ['all' => true],
];
```

Configuration options
---------------------

[](#configuration-options)

```
# config/services.yaml

# ...

# Default configuration for extension with alias: "random_teapot"
random_teapot:

    # Define how often should error 418 be given. (0.01 is 1% of all requests)
    randomness:           0.01

    # Set filter for paths you want this to be applied
    path_filter:          '*'

    # Change default template for 418 error
    template:             '@RandomTeapot/i_am_a_teapot.html.twig'

# ...
```

Path filter is using bash wildcards to define multiple paths [learn more](https://ryanstutorials.net/linuxtutorial/wildcards.php)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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 ~0 days

Total

3

Last Release

1292d ago

Major Versions

v0.0.1 → v1.0.02022-10-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/932c1684f2ac3360d3230023377029d9f7ea388a55dfc509c4f5501e2208ddd4?d=identicon)[Fabricio872](/maintainers/Fabricio872)

---

Top Contributors

[![Fabricio872](https://avatars.githubusercontent.com/u/29705379?v=4)](https://github.com/Fabricio872 "Fabricio872 (3 commits)")

### Embed Badge

![Health badge](/badges/fabricio872-random-teapot-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/fabricio872-random-teapot-bundle/health.svg)](https://phpackages.com/packages/fabricio872-random-teapot-bundle)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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