Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
075f95a
Create clean.sh
marius-ciclistu Jan 2, 2026
9dbea58
Create clear-cache.sh
marius-ciclistu Jan 2, 2026
7fa2365
Create hello_world.sh
marius-ciclistu Jan 2, 2026
cbc9b22
Create HelloWorldController.php
marius-ciclistu Jan 2, 2026
f36d135
Create index.php
marius-ciclistu Jan 2, 2026
0c4fb51
Create web.php
marius-ciclistu Jan 2, 2026
75b0029
Create setup.sh
marius-ciclistu Jan 2, 2026
a860ff2
Create update.sh
marius-ciclistu Jan 2, 2026
e618b1e
Update README.md
marius-ciclistu Jan 2, 2026
d04e4c2
Update config
marius-ciclistu Jan 2, 2026
3baf335
Delete maravelith-10.52/_benchmark/maravelith/app/Http/Controllers/He…
marius-ciclistu Jan 2, 2026
4230de2
Create HelloWorldController.php
marius-ciclistu Jan 2, 2026
f556f83
Create HelloWorldController.php
marius-ciclistu Jan 2, 2026
393e55c
Delete maravelith-10.52/_benchmark/app/Http/Controllers/HelloWorldCon…
marius-ciclistu Jan 2, 2026
e2dc9c3
Create index.php
marius-ciclistu Jan 2, 2026
4b5c7fb
Create web.php
marius-ciclistu Jan 2, 2026
83e20d5
Delete maravelith-10.52/_benchmark/routes/web.php
marius-ciclistu Jan 2, 2026
f9986ea
Delete maravelith-10.52/_benchmark/public/index.php
marius-ciclistu Jan 2, 2026
a6b24ff
Update index.php
marius-ciclistu Jan 7, 2026
518dea5
Merge branch 'Maravelith-10.52' into dev
marius-ciclistu Jan 7, 2026
93b10aa
Update config
marius-ciclistu Jan 7, 2026
435eb66
Update README.md
marius-ciclistu Jan 7, 2026
a44a99b
Update README.md
marius-ciclistu Jan 7, 2026
b035c80
Merge pull request #3 from marius-ciclistu/dev
marius-ciclistu Jan 7, 2026
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 @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion config
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -36,4 +37,4 @@ symfony-6.4
symfony-7.4
symfony-8.0
yii-2.0-basic
"
"
4 changes: 4 additions & 0 deletions maravelith-10.52/_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 maravelith-10.52/_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 maravelith-10.52/_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!';
}
}
57 changes: 57 additions & 0 deletions maravelith-10.52/_benchmark/maravelith/public/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?php

use Illuminate\Contracts\Http\Kernel;

define('LARAVEL_START', microtime(true));

/*
|--------------------------------------------------------------------------
| Check If The Application Is Under Maintenance
|--------------------------------------------------------------------------
|
| If the application is in maintenance / demo mode via the "down" command
| we will load this file so that any pre-rendered content can be shown
| instead of starting the framework, which could cause an exception.
|
*/

if (file_exists($maintenance = __DIR__ . '/../storage/framework/maintenance.php')) {
require $maintenance;
}

/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader for
| this application. We just need to utilize it! We'll simply require it
| into the script here so we don't need to manually load our classes.
|
*/

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

/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request using
| the application's HTTP kernel. Then, we will send the response back
| to this client's browser, allowing them to enjoy our application.
|
*/

$app = require_once __DIR__ . '/../bootstrap/app.php';
/** @var \App\Application $app */
$kernel = $app->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';
22 changes: 22 additions & 0 deletions maravelith-10.52/_benchmark/maravelith/routes/web.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
return view('welcome');
});


/* *** PHP-Frameworks-Bench *** */
Route::get('/hello/index', [App\Http\Controllers\HelloWorldController::class, 'index']);
19 changes: 19 additions & 0 deletions maravelith-10.52/_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/maravelith:10.52.* ./_benchmark/temp --ansi
mv ./_benchmark/temp/{.,}* ./

# have the route & controller
yes|cp -rf _benchmark/maravelith/. ./

# 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 maravelith-10.52/_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/maravelith/. ./

# some enhancements
composer install --no-dev -o
chmod -R o+w storage
rm ./public/.htaccess