Phalcon Framework: San Antonio Web Developers Group
-
Upload
jdfreeman11 -
Category
Technology
-
view
794 -
download
1
description
Transcript of Phalcon Framework: San Antonio Web Developers Group
Josh Freeman
San Antonio Web Development Group20 March 2014
What is a Framework?
● Web Development Library
● Application Skeleton
● Proven Functionality
● Hopes and Dreams of a Developer
The Problem with Frameworks
● Speed
● Complexity
● Resources
PHP as an Interpreted Language
➔ Receive Request (from Apache/Nginx)
➔ Read file from HHD/SSD
➔ Parse file
➔ Compile into OpCodes
➔ Execute through Zend Engine
➔ Render Output
Davey Shafik: PHP Performance I: Everything You Need to Know about OpCode Caches
Back to the Problem with Frameworks
● Framework design requires many files
● PHP lifecycle runs for every file called during runtime
(without caching)
● Framework load happens for EVERY request
Phalcon to the Rescue!
What is Phalcon?
MVC Framework
SOLID Design
C Extension
Awesome
Benchmarks
Operating System: Mac OS X Lion 10.7.4
Web Server: Apache httpd 2.2.22
PHP: 5.3.15
CPU: 2.04 Ghz Intel Core i5
Main Memory: 4GB 1333 MHz DDR3
Hard Drive: 500GB SATA Disk
BenchmarksFile Includes
BenchmarksMemory Consumption
BenchmarksResponse Time
BenchmarksResponse Time
Do I Need to Know C?
NO
Do I Need to Know PHP?
YES
OK, What Do I Start?
~$ sudo apt-get install php5-dev libpcre3-dev gcc make
~$ git clone git://github.com/phalcon/cphalcon.git
~$ cd cphalcon/build
~$ sudo ./install
OK, What's Next?
#Ubuntu: Add this line in your php.ini
extension=phalcon.so
The Good Ol' Restart
Restart your Web server
Now What?
READphalconphp.com
Demonstration
Feedback || Questions
Josh Freeman @jdfreeman11
github.com/jdfreeman
Roll the Credits
● Phalcon Development Team– phalconphp.com
● Davey Shafik– PHP Performance: Under The Hood
– PHP Performance I: Everything You Need to Know about OpCode Caches
● MemeGenerator/KnowYourMeme