PHPackages                             efficience-it/speedtest-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. efficience-it/speedtest-bundle

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

efficience-it/speedtest-bundle
==============================

Speedtest

v1.0.2(3y ago)146MITJavaScriptPHP &gt;=7.2.5

Since Oct 20Pushed 1y agoCompare

[ Source](https://github.com/efficience-it/speedtest-bundle)[ Packagist](https://packagist.org/packages/efficience-it/speedtest-bundle)[ RSS](/packages/efficience-it-speedtest-bundle/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (4)Used By (0)

Speedtest bundle
================

[](#speedtest-bundle)

This speedtest is a Symfony-based bundle. It's an overhaul of the [LibreSpeed](https://librespeed.org/) project.

It was created by Efficience IT, a French company located in Lille.

Installation
------------

[](#installation)

### Step 1: Install the bundle with Composer

[](#step-1-install-the-bundle-with-composer)

Require the `efficience-it/speedtest-bundle` with [Composer](https://getcomposer.org/).

```
$ composer require efficience-it/speedtest-bundle
```

### Step 2: Configure the speedtest in your project

[](#step-2-configure-the-speedtest-in-your-project)

First, verify if the line below is in the `bundles.php` file. If not, copy and paste it.

```
EfficienceIt\SpeedtestBundle\SpeedtestBundle::class => ['all' => true]
```

Second, create the `speedtest.yaml` file in the `config/routes` folder.

Copy the code below and paste it in this file.

```
speedtest:
    resource: '@SpeedtestBundle/Resources/config/routes.yaml'
    prefix: /speedtest
```

### Step 3: Add the speedtest on your website

[](#step-3-add-the-speedtest-on-your-website)

On any controller, you can call the SpeedtestService and its `displaySpeedtest` function.

Here is an example of a controller, with a route tht includes the bundle:

```
class HomeController extends AbstractController
{
    /**
     * @Route("/home", name="app_home")
     */
    public function index(SpeedtestService $speedtestService): Response
    {
        // Replace 'home/index.html.twig' with the name of your template
        return $this->render('home/index.html.twig', [
            'speedtest' => $speedtestService->displaySpeedtest()
        ]);
    }
}
```

To display the speedtest on your page, just include it in your template file as below:

```
{% extends 'base.html.twig' %}

{% block title %}Hello HomeController!{% endblock %}

{% block body %}
    {% include speedtest %}
{% endblock %}
```

You can access to your route (in this example `localhost/home`), and the speedtest should appear !

How to retrieve the results ?
-----------------------------

[](#how-to-retrieve-the-results-)

Create a new Controller (for example `ResultsController`), and copy/paste this code:

```
/* DON'T ADD A @Route ANNOTATION */
class ResultsController extends AbstractController
{
    /* DON'T CHANGE THIS ROUTE ! */
    /**
     * @Route("/speedtest-results", name="speedtest_results", methods={"POST"})
     */
    public function speedtestResults(Request $request): Response
    {
        if (!$request->isXmlHttpRequest()) {
            throw new AccessDeniedException();
        }
        $requestContent = json_decode($request->getContent(), true);
        dump($requestContent);

        return new JsonResponse($requestContent);
    }
}
```

With this route (called in AJAX), you can retrieve your speedtest results and do whatever you want with it !

Change the bundle language
--------------------------

[](#change-the-bundle-language)

Find the `config/packages/translation.yaml`. You just have to change the `default_path` parameter with the language you want.

Actually, you can translate in English (en) and French (fr). Here is an example of the `translation.yaml` file with French configuration.

```
framework:
    default_locale: fr  # Change the language here
    translator:
        default_path: '%kernel.project_dir%/translations'
        fallbacks:
            - en        # Default language if the default_locale is not found.
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

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

Total

3

Last Release

1348d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/98dfb2310b8c4e6af5e2abaf0860cff407f88539e146378b7d4ca424217e66e2?d=identicon)[lacatoire](/maintainers/lacatoire)

---

Top Contributors

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

---

Tags

phpsymfony

### Embed Badge

![Health badge](/badges/efficience-it-speedtest-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/efficience-it-speedtest-bundle/health.svg)](https://phpackages.com/packages/efficience-it-speedtest-bundle)
```

###  Alternatives

[cleaniquecoders/blueprint-macro

Laravel Blueprint Macro

164.6k8](/packages/cleaniquecoders-blueprint-macro)[limingxinleo/x-phalcon-enum

a phalcon enum component

104.4k1](/packages/limingxinleo-x-phalcon-enum)

PHPackages © 2026

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