Skip to content

Commit

Permalink
Capitalized paths
Browse files Browse the repository at this point in the history
  • Loading branch information
myaaghubi committed May 13, 2023
1 parent b227792 commit d316d5b
Show file tree
Hide file tree
Showing 47 changed files with 76 additions and 76 deletions.
2 changes: 1 addition & 1 deletion cakephp-4.3/_benchmark/cakephp/config/app_local.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Development Mode:
* true: Errors and warnings shown.
*/
/* *** php-frameworks-bench *** */
/* *** PHP-Frameworks-Bench *** */
'debug' => false,

/*
Expand Down
2 changes: 1 addition & 1 deletion cakephp-4.3/_benchmark/cakephp/config/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
*/
$routes->setRouteClass(DashedRoute::class);

/* *** php-frameworks-bench *** */
/* *** PHP-Frameworks-Bench *** */
$routes->connect('/hello/index', ['controller' => 'HelloWorld', 'action' => 'display', 'home']);

$routes->scope('/', function (RouteBuilder $builder) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php declare(strict_types=1);

/*
php-frameworks-bench
PHP-Frameworks-Bench
this is a simple hello world controller to make benchmark
*/

Expand Down
4 changes: 2 additions & 2 deletions cakephp-4.3/_benchmark/cakephp/webroot/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@
// Run the request/response through the application and emit the response.
$server->emit($server->run());

/* *** php-frameworks-bench *** */
require $_SERVER['DOCUMENT_ROOT'].'/php-frameworks-bench/libs/output_data.php';
/* *** PHP-Frameworks-Bench *** */
require $_SERVER['DOCUMENT_ROOT'].'/PHP-Frameworks-Bench/libs/output_data.php';
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
// route since we don't have to scan directories.
$routes->get('/', 'Home::index');

/* *** php-frameworks-bench *** */
/* *** PHP-Frameworks-Bench *** */
$routes->get('/hello/index', 'HelloWorldController::index');

/*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
php-frameworks-bench
PHP-Frameworks-Bench
this is a simple hello world controller to make benchmark
*/
namespace App\Controllers;
Expand Down
4 changes: 2 additions & 2 deletions codeigniter-4.1/_benchmark/codeigniter/public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@
$app->run();


/* *** php-frameworks-bench *** */
require $_SERVER['DOCUMENT_ROOT'].'/php-frameworks-bench/libs/output_data.php';
/* *** PHP-Frameworks-Bench *** */
require $_SERVER['DOCUMENT_ROOT'].'/PHP-Frameworks-Bench/libs/output_data.php';
2 changes: 1 addition & 1 deletion fastroute-1.3/Controllers/HelloWorldController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
php-frameworks-bench
PHP-Frameworks-Bench
this is a simple hello world controller to make benchmark
*/
namespace Controllers;
Expand Down
4 changes: 2 additions & 2 deletions fastroute-1.3/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

// https://github.com/nikic/FastRoute/issues/110#issuecomment-273760186
// Strip prefix
$prefix = '/php-frameworks-bench/fastroute-1.3';
$prefix = '/PHP-Frameworks-Bench/fastroute-1.3';
if ($prefix !== '' && strpos($uri, $prefix) === 0) {
$uri = substr($uri, strlen($prefix));
}
Expand All @@ -45,4 +45,4 @@
}


require $_SERVER['DOCUMENT_ROOT'].'/php-frameworks-bench/libs/output_data.php';
require $_SERVER['DOCUMENT_ROOT'].'/PHP-Frameworks-Bench/libs/output_data.php';
2 changes: 1 addition & 1 deletion fatfree-3.8.0/Controllers/HelloWorldController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
php-frameworks-bench
PHP-Frameworks-Bench
this is a simple hello world controller to make benchmark
*/
namespace Controllers;
Expand Down
2 changes: 1 addition & 1 deletion fatfree-3.8.0/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

$f3->run();

require $_SERVER['DOCUMENT_ROOT'].'/php-frameworks-bench/libs/output_data.php';
require $_SERVER['DOCUMENT_ROOT'].'/PHP-Frameworks-Bench/libs/output_data.php';
2 changes: 1 addition & 1 deletion frameworkx-dev/Controllers/HelloWorldController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
php-frameworks-bench
PHP-Frameworks-Bench
this is a simple hello world controller to make benchmark
*/
namespace Controllers;
Expand Down
6 changes: 3 additions & 3 deletions frameworkx-dev/public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// so you need to have your prefix first
// https://github.com/nikic/FastRoute/issues/110#issuecomment-273760186
// Strip prefix
$prefix = '/php-frameworks-bench/frameworkx-dev';
$prefix = '/PHP-Frameworks-Bench/frameworkx-dev';
// I believe you should fix the prefix issue, Christian, if you care

// a little bit better performance via "controller instances"
Expand All @@ -18,5 +18,5 @@
$app->run();


/* *** php-frameworks-bench *** */
require $_SERVER['DOCUMENT_ROOT'].'/php-frameworks-bench/libs/output_data.php';
/* *** PHP-Frameworks-Bench *** */
require $_SERVER['DOCUMENT_ROOT'].'/PHP-Frameworks-Bench/libs/output_data.php';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
php-frameworks-bench
PHP-Frameworks-Bench
this is a simple hello world controller to make benchmark
*/
class Controller_HelloWorld extends Controller {
Expand Down
2 changes: 1 addition & 1 deletion fuelphp-1.9/_benchmark/fuel/fuel/app/config/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

return array(

/* *** php-frameworks-bench *** */
/* *** PHP-Frameworks-Bench *** */
'helloworld/index' => 'helloworld/index',

/**
Expand Down
4 changes: 2 additions & 2 deletions fuelphp-1.9/_benchmark/fuel/public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,5 +225,5 @@ class_alias('Fuel\\Core\\Autoloader', 'Autoloader');

$response->send(true);

/* *** php-frameworks-bench *** */
require $_SERVER['DOCUMENT_ROOT'].'/php-frameworks-bench/libs/output_data.php';
/* *** PHP-Frameworks-Bench *** */
require $_SERVER['DOCUMENT_ROOT'].'/PHP-Frameworks-Bench/libs/output_data.php';
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
],
],
],
/* *** php-frameworks-bench *** */
/* *** PHP-Frameworks-Bench *** */
'hello-world' => [
'type' => Literal::class,
'options' => [
Expand All @@ -47,7 +47,7 @@
'controllers' => [
'factories' => [
Controller\IndexController::class => InvokableFactory::class,
/* *** php-frameworks-bench *** */
/* *** PHP-Frameworks-Bench *** */
Controller\HelloWorldController::class => InvokableFactory::class,
],
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
php-frameworks-bench
PHP-Frameworks-Bench
this is a simple hello world controller to make benchmark
*/
namespace Application\Controller;
Expand Down
4 changes: 2 additions & 2 deletions laminas-2.0.x.dev/_benchmark/laminas/public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@
// Run the application!
Application::init($appConfig)->run();

/* *** php-frameworks-bench *** */
require $_SERVER['DOCUMENT_ROOT'].'/php-frameworks-bench/libs/output_data.php';
/* *** PHP-Frameworks-Bench *** */
require $_SERVER['DOCUMENT_ROOT'].'/PHP-Frameworks-Bench/libs/output_data.php';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
php-frameworks-bench
PHP-Frameworks-Bench
this is a simple hello world controller to make benchmark
*/
namespace App\Http\Controllers;
Expand Down
4 changes: 2 additions & 2 deletions laravel-9.1/_benchmark/laravel/public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@
$kernel->terminate($request, $response);


/* *** php-frameworks-bench *** */
require $_SERVER['DOCUMENT_ROOT'].'/php-frameworks-bench/libs/output_data.php';
/* *** PHP-Frameworks-Bench *** */
require $_SERVER['DOCUMENT_ROOT'].'/PHP-Frameworks-Bench/libs/output_data.php';
2 changes: 1 addition & 1 deletion laravel-9.1/_benchmark/laravel/routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
});


/* *** php-frameworks-bench *** */
/* *** PHP-Frameworks-Bench *** */
Route::get('/hello/index', [App\Http\Controllers\HelloWorldController::class, 'index']);
2 changes: 1 addition & 1 deletion leaf-3.0/Controllers/HelloWorldController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
php-frameworks-bench
PHP-Frameworks-Bench
this is a simple hello world controller to make benchmark
*/
namespace Controllers;
Expand Down
2 changes: 1 addition & 1 deletion leaf-3.0/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

app()->run();

require $_SERVER['DOCUMENT_ROOT'].'/php-frameworks-bench/libs/output_data.php';
require $_SERVER['DOCUMENT_ROOT'].'/PHP-Frameworks-Bench/libs/output_data.php';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
php-frameworks-bench
PHP-Frameworks-Bench
this is a simple hello world controller to make benchmark
*/
namespace App\Http\Controllers;
Expand Down
4 changes: 2 additions & 2 deletions lumen-9.0/_benchmark/lumen/public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
$app->run();


/* *** php-frameworks-bench *** */
require $_SERVER['DOCUMENT_ROOT'].'/php-frameworks-bench/libs/output_data.php';
/* *** PHP-Frameworks-Bench *** */
require $_SERVER['DOCUMENT_ROOT'].'/PHP-Frameworks-Bench/libs/output_data.php';
2 changes: 1 addition & 1 deletion phroute-2.2/Controllers/HelloWorldController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
php-frameworks-bench
PHP-Frameworks-Bench
this is a simple hello world controller to make benchmark
*/
namespace Controllers;
Expand Down
10 changes: 5 additions & 5 deletions phroute-2.2/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@

$router = new RouteCollector();

/* *** php-frameworks-bench *** */
/* *** PHP-Frameworks-Bench *** */
$router->get('/index.php/hello/index', ['Controllers\HelloWorldController', 'getIndex']);

$uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);

// just same as fastroute:
// https://github.com/nikic/FastRoute/issues/110#issuecomment-273760186
// Strip prefix
$prefix = '/php-frameworks-bench/phroute-2.2';
$prefix = '/PHP-Frameworks-Bench/phroute-2.2';
if ($prefix !== '' && strpos($uri, $prefix) === 0) {
$uri = substr($uri, strlen($prefix));
}

// dont mind the cache, read the readme.md of php-frameworks-bench
// dont mind the cache, read the readme.md of PHP-Frameworks-Bench
# NB. You can cache the return value from $router->getData() so you don't have to create the routes each request - massive speed gains
$dispatcher = new Phroute\Phroute\Dispatcher($router->getData());

Expand All @@ -29,5 +29,5 @@
echo $response;


/* *** php-frameworks-bench *** */
require $_SERVER['DOCUMENT_ROOT'].'/php-frameworks-bench/libs/output_data.php';
/* *** PHP-Frameworks-Bench *** */
require $_SERVER['DOCUMENT_ROOT'].'/PHP-Frameworks-Bench/libs/output_data.php';
2 changes: 1 addition & 1 deletion pure-php/Controllers/HelloWorldController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
php-frameworks-bench
PHP-Frameworks-Bench
this is a simple hello world controller to make benchmark
*/
namespace Controllers;
Expand Down
6 changes: 3 additions & 3 deletions pure-php/index.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php
/*
php-frameworks-bench
PHP-Frameworks-Bench
This is enough I think, but you can programm a more complex one or a more simpler one */
//

$uri = $_SERVER['REQUEST_URI'];

$prefix = '/php-frameworks-bench/pure-php';
$prefix = '/PHP-Frameworks-Bench/pure-php';

require_once ('Controllers/HelloWorldController.php');

Expand All @@ -30,4 +30,4 @@
break;
}

require $_SERVER['DOCUMENT_ROOT'].'/php-frameworks-bench/libs/output_data.php';
require $_SERVER['DOCUMENT_ROOT'].'/PHP-Frameworks-Bench/libs/output_data.php';
2 changes: 1 addition & 1 deletion siler-1.7.9/Controllers/HelloWorldController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);
/*
php-frameworks-bench
PHP-Frameworks-Bench
this is a simple hello world controller to make benchmark
*/
namespace Controllers;
Expand Down
6 changes: 3 additions & 3 deletions siler-1.7.9/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
require __DIR__.'/vendor/autoload.php';


/* *** php-frameworks-bench *** */
/* *** PHP-Frameworks-Bench *** */
Siler\Route\class_name('/index.php/hello/index', Controllers\HelloWorldController::class);


/* *** php-frameworks-bench *** */
require $_SERVER['DOCUMENT_ROOT'].'/php-frameworks-bench/libs/output_data.php';
/* *** PHP-Frameworks-Bench *** */
require $_SERVER['DOCUMENT_ROOT'].'/PHP-Frameworks-Bench/libs/output_data.php';
2 changes: 1 addition & 1 deletion silex-2.3/Controllers/HelloWorldController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
php-frameworks-bench
PHP-Frameworks-Bench
this is a simple hello world controller to make benchmark
*/
namespace Controllers;
Expand Down
6 changes: 3 additions & 3 deletions silex-2.3/web/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
$app = new Silex\Application();
// $app['debug'] = true;

/* *** php-frameworks-bench *** */
/* *** PHP-Frameworks-Bench *** */
$app->get('/hello/index', 'Controllers\HelloWorldController::getIndex');

$app->run();

/* *** php-frameworks-bench *** */
require $_SERVER['DOCUMENT_ROOT'].'/php-frameworks-bench/libs/output_data.php';
/* *** PHP-Frameworks-Bench *** */
require $_SERVER['DOCUMENT_ROOT'].'/PHP-Frameworks-Bench/libs/output_data.php';
2 changes: 1 addition & 1 deletion slim-3.12/Controllers/HelloWorldController.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php declare(strict_types=1);

/*
php-frameworks-bench
PHP-Frameworks-Bench
this is a simple hello world controller to make benchmark
*/

Expand Down
6 changes: 3 additions & 3 deletions slim-3.12/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

$container = $app->getContainer();

/* *** php-frameworks-bench *** */
/* *** PHP-Frameworks-Bench *** */
$app->get('/hello/index', Controllers\HelloWorldController::class . ':index');

$app->run();

/* *** php-frameworks-bench *** */
require $_SERVER['DOCUMENT_ROOT'].'/php-frameworks-bench/libs/output_data.php';
/* *** PHP-Frameworks-Bench *** */
require $_SERVER['DOCUMENT_ROOT'].'/PHP-Frameworks-Bench/libs/output_data.php';
2 changes: 1 addition & 1 deletion slim-4.10/Controllers/HelloWorldController.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php declare(strict_types=1);

/*
php-frameworks-bench
PHP-Frameworks-Bench
this is a simple hello world controller to make benchmark
*/

Expand Down
Loading

0 comments on commit d316d5b

Please sign in to comment.