Get support for yiisoft/yii2-app-benchmark

If you're new to LTH, please see our FAQ for more information on what it is we do.

Support Options

Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:

View Open Issues

Take a look to see if anyone else has experienced the same issue as you and if they managed to solve it.

Open an Issue

Make sure to read any relevant guidelines for opening issues on this repo before posting a new issue.

Sponsor directly

Check out the page and see if there are any options to sponsor this project or it's developers directly.

yiisoft/yii2-app-benchmark

Yii 2 Benchmark Application

Yii 2 Benchmark Application is an application built to demonstrate the minimal overhead introduced by the Yii framework. The application contains a single page which only renders the "hello world" string.

The application attempts to simulate the scenario in which you can achieve the best performance when using Yii. It does so by assuming that both of the main application configuration and the page content are cached in memory, and the application enables pretty URLs.

DIRECTORY STRUCTURE

  protected/          contains application source code
      controllers/    contains Web controller classes
  index.php           the entry script

REQUIREMENTS

The minimum requirement by Yii is that your Web server supports PHP 5.4.0.

INSTALLATION

If you do not have Composer, you may download it from https://getcomposer.org/ or run the following command on Linux/Unix/MacOS:

curl -s https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

You can then install the Bootstrap Application using the following command:

composer global require "fxp/composer-asset-plugin:~1.1.0"
composer create-project --prefer-dist yiisoft/yii2-app-benchmark yii-benchmark

Now you should be able to access the benchmark page using the URL

http://localhost/yii-benchmark/index.php/site/hello

In the above, we assume yii-benchmark is directly under the document root of your Web server.

Note that in order to install some dependencies you must have PHP with OpenSSL support.

Our Mission

We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.

Interesting Articles

Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated

p-e622a1a2