dev-master
9999999-dev http://github.com/Stichoza/FreshPHPFresh PHP MVC framework
GPL
The Requires
- php >=5.3.0
framework php mvc
Fresh PHP MVC framework
This is some sort of lightweight (or maybe overly complicated) PHP framework with underlying MVC architecture implementing some other OOP design patterns like Singleton and etc., (*1)
Currently I'm writing this for educational purposes only but I'm using this in some of my projects., (*2)
Report bugs and issues (good ideas also) in Issue Tracker, (*3)
All pull requests are welcome! :metal:, (*4)
Inspired by Java Code Conventions., (*5)
src/Namespace/.../Namespace/ClassName.php
camelCase
for variables and functions/methodsCamelCase
for class names// Correct if ($foo > 15) { $foo++; $bar--; print("ok"); $newArray = array( "key_1" => 452, "key_2" => array( "key_2_1" => "yolo" ), "key_3" => "hello", "key_4" => "world" ); echo "hello " . "world " . $foo . ":>"; }
if($foo>15) // Spaces around operators, spaces after keywords { // Don't use new lines for braces $foo++; $bar--; // Each line should contain at most one statement print('ok'); // Use double quotes $new_array = array( // Use camelCase in variable naming "key-1" => 452, // Never use dashes in array keys. Use underscores. "key_2" => array("key_2_1" => "yolo"), // Use proper indentation. "key_3" => "hello" , "key_4" => "world" // Comma-last ); echo "hello hello " . // Dot-first "world " . $foo.":>"; // Use spaces around dots. }
Fresh PHP MVC framework
GPL
framework php mvc