From af801a3328eb95ab0d1bc0c6744e4bfee3df41d3 Mon Sep 17 00:00:00 2001 From: marius-ciclistu Date: Sat, 22 Nov 2025 14:49:34 +0200 Subject: [PATCH 1/9] Update config Add maravel to config. --- config | 1 + 1 file changed, 1 insertion(+) diff --git a/config b/config index d6dab72..116d278 100644 --- a/config +++ b/config @@ -25,6 +25,7 @@ laravel-10.3 laravel-11.0 leaf-3.11 lumen-10.0 +maravel-10.51 phroute-2.2 pure-php silex-2.3 From c61f68f022733fff3d8427789ddc9e1b25cd9797 Mon Sep 17 00:00:00 2001 From: marius-ciclistu Date: Sat, 22 Nov 2025 15:12:27 +0200 Subject: [PATCH 2/9] Create clean.sh --- maravel-10.51/_benchmark/clean.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 maravel-10.51/_benchmark/clean.sh diff --git a/maravel-10.51/_benchmark/clean.sh b/maravel-10.51/_benchmark/clean.sh new file mode 100644 index 0000000..08f614c --- /dev/null +++ b/maravel-10.51/_benchmark/clean.sh @@ -0,0 +1,4 @@ +#!/bin/sh +rm -rf !("_benchmark") +find -path './.*' -delete +rm -rf _benchmark/temp From 12d8ed125d45f2942ead2ae099ff988810dece43 Mon Sep 17 00:00:00 2001 From: marius-ciclistu Date: Sat, 22 Nov 2025 15:21:37 +0200 Subject: [PATCH 3/9] Add sh files --- maravel-10.51/_benchmark/clear-cache.sh | 4 ++++ maravel-10.51/_benchmark/hello_world.sh | 2 ++ maravel-10.51/_benchmark/setup.sh | 13 +++++++++++++ maravel-10.51/_benchmark/update.sh | 10 ++++++++++ 4 files changed, 29 insertions(+) create mode 100644 maravel-10.51/_benchmark/clear-cache.sh create mode 100644 maravel-10.51/_benchmark/hello_world.sh create mode 100644 maravel-10.51/_benchmark/setup.sh create mode 100644 maravel-10.51/_benchmark/update.sh diff --git a/maravel-10.51/_benchmark/clear-cache.sh b/maravel-10.51/_benchmark/clear-cache.sh new file mode 100644 index 0000000..a7ef05f --- /dev/null +++ b/maravel-10.51/_benchmark/clear-cache.sh @@ -0,0 +1,4 @@ +#!/bin/sh +# clear cache +php artisan cache:clear +echo -e "done" \ No newline at end of file diff --git a/maravel-10.51/_benchmark/hello_world.sh b/maravel-10.51/_benchmark/hello_world.sh new file mode 100644 index 0000000..2d69368 --- /dev/null +++ b/maravel-10.51/_benchmark/hello_world.sh @@ -0,0 +1,2 @@ +#!/bin/sh +url="$base/$fw/public/index.php/hello/index" \ No newline at end of file diff --git a/maravel-10.51/_benchmark/setup.sh b/maravel-10.51/_benchmark/setup.sh new file mode 100644 index 0000000..4bb9f23 --- /dev/null +++ b/maravel-10.51/_benchmark/setup.sh @@ -0,0 +1,13 @@ +#!/bin/sh +# create project +rm -rf _benchmark/temp +composer create-project --prefer-dist macropay-solutions/maravel:10.51.* ./_benchmark/temp --ansi +mv ./_benchmark/temp/{.,}* ./ + +# have the route & controller +yes|cp -rf _benchmark/maravel/. ./ + +# some enhancements +composer install --no-dev -o --ansi +chmod -R o+w storage +rm ./public/.htaccess \ No newline at end of file diff --git a/maravel-10.51/_benchmark/update.sh b/maravel-10.51/_benchmark/update.sh new file mode 100644 index 0000000..933c9e7 --- /dev/null +++ b/maravel-10.51/_benchmark/update.sh @@ -0,0 +1,10 @@ +#!/bin/sh +composer update + +# have the route & controller +yes|cp -rf _benchmark/maravel/. ./ + +# some enhancements +composer install --no-dev -o +chmod -R o+w storage +rm ./public/.htaccess \ No newline at end of file From 92d4b6f2a342e45cfe6740dcc618c94a390277d5 Mon Sep 17 00:00:00 2001 From: marius-ciclistu Date: Sat, 22 Nov 2025 15:27:50 +0200 Subject: [PATCH 4/9] Create HelloWorldController.php --- .../app/Http/Controllers/HelloWorldController.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 maravel-10.51/_benchmark/maravel/app/Http/Controllers/HelloWorldController.php diff --git a/maravel-10.51/_benchmark/maravel/app/Http/Controllers/HelloWorldController.php b/maravel-10.51/_benchmark/maravel/app/Http/Controllers/HelloWorldController.php new file mode 100644 index 0000000..4533c2b --- /dev/null +++ b/maravel-10.51/_benchmark/maravel/app/Http/Controllers/HelloWorldController.php @@ -0,0 +1,14 @@ + Date: Sat, 22 Nov 2025 15:31:13 +0200 Subject: [PATCH 5/9] Create index.php --- .../_benchmark/maravel/public/index.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 maravel-10.51/_benchmark/maravel/public/index.php diff --git a/maravel-10.51/_benchmark/maravel/public/index.php b/maravel-10.51/_benchmark/maravel/public/index.php new file mode 100644 index 0000000..eee4868 --- /dev/null +++ b/maravel-10.51/_benchmark/maravel/public/index.php @@ -0,0 +1,32 @@ +run(); + + +/* *** PHP-Frameworks-Bench *** */ +require $_SERVER['DOCUMENT_ROOT'].'/PHP-Frameworks-Bench/libs/output_data.php'; From 17d49b82ed98dc6ed575ba9d9a11f3ade195eda8 Mon Sep 17 00:00:00 2001 From: marius-ciclistu Date: Sat, 22 Nov 2025 15:33:21 +0200 Subject: [PATCH 6/9] Create web.php --- .../_benchmark/maravel/routes/web.php | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 maravel-10.51/_benchmark/maravel/routes/web.php diff --git a/maravel-10.51/_benchmark/maravel/routes/web.php b/maravel-10.51/_benchmark/maravel/routes/web.php new file mode 100644 index 0000000..42100f6 --- /dev/null +++ b/maravel-10.51/_benchmark/maravel/routes/web.php @@ -0,0 +1,20 @@ +get('/', function () use ($router) { + return $router->app->version(); +}); + +$router->get('/hello/index', 'HelloWorldController@index'); From 1233123ad36502681a648e8b657aa6e66fe4a94d Mon Sep 17 00:00:00 2001 From: marius-ciclistu Date: Sat, 22 Nov 2025 15:50:07 +0200 Subject: [PATCH 7/9] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2e0a287..571cf70 100755 --- a/README.md +++ b/README.md @@ -234,6 +234,7 @@ Note: This project is based on * [Laravel](https://github.com/laravel/laravel) * [Leaf](https://github.com/leafsphp/leaf) * [Lumen](https://github.com/laravel/lumen) +* [Maravel](https://github.com/macropay-solutions/maravel) * [PhRoute](https://github.com/mrjgreen/phroute) * [Silex](https://github.com/silexphp/Silex) * [Slim](https://github.com/slimphp/Slim) From d19afb62a39b26a056ab7651daffef4a0f34093f Mon Sep 17 00:00:00 2001 From: marius-ciclistu Date: Sun, 23 Nov 2025 10:02:42 +0200 Subject: [PATCH 8/9] Update web.php To be like the default from Maravel. --- maravel-10.51/_benchmark/maravel/routes/web.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/maravel-10.51/_benchmark/maravel/routes/web.php b/maravel-10.51/_benchmark/maravel/routes/web.php index 42100f6..2184caa 100644 --- a/maravel-10.51/_benchmark/maravel/routes/web.php +++ b/maravel-10.51/_benchmark/maravel/routes/web.php @@ -12,9 +12,9 @@ | and give it the Closure to call when that URI is requested. | */ - -$router->get('/', function () use ($router) { - return $router->app->version(); -}); +$router->get('/', [ + 'as' => 'version', + 'uses' => 'VersionController@version', +]); $router->get('/hello/index', 'HelloWorldController@index'); From d3b165ae6b502749eb36e6b4152b4bc65b408c4b Mon Sep 17 00:00:00 2001 From: marius-ciclistu Date: Sun, 23 Nov 2025 10:18:09 +0200 Subject: [PATCH 9/9] Update setup.sh Set production and disable debug mode --- maravel-10.51/_benchmark/setup.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/maravel-10.51/_benchmark/setup.sh b/maravel-10.51/_benchmark/setup.sh index 4bb9f23..2ddbce9 100644 --- a/maravel-10.51/_benchmark/setup.sh +++ b/maravel-10.51/_benchmark/setup.sh @@ -9,5 +9,11 @@ yes|cp -rf _benchmark/maravel/. ./ # some enhancements composer install --no-dev -o --ansi + +cat >> .env << EOF +APP_ENV=production +APP_DEBUG=false +EOF + chmod -R o+w storage -rm ./public/.htaccess \ No newline at end of file +rm ./public/.htaccess