green-elephpant/code-bench-laravel

A package to conveniently use CodeBench in your Laravel project

v1.0.0 2024-09-08 15:31 UTC

This package is auto-updated.

Last update: 2024-12-08 16:39:12 UTC


README

Green ElePHPant

Green ElePHPant - CodeBench Laravel

The Green ElePHPant wants to help you to reduce the carbon emissions of your software.

One way of doing so is to optimize the performance. Less CPU, RAM and Storage means reduced energy consumption, fewer carbon emissions, and less hardware to be produced. And, last but not least, the users of your software will benefit from a faster application.

GreenElephpant\CodeBenchLarvel is a tiny package to conveniently include CodeBench into your Laravel project.

Key concept

GreenElephpant\CodeBench is a simple helper to compare the performance of code blocks. This package configures GreenElephpant\CodeBench to directly use Log::debug().

Installation

composer require green-elephpant/code-bench-laravel --dev

Note: we use require-dev here, since GreenElephpant\CodeBench should not be used in production code.

Usage

See the CodeBench documentation on how to use it.