Просмотр поста

.
Jahak

Призовые места по частоте использвания статических методов и свойств заняли следующие фреймворки:
1 место - Symfony PHP framework
2 место - Zend Framework 2
3 место - CakePHP

Остальные результаты можете посмотреть исполнив этот код:

Код: (+/-)

<?php
/*
 * Copyright (C) 2015
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
$frameworks = [
    'CodeIgniter' => 18,
    'cakephp' => 120,
    'Fuel framework' => 83,
    'kohanaframework' => 37,
    'laravel' => 71,
    'symfony' => 358,
    'yii' => 69,
    'zend' => 326
];

arsort( $frameworks );

$index = 0;
foreach ( $frameworks as $key => $value ) {
    echo ++$index, '. ', $key, ': ', $value, ' files<br>', PHP_EOL;
}