Skip to content

dunglas/php-di-container-benchmarks

 
 

Repository files navigation

PHP DI Container Benchmarks

Software License Quality Score Total Downloads Gitter

Table of Contents

Introduction

In 2014, a really interesting benchmark about DI Containers for PHP was published on Sitepoint. Unfortunately, the implementation of the tests turned out to be quite controversial, so the benchmark itself wasn't really useful.

I have been interested in the topic since then so I wanted to conduct a better benchmark than the last one was: I tried to fix some of its flaws while keeping the good parts.

You can find the benchmark results here.

Install

You can simply download this repository or install it via Composer by running the command below:

$ composer require kocsismate/di-container-benchmarks:dev-master

Furthermore, Docker Compose has to be installed on your machine.

Usage

Run docker-compose up in order to execute the tests. The html output will be generated in the "var" directory.

The same output can be seen here.

Change Log

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see the License File for more information.

About

Benchmark for some popular PHP Dependency Injection Containers

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages

  • PHP 93.3%
  • HTML 6.7%