Skip to content

Commit 69303ae

Browse files
committed
Ubiquity & list.sh
- Added ubiquity-2.4.x.dev - Update list.sh
1 parent c4f17c6 commit 69303ae

File tree

9 files changed

+82
-0
lines changed

9 files changed

+82
-0
lines changed

list.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ slim-3.12
1919
slim-4.10
2020
symfony-5.4
2121
symfony-6.0
22+
ubiquity-2.4.x.dev
2223
yii-2.0-basic
2324
"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
rm -rf !("_benchmark")
3+
rm -rf _benchmark/temp
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
# clear cache
3+
echo -e "!"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
url="$base/$fw/public/index.php?c=HelloWorldController/index"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
# create project
3+
rm -rf _benchmark/temp
4+
composer create-project phpmv/ubiquity-project:2.4.x-dev ./_benchmark/temp
5+
mv ./_benchmark/temp/{.,}* ./
6+
7+
# have the route & controller
8+
yes|cp -rf _benchmark/ubiquity/. ./
9+
10+
# some enhancements
11+
composer install --no-dev --optimize-autoloader
12+
rm ./public/.htaccess
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
return array(
3+
"siteUrl"=>"http://127.0.0.1/temp/public/",
4+
"database"=>[
5+
"type"=>"mysql",
6+
"dbName"=>"",
7+
"serverName"=>"127.0.0.1",
8+
"port"=>"3306",
9+
"user"=>"root",
10+
"password"=>"",
11+
"options"=>[],
12+
"cache"=>false
13+
],
14+
"sessionName"=>"temp",
15+
"namespaces"=>[],
16+
"templateEngine"=>'Ubiquity\\views\\engine\\Twig',
17+
"templateEngineOptions"=>array("cache"=>false),
18+
"test"=>false,
19+
"debug"=>false,
20+
"logger"=>function(){return new \Ubiquity\log\libraries\UMonolog("temp",\Monolog\Logger::INFO);},
21+
"di"=>["@exec"=>["jquery"=>function($controller){
22+
/* *** php-frameworks-bench *** */
23+
// return \Ajax\php\ubiquity\JsUtils::diSemantic($controller);
24+
}]],
25+
"cache"=>["directory"=>"cache/","system"=>"Ubiquity\\cache\\system\\ArrayCache","params"=>[]],
26+
"mvcNS"=>["models"=>"models","controllers"=>"controllers","rest"=>""]
27+
);
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
/*
3+
php-frameworks-bench
4+
this is a simple hello world controller to make benchmark
5+
*/
6+
namespace controllers;
7+
8+
class HelloWorldController extends \Ubiquity\controllers\Controller {
9+
public function index() {
10+
echo "Hello World!";
11+
}
12+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
ini_set('display_errors', '1');
3+
ini_set('display_startup_errors', '1');
4+
error_reporting(E_ALL);
5+
define('DS', DIRECTORY_SEPARATOR);
6+
define('ROOT', __DIR__ . DS . '..' . DS . 'app' . DS);
7+
$config = include ROOT . 'config/config.php';
8+
require ROOT . './../vendor/autoload.php';
9+
require ROOT . 'config/services.php';
10+
\Ubiquity\controllers\Startup::run($config);
11+
12+
/* *** php-frameworks-bench *** */
13+
require $_SERVER['DOCUMENT_ROOT'].'/php-frameworks-bench/libs/output_data.php';
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
composer update
3+
4+
# have the route & controller
5+
yes|cp -rf _benchmark/ubiquity/. ./
6+
7+
# some enhancements
8+
composer install --no-dev --optimize-autoloader
9+
rm ./public/.htaccess

0 commit comments

Comments
 (0)