diff --git a/README.md b/README.md index 884bbd8..cbe61c8 100755 --- a/README.md +++ b/README.md @@ -239,6 +239,7 @@ Note: This project is based on * [Leaf](https://github.com/leafsphp/leaf) * [Lumen](https://github.com/laravel/lumen) * [Maravel](https://github.com/macropay-solutions/maravel) +* [Maravelith](https://github.com/macropay-solutions/maravelith) * [Nette](https://github.com/nette/web-project) * [PhRoute](https://github.com/mrjgreen/phroute) * [Silex](https://github.com/silexphp/Silex) diff --git a/config b/config index d05685b..e0ce2e0 100644 --- a/config +++ b/config @@ -27,6 +27,7 @@ laravel-12.11 leaf-4.4 lumen-10.0 maravel-10.51 +maravelith-10.52 nette-3.3 phroute-2.2 pure-php @@ -36,4 +37,4 @@ symfony-6.4 symfony-7.4 symfony-8.0 yii-2.0-basic -" \ No newline at end of file +" diff --git a/maravelith-10.52/_benchmark/clean.sh b/maravelith-10.52/_benchmark/clean.sh new file mode 100644 index 0000000..08f614c --- /dev/null +++ b/maravelith-10.52/_benchmark/clean.sh @@ -0,0 +1,4 @@ +#!/bin/sh +rm -rf !("_benchmark") +find -path './.*' -delete +rm -rf _benchmark/temp diff --git a/maravelith-10.52/_benchmark/clear-cache.sh b/maravelith-10.52/_benchmark/clear-cache.sh new file mode 100644 index 0000000..a810016 --- /dev/null +++ b/maravelith-10.52/_benchmark/clear-cache.sh @@ -0,0 +1,4 @@ +#!/bin/sh +# clear cache +php artisan cache:clear +echo -e "done" diff --git a/maravelith-10.52/_benchmark/hello_world.sh b/maravelith-10.52/_benchmark/hello_world.sh new file mode 100644 index 0000000..4fe3beb --- /dev/null +++ b/maravelith-10.52/_benchmark/hello_world.sh @@ -0,0 +1,2 @@ +#!/bin/sh +url="$base/$fw/public/index.php/hello/index" diff --git a/maravelith-10.52/_benchmark/maravelith/app/Http/Controllers/HelloWorldController.php b/maravelith-10.52/_benchmark/maravelith/app/Http/Controllers/HelloWorldController.php new file mode 100644 index 0000000..4533c2b --- /dev/null +++ b/maravelith-10.52/_benchmark/maravelith/app/Http/Controllers/HelloWorldController.php @@ -0,0 +1,14 @@ +make(Kernel::class); + +$response = $kernel->handle( + $request = \App\Request::capture() +)->send(); + +$kernel->terminate($request, $response); + +/* *** PHP-Frameworks-Bench *** */ +require $_SERVER['DOCUMENT_ROOT'] . '/PHP-Frameworks-Bench/libs/output_data.php'; diff --git a/maravelith-10.52/_benchmark/maravelith/routes/web.php b/maravelith-10.52/_benchmark/maravelith/routes/web.php new file mode 100644 index 0000000..55ea02b --- /dev/null +++ b/maravelith-10.52/_benchmark/maravelith/routes/web.php @@ -0,0 +1,22 @@ +> .env << EOF +APP_ENV=production +APP_DEBUG=false +EOF + +chmod -R o+w storage +rm ./public/.htaccess diff --git a/maravelith-10.52/_benchmark/update.sh b/maravelith-10.52/_benchmark/update.sh new file mode 100644 index 0000000..f6ed4c8 --- /dev/null +++ b/maravelith-10.52/_benchmark/update.sh @@ -0,0 +1,10 @@ +#!/bin/sh +composer update + +# have the route & controller +yes|cp -rf _benchmark/maravelith/. ./ + +# some enhancements +composer install --no-dev -o +chmod -R o+w storage +rm ./public/.htaccess