Skip to content
Open
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions config
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions maravel-10.51/_benchmark/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
rm -rf !("_benchmark")
find -path './.*' -delete
rm -rf _benchmark/temp
4 changes: 4 additions & 0 deletions maravel-10.51/_benchmark/clear-cache.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
# clear cache
php artisan cache:clear
echo -e "done"
2 changes: 2 additions & 0 deletions maravel-10.51/_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"
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
/*
PHP-Frameworks-Bench
this is a simple hello world controller to make benchmark
*/
namespace App\Http\Controllers;

class HelloWorldController extends Controller
{
public function index(): void
{
echo 'Hello World!';
}
}
32 changes: 32 additions & 0 deletions maravel-10.51/_benchmark/maravel/public/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

/*
|--------------------------------------------------------------------------
| Create The Application
|--------------------------------------------------------------------------
|
| First we need to get an application instance. This creates an instance
| of the application / container and bootstraps the application so it
| is ready to receive HTTP / Console requests from the environment.
|
*/

$app = require __DIR__.'/../bootstrap/app.php';

/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/

$app->run();


/* *** PHP-Frameworks-Bench *** */
require $_SERVER['DOCUMENT_ROOT'].'/PHP-Frameworks-Bench/libs/output_data.php';
20 changes: 20 additions & 0 deletions maravel-10.51/_benchmark/maravel/routes/web.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

/** @var \Laravel\Lumen\Routing\Router $router */

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It is a breeze. Simply tell Lumen the URIs it should respond to
| and give it the Closure to call when that URI is requested.
|
*/
$router->get('/', [
'as' => 'version',
'uses' => 'VersionController@version',
]);

$router->get('/hello/index', 'HelloWorldController@index');
19 changes: 19 additions & 0 deletions maravel-10.51/_benchmark/setup.sh
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions maravel-10.51/_benchmark/update.sh
Original file line number Diff line number Diff line change
@@ -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