Upload
k4ndar
View
5.479
Download
0
Embed Size (px)
DESCRIPTION
An Introduction about Panada PHP Framework by Iskandar Soesman
Citation preview
An Introduction
DB Connect
File: db.php<?phpmysql_connect('localhost', 'root', '') ordie("Could not connect: " . mysql_error());
mysql_select_db('mydb');
File: index.php<?phpinclude ‘db.php’;$result = mysql_query("SELECT id, name FROM mytable");while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { echo 'ID: '.$row['id'].' Name: '.$row["name"];}
Web Framework
A Framework Goals
● Fast in runtime.● Fast in development.● Easy to use.
Elevating skills?
Panada
FOR THOSE WHO LOVE SIMPLICITY AND PERFORMANCE AT THE SAME TIME
A Skill Elevator Framework
Natural
No Restrictive coding rules, just write naturally.
United Coder
Code as you like, no generator. The limitation is only your imagination.
Open Source
Composer Ready
composer create-project panada/panada --prefer-dist --stability="dev" --no-install
Twlike
twlike.gopagoda.comhttps://github.com/panada/samples/tree/master/twlike
Light and fast
Build from the ground to meet performance.
Simple logical flow, less mount of size produce small foot print, its make your application moving faster.
Benchmark
ab -n 2000 -c 10 http://localhost
Stats
FW RPS
Panada 1012.87Yii2 73.76Laravel 59.68CodeIgniter 346.68
PHP Phalcon
Extreamly Fast!
Requests per second: 1033.79 [#/sec] (mean)
Panada C Extension
https://github.com/panada/c-extension
Written in Zephirhttp://zephir-lang.com/
Panada C Extension: Requirements
g++ >= 4.4/clang++ >= 3.x/vc++ 9gnu make 3.81 or laterphp development headers and tools
Panada C Extension: demo
git clone https://github.com/panada/c-extension
cd extphpize./configuremake && make install
Panada C Extension: performance
Panada:Requests per second: 1012.87 [#/sec] (mean)
Panada C Extension:Requests per second: 1436.34 [#/sec] (mean)
The Resume