Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Phalcon Framework: San Antonio Web Developers G...
Search
Josh Freeman
March 20, 2014
0
38
Phalcon Framework: San Antonio Web Developers Group
Presentation by Josh Freeman at the San Antonio Web Developers Group Meetup on March 20, 2014.
Josh Freeman
March 20, 2014
Tweet
Share
More Decks by Josh Freeman
See All by Josh Freeman
Communicating Intent Through Git 2017
joshfreemanio
0
56
Communicating Intent Through Git
joshfreemanio
0
280
Featured
See All Featured
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.4k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
66
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.1k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.9k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
66
37k
Automating Front-end Workflow
addyosmani
1371
200k
GraphQLとの向き合い方2022年版
quramy
50
14k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
170
4 Signs Your Business is Dying
shpigford
187
22k
Optimising Largest Contentful Paint
csswizardry
37
3.6k
Claude Code のすすめ
schroneko
67
210k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Transcript
Josh Freeman San Antonio Web Development Group 20 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
Benchmarks File Includes
Benchmarks Memory Consumption
Benchmarks Response Time
Benchmarks Response 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? READ phalconphp.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