21
An Introduction

Panada: An Introduction by Iskandar Soesman

  • Upload
    k4ndar

  • View
    5.479

  • Download
    0

Embed Size (px)

DESCRIPTION

An Introduction about Panada PHP Framework by Iskandar Soesman

Citation preview

Page 1: Panada: An Introduction by Iskandar Soesman

An Introduction

Page 2: Panada: An Introduction by Iskandar Soesman

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"];}

Page 3: Panada: An Introduction by Iskandar Soesman

Web Framework

Page 4: Panada: An Introduction by Iskandar Soesman

A Framework Goals

● Fast in runtime.● Fast in development.● Easy to use.

Page 5: Panada: An Introduction by Iskandar Soesman

Elevating skills?

Page 6: Panada: An Introduction by Iskandar Soesman

Panada

FOR THOSE WHO LOVE SIMPLICITY AND PERFORMANCE AT THE SAME TIME

Page 7: Panada: An Introduction by Iskandar Soesman

A Skill Elevator Framework

Page 8: Panada: An Introduction by Iskandar Soesman

Natural

No Restrictive coding rules, just write naturally.

Page 9: Panada: An Introduction by Iskandar Soesman

United Coder

Code as you like, no generator. The limitation is only your imagination.

Page 10: Panada: An Introduction by Iskandar Soesman

Open Source

Page 11: Panada: An Introduction by Iskandar Soesman

Composer Ready

composer create-project panada/panada --prefer-dist --stability="dev" --no-install

Page 12: Panada: An Introduction by Iskandar Soesman

Twlike

twlike.gopagoda.comhttps://github.com/panada/samples/tree/master/twlike

Page 13: Panada: An Introduction by Iskandar Soesman

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.

Page 14: Panada: An Introduction by Iskandar Soesman

Benchmark

ab -n 2000 -c 10 http://localhost

Page 15: Panada: An Introduction by Iskandar Soesman

Stats

FW RPS

Panada 1012.87Yii2 73.76Laravel 59.68CodeIgniter 346.68

Page 16: Panada: An Introduction by Iskandar Soesman

PHP Phalcon

Extreamly Fast!

Requests per second: 1033.79 [#/sec] (mean)

Page 17: Panada: An Introduction by Iskandar Soesman

Panada C Extension

https://github.com/panada/c-extension

Written in Zephirhttp://zephir-lang.com/

Page 18: Panada: An Introduction by Iskandar Soesman

Panada C Extension: Requirements

g++ >= 4.4/clang++ >= 3.x/vc++ 9gnu make 3.81 or laterphp development headers and tools

Page 19: Panada: An Introduction by Iskandar Soesman

Panada C Extension: demo

git clone https://github.com/panada/c-extension

cd extphpize./configuremake && make install

Page 20: Panada: An Introduction by Iskandar Soesman

Panada C Extension: performance

Panada:Requests per second: 1012.87 [#/sec] (mean)

Panada C Extension:Requests per second: 1436.34 [#/sec] (mean)

Page 21: Panada: An Introduction by Iskandar Soesman

The Resume