DooPHP - fastest MVC based PHP framework

Learn More

The Official Blog of DooPHP

News, Updates, Tips & Tricks for DooPHP

Subscribe to Blog

Subscribe to the official blog of DooPHP framework.

Benchmark Update2009-07-23 01:47:09

Benchmark Update

The graph at the benchmark section has been updated. After a discussion in the forums, Qeephp is re-benchmark with its QCache_PHPDataFile switched on in bootstrap.

Basically it loads the converted Yaml settings of Qeephp to PHP config variables $config just like what DooPHP is doing. And of course this improves the performance.

Doophp is also re-benchmark in production mode with the deploy script. Only common & routes config are loaded. The index.php contains:

include './protected/config/common.conf.php';
include './protected/config/routes.conf.php';
include $config['BASE_PATH'].'deployment/deploy.php';

Doo::conf()->set($config);
Doo::app()->route = $route;
Doo::app()->run();

While the common.conf.php is changed to use absolute path. The previous benchmark is done with the app folder in the archive doo-1.0.zip. It only contains:

$config['SITE_PATH'] = '/var/www/app/';
$config['BASE_PATH'] = '/var/www/dooframework/';
$config['APP_MODE'] = 'prod';
$config['SUBFOLDER'] = '/app/';

The benchmark in production mode:

the new benchmark

Previous benchmark:

the new benchmark

Of course, you can gain more performance by merging all configs into index.php but it SACRIFICE maintainability. So please be wise when you try to optimize your code ;)


Published under: News & Updates Share/Save/Bookmark

DooPHP Documentation2009-07-22 17:26:49

DooPHP Documentation

I have been receiving comments that DooPHP is not well documented as it advertised.

I want to make a correction here, the Documentation you guys are asking for is instead a Tutorial which is being written at the momnet. I know people like simple walkthrough like CodeIgniter user guide. HOWEVER, DooPHP is well documented, almost EVERY line in the source in Javadoc style! And please note that I have uploaded the Class reference documentation which is a common thing in framework or programming language such as Java and ActionScript. Like this Adobe document: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/BitmapData.html

With the complete Javadoc style comments in the framework source, you are able to use code hinting in your favorite IDE. With the API document, you can see every single function, their visibility, parameters, return types, descriptions, examples, etc... It is well documented and please do not criticize me on this. CI doesn't even have one.

What DooPHP needs now is a simple tutorial/user guide. For those who can't wait, simply view the demo which serves as simple tutorial.

Thank you, and please don't flame me on this :)


Published under: News & Updates Share/Save/Bookmark

DooPHP MVC Flow2009-07-22 15:45:25

DooPHP MVC Flow

A new page is added to the Guide section. This is a diagram that describe how DooPHP handles a user request.

doophp flow

For more infomation on MVC, you can read it up at Wikipedia. http://en.wikipedia.org/wiki/Model-view-controller


Published under: News & Updates Share/Save/Bookmark

Log and Profile Viewer in Development2009-07-21 18:20:38

Log and Profile Viewer in Development

DooPHP provides you logging and profiling features, through DooLogger class which can be accessed by calling Doo::logger().

You can write and rotate the logs to a file in both plain text or XML format. The default is a XML formatted log which is to be used with a future Log/Profile Viewer tool.

It is under development at this current time. Therefore, it is recommended to write log files in xml.


Published under: Development Share/Save/Bookmark

Using DooPHP with Netbeans2009-07-21 17:04:46

Using DooPHP with Netbeans

Netbeans for PHP is a great free IDE for only 25mb. Go ahead and Download it

DooPHP works well with Netbeans IDE too. Just add the doophp framework directory to your Netbeans project path and you are good to go with auto-completion and code-hinting. You don't even need to open up the framework documentation!

Add path to your project:

DooPHP works great with Netbeans


Code hinting support! Isn't it cool?

DooPHP works great with Netbeans


Published under: Tips & Tricks Share/Save/Bookmark

About

Categories

Archives


Syndication