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) 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 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 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/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 @@ +run(); + + +/* *** PHP-Frameworks-Bench *** */ +require $_SERVER['DOCUMENT_ROOT'].'/PHP-Frameworks-Bench/libs/output_data.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..2184caa --- /dev/null +++ b/maravel-10.51/_benchmark/maravel/routes/web.php @@ -0,0 +1,20 @@ +get('/', [ + 'as' => 'version', + 'uses' => 'VersionController@version', +]); + +$router->get('/hello/index', 'HelloWorldController@index'); diff --git a/maravel-10.51/_benchmark/setup.sh b/maravel-10.51/_benchmark/setup.sh new file mode 100644 index 0000000..2ddbce9 --- /dev/null +++ b/maravel-10.51/_benchmark/setup.sh @@ -0,0 +1,19 @@ +#!/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 + +cat >> .env << EOF +APP_ENV=production +APP_DEBUG=false +EOF + +chmod -R o+w storage +rm ./public/.htaccess 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