, (*1)
Extension Library for PHp Object-orientation
Your non-invasive, lightweight, fast, dev-tool framework, (*2)
The framework's core structure is dedicated to solve the leaked scope and procedural ancestry of PHP.
That said, it's nothing but a language extension., (*3)
Hello Core
Here is the very verbose HelloWorld.php example using the elpho/lang package:, (*4)
Hello MVC
Here is the "Hello World" using the elpho/mvc package:, (*5)
map("", array("Home", "index"));
}
}
?>
myMessageAttribute = "Hello World!";
$view->render();
}
}
?>
<!-- template.html.php -->
<!DOCTYPE html>
<html>
<body>
<p><?=$viewbag->myMessageAttribute?></p>
</body>
</html>
#.htaccess
RewriteEngine On
RewriteRule (.*) Index.php [QSD,L]
System
The system folder contains all the framework core files.
Userland functions are declared in the file system/topLevel.php, they are:, (*6)
-
registerMain(className)
This method is used when you need to tell elpho that your exposed file has a different name from the entry class (i.e. when it's namespaced).
Just pass the main class fullname and it will call it when it finishes loading your app., (*7)
-
call(function [, argument...])
An alias to call_user_func., (*8)
-
apply(function , argumentArray)
An alias to call_user_func_array., (*9)
-
matchTypes(type [, type]...)
Returns true if the list of arguments in the current function matches the types passed to it., (*10)
WORK IN PROGRESS
This framework is a work in progress., (*11)
Mail me at spark.crz(at)gmail.com if you wanna chat!
Or join ##php and ##php-br channels at [freenode.net IRC servers][1], (*12)