Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update leaf 3.11, slim 4.14, fatfree 3.9 #70

Merged
merged 6 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions config
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ cakephp-4.5
cakephp-5.0
codeigniter-4.4
fastroute-1.3
fatfree-3.8
fatfree-3.9
fuelphp-1.9
kumbia-1.2
laravel-10.3
laravel-11.0
leaf-3.5
leaf-3.11
lumen-10.0
phroute-2.2
pure-php
silex-2.3
slim-4.13
slim-4.14
symfony-5.4
symfony-6.4
symfony-7.0
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion fatfree-3.8/composer.json → fatfree-3.9/composer.json
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"require": {
"bcosca/fatfree-core": "3.8.*"
"bcosca/fatfree-core": "3.9.*"
},
"autoload": {
"psr-4": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion leaf-3.5/composer.json → leaf-3.11/composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"require": {
"leafs/leaf": "3.5.0"
"leafs/leaf": "3.11.*"
},
"autoload": {
"psr-4": {
Expand Down
File renamed without changes.
19 changes: 19 additions & 0 deletions slim-4.14/Controllers/HelloWorldController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php declare(strict_types=1);

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

namespace Controllers;

use Slim\Http\ServerRequest;
use Slim\Http\Response;

// such simple controller
class HelloWorldController {
public function index(ServerRequest $request, Response $response, $args): Response {
$response->getBody()->write("Hello World!");
return $response;
}
}
3 changes: 3 additions & 0 deletions slim-4.14/_benchmark/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
rm -rf !("_benchmark"|"Controllers"|"composer.json"|"public")
find -path './.*' -delete
3 changes: 3 additions & 0 deletions slim-4.14/_benchmark/clear-cache.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
# clear cache
echo -e "!"
2 changes: 2 additions & 0 deletions slim-4.14/_benchmark/hello_world.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
url="$base/$fw/public/index.php/hello/index"
2 changes: 2 additions & 0 deletions slim-4.14/_benchmark/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
composer install --no-dev -o --ansi
2 changes: 2 additions & 0 deletions slim-4.14/_benchmark/update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
composer update
12 changes: 12 additions & 0 deletions slim-4.14/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"require": {
"slim/slim": "4.14.*",
"slim/psr7": "1.7.*",
"slim/http": "1.4.*"
},
"autoload": {
"psr-4": {
"Controllers\\": "Controllers/"
}
}
}
22 changes: 22 additions & 0 deletions slim-4.14/public/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php
use Slim\Factory\AppFactory;

require __DIR__.'/../vendor/autoload.php';

// Instantiate App
$app = AppFactory::create();

// xampp
$app->setBasePath("/PHP-Frameworks-Bench/slim-4.14/public/index.php");

// Add error middleware
$app->addErrorMiddleware(false, true, true);

/* *** 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';
Loading