Skip to content

Commit

Permalink
A single framework list to maintain
Browse files Browse the repository at this point in the history
  • Loading branch information
motin committed Dec 10, 2015
1 parent 5e258e3 commit 3ae0eea
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 157 deletions.
41 changes: 3 additions & 38 deletions libs/parse_results.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

require( dirname(__FILE__) . '/../list.php');

function parse_results($file)
{
$lines = file($file);
Expand Down Expand Up @@ -31,44 +33,7 @@ function parse_results($file)
];
}

$frameworks = [
"no-framework",
//"phalcon-1.3",
"phalcon-2.0",
"ice-1.0",
"tipsy-0.10",
"fatfree-3.5",
"slim-2.6",
"ci-3.0",
"nofuss-1.2",
"slim-3.0",
"bear-1.0",
"lumen-5.1",
"ze-1.0",
"radar-1.0-dev",
"yii-2.0",
//"lumen-5.0",
//"silex-1.2",
"silex-1.3",
"cygnite-1.3",
//"fuel-1.8-dev",
"fuel-2.0-dev",
"phpixie-3.2",
//"cake-3.0",
"aura-2.0",
"cake-3.1",
"bear-0.10",
//"symfony-2.5",
//"symfony-2.6",
"symfony-2.7",
//"laravel-4.2",
//"laravel-5.0",
"laravel-5.1",
//"zf-2.4",
"zf-2.5",
//"typo3f-2.3",
"typo3f-3.0",
];
$frameworks = frameworks();

$ordered_results = [];
foreach ($frameworks as $fw) {
Expand Down
72 changes: 72 additions & 0 deletions list.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<?php

function frameworks()
{

$frameworks = [
"no-framework",
//"phalcon-1.3",
"phalcon-2.0",
"ice-1.0",
"tipsy-0.10",
"fatfree-3.5",
"slim-2.6",
"ci-3.0",
"nofuss-1.2",
"slim-3.0",
"bear-1.0",
"lumen-5.1",
"ze-1.0",
"radar-1.0-dev",
"yii-2.0",
//"lumen-5.0",
//"silex-1.2",
"silex-1.3",
"cygnite-1.3",
"fuel-1.8-dev",
//"fuel-2.0-dev",
"phpixie-3.2",
//"cake-3.0",
"aura-2.0",
"cake-3.1",
//"bear-0.10",
//"symfony-2.5",
//"symfony-2.6",
"symfony-2.7",
//"laravel-4.2",
//"laravel-5.0",
//"laravel-5.1", // Disabled since it segfaults too much
//"zf-2.4",
"zf-2.5",
//"typo3f-2.3",
//"typo3f-3.0", // Disabled since it attempts to connect to mysql
];

if (strpos(getenv('stack'), 'hhvm') !== false) {
return array_diff(
$frameworks,
array(
'phalcon-1.3', // Not supported by HHVM
'phalcon-2.0', // Not supported by HHVM
'ice-1.0', // Not supported by HHVM
'bear-1.0', // apc_fetch()-error on PHP7
'laravel-5.1', // fails-with-no-such-file-or-directory
)
);
}

if (strpos(getenv('stack'), 'php_7') !== false) {
return array_diff(
$frameworks,
array(
'phalcon-1.3', // Not compiled for PHP7 - is it even supported?
'phalcon-2.0', // Not compiled for PHP7 - is it even supported?
'ice-1.0', // Not compiled for PHP7 - is it even supported?
'bear-1.0', // apc_fetch()-error on PHP7
)
);
}

return $frameworks;

}
120 changes: 1 addition & 119 deletions list.sh
Original file line number Diff line number Diff line change
@@ -1,123 +1,5 @@
#!/bin/sh

if [ "$stack" = "local" ] || [ "$stack" = "docker_nginx_php_5_6_4" ]; then
list="
no-framework
#phalcon-1.3
phalcon-2.0
ice-1.0
tipsy-0.10
fatfree-3.5
slim-2.6
ci-3.0
nofuss-1.2
slim-3.0
bear-1.0
lumen-5.1
ze-1.0
radar-1.0-dev
yii-2.0
#lumen-5.0
#silex-1.2
silex-1.3
cygnite-1.3
fuel-1.8-dev
#fuel-2.0-dev
phpixie-3.2
#cake-3.0
aura-2.0
cake-3.1
#bear-0.10
#symfony-2.5
#symfony-2.6
symfony-2.7
#laravel-4.2
#laravel-5.0
#segfaults-too-much#laravel-5.1
#zf-2.4
zf-2.5
#typo3f-2.3
#disabled-since-it-attempts-to-connect-to-mysql#typo3f-3.0
"$(php -r 'require("list.php"); foreach (frameworks() as $fw) {echo $fw."\n";};')"
"
fi
if [ "$stack" = "docker_nginx_hhvm_3_10_1" ]; then
list="
no-framework
#not-supported-by-hhvm##phalcon-1.3
#not-supported-by-hhvm#phalcon-2.0
#not-supported-by-hhvm#ice-1.0
tipsy-0.10
fatfree-3.5
slim-2.6
ci-3.0
nofuss-1.2
slim-3.0
#apc_fetch()-error#bear-1.0
lumen-5.1
ze-1.0
radar-1.0-dev
yii-2.0
#lumen-5.0
#silex-1.2
silex-1.3
cygnite-1.3
fuel-1.8-dev
#fuel-2.0-dev
phpixie-3.2
#cake-3.0
aura-2.0
cake-3.1
#bear-0.10
#symfony-2.5
#symfony-2.6
symfony-2.7
#laravel-4.2
#laravel-5.0
#fails-with-no-such-file-or-directory#laravel-5.1
#zf-2.4
zf-2.5
#typo3f-2.3
#disabled-since-it-attempts-to-connect-to-mysql#typo3f-3.0
"

fi
if [ "$stack" = "docker_nginx_php_7_0_0" ]; then
list="
no-framework
#not-compiled-for-php7-is-it-even-supported##phalcon-1.3
#not-compiled-for-php7-is-it-even-supported#phalcon-2.0
#not-compiled-for-php7-is-it-even-supported#ice-1.0
tipsy-0.10
fatfree-3.5
slim-2.6
ci-3.0
nofuss-1.2
slim-3.0
#apc_fetch()-error#bear-1.0
lumen-5.1
ze-1.0
radar-1.0-dev
yii-2.0
#lumen-5.0
#silex-1.2
silex-1.3
cygnite-1.3
fuel-1.8-dev
#fuel-2.0-dev
phpixie-3.2
#cake-3.0
aura-2.0
cake-3.1
#bear-0.10
#symfony-2.5
#symfony-2.6
symfony-2.7
#laravel-4.2
#laravel-5.0
#segfaults-too-much#laravel-5.1
#zf-2.4
zf-2.5
#typo3f-2.3
#disabled-since-it-attempts-to-connect-to-mysql#typo3f-3.0
"
fi

0 comments on commit 3ae0eea

Please sign in to comment.