SlideShare una empresa de Scribd logo
1 de 28
Descargar para leer sin conexión
11 July 2012
Rapid API Development with




Sam Yong
Who am I?
• Recent Graduate, Diploma in IT, Class of 2012




                                                          11 July 2012
  • School of ICT, Ngee Ann Polytechnic

• WorldSkills London 2011, Web Design

• Research and Design Engineer
  • RHyMeS Centre, School of ICT, Ngee Ann Polytechnic

• Waiting in line to Tekong



                              http://mauris.sg/packfire
11 July 2012
What is Packfire Framework?




                 http://mauris.sg/packfire
Packfire is…
• an Object-Oriented PHP Framework




                                                      11 July 2012
                          http://mauris.sg/packfire
Packfire is…
• RESTful / API friendly.




                                                        11 July 2012
                            http://mauris.sg/packfire
Packfire is…
• Extensive and Extensible.




                                                          11 July 2012
                              http://mauris.sg/packfire
Packfire is…
• an Encapsulation to PHP.




                                                         11 July 2012
                             http://mauris.sg/packfire
11 July 2012
Why Packfire Framework?




                http://mauris.sg/packfire
Another framework?!




                                                11 July 2012
       Luracast Restler




                    http://mauris.sg/packfire
Put to Practice




                                                                  11 July 2012
    http://www.flickr.com/photos/55685248@N06/5856379635/


                                      http://mauris.sg/packfire
Fulfilling Hunger
                        Code
                      Generation




                                                              11 July 2012
       Unit Testing                       Mustache




 Git                                                    IoC




         YAML                                 LINQ
                      GoF Design
                       Patterns


                            http://mauris.sg/packfire
11 July 2012
Creating API Services
Alton Live GPS Tracker




                         http://mauris.sg/packfire
Alton Live GPS Tracker
• Receives GPS coordinates from phone




                                                          11 July 2012
• Displays it in real-time on the map




                              http://mauris.sg/packfire
Architecture




                                           11 July 2012
               http://mauris.sg/packfire
Receiving GPS Coordinates




                                         11 July 2012
             http://mauris.sg/packfire
RESTful Requests
 Routing Entry
 session.create:




                                                                    11 July 2012
   rewrite: "/session/create"
   actual:   "Session:create"
                                                       Controller




                           http://mauris.sg/packfire
RESTful Requests
                Postback to self




                                         11 July 2012
             http://mauris.sg/packfire
Database LINQ




                                                                         11 July 2012
SELECT FROM `CoordinateId`, `Latitude`, `Longitude` FROM `coordinates`
WHERE SessionId = :session AND Coordinateid > :lastPoint
ORDER BY `Updated`


                                http://mauris.sg/packfire
Long Polling




                                                     11 July 2012
     // Database LINQ.




                         http://mauris.sg/packfire
11 July 2012
Demo




       http://mauris.sg/packfire
Alton Live GPS Tracker




                                                               11 July 2012
Alton Live GPS Tracker on Github


http://github.com/thephpdeveloper/alton-gps




                                   http://mauris.sg/packfire
11 July 2012
Q&A




      http://mauris.sg/packfire
Fork Packfire!




                                                11 July 2012
           Packfire Framework on Github


           http://github.com/packfire




                    http://mauris.sg/packfire
Comm Channels
• http://mauris.sg/packfire




                                                          11 July 2012
• http://packfire.tumblr.com/

• @packfire

• “Packfire Framework” on Facebook




                              http://mauris.sg/packfire
11 July 2012
Thank you ?>




               http://mauris.sg/packfire
11 July 2012
ref
https://speakerdeck.com/u/andycroll/p/responsive-web-design
http://www.slideshare.net/uzyn/qropit-sharing-on-singapore-




                                                              11 July 2012
  php-user-group
http://www.scribd.com/doc/94389313/TDD-with-PHP-the-
  secret-of-coding-with-confidence
https://speakerdeck.com/u/uzyn/p/opauth-an-introduction




                           http://mauris.sg/packfire
11 July 2012
http://mauris.sg/packfire

Más contenido relacionado

Destacado

K to 12 Mathematics Curriculum Guide for Grades 1 to 10
K to 12 Mathematics Curriculum Guide for Grades 1 to 10K to 12 Mathematics Curriculum Guide for Grades 1 to 10
K to 12 Mathematics Curriculum Guide for Grades 1 to 10Dr. Joy Kenneth Sala Biasong
 
Secure Your REST API (The Right Way)
Secure Your REST API (The Right Way)Secure Your REST API (The Right Way)
Secure Your REST API (The Right Way)Stormpath
 
How Not To Get Noticed
How Not To Get NoticedHow Not To Get Noticed
How Not To Get NoticedLiz Danzico
 
Stress At Work (Tips to Reduce and Manage Job and Workplace Stress)
Stress At Work (Tips to Reduce and Manage Job and Workplace Stress)Stress At Work (Tips to Reduce and Manage Job and Workplace Stress)
Stress At Work (Tips to Reduce and Manage Job and Workplace Stress)Jodie Harper
 
Top Office Etiquette Mistakes
Top Office Etiquette MistakesTop Office Etiquette Mistakes
Top Office Etiquette Mistakesej4video
 
Work Hacks : Body Language
Work Hacks : Body LanguageWork Hacks : Body Language
Work Hacks : Body LanguageInterQuest Group
 
12 Days of Productivity
12 Days of Productivity12 Days of Productivity
12 Days of ProductivityRedbooth
 
Thai tech startup ecosystem report 2017
Thai tech startup ecosystem report 2017Thai tech startup ecosystem report 2017
Thai tech startup ecosystem report 2017Techsauce Media
 

Destacado (9)

K to 12 Mathematics Curriculum Guide for Grades 1 to 10
K to 12 Mathematics Curriculum Guide for Grades 1 to 10K to 12 Mathematics Curriculum Guide for Grades 1 to 10
K to 12 Mathematics Curriculum Guide for Grades 1 to 10
 
Secure Your REST API (The Right Way)
Secure Your REST API (The Right Way)Secure Your REST API (The Right Way)
Secure Your REST API (The Right Way)
 
How Not To Get Noticed
How Not To Get NoticedHow Not To Get Noticed
How Not To Get Noticed
 
Stress At Work (Tips to Reduce and Manage Job and Workplace Stress)
Stress At Work (Tips to Reduce and Manage Job and Workplace Stress)Stress At Work (Tips to Reduce and Manage Job and Workplace Stress)
Stress At Work (Tips to Reduce and Manage Job and Workplace Stress)
 
RESTful API Design, Second Edition
RESTful API Design, Second EditionRESTful API Design, Second Edition
RESTful API Design, Second Edition
 
Top Office Etiquette Mistakes
Top Office Etiquette MistakesTop Office Etiquette Mistakes
Top Office Etiquette Mistakes
 
Work Hacks : Body Language
Work Hacks : Body LanguageWork Hacks : Body Language
Work Hacks : Body Language
 
12 Days of Productivity
12 Days of Productivity12 Days of Productivity
12 Days of Productivity
 
Thai tech startup ecosystem report 2017
Thai tech startup ecosystem report 2017Thai tech startup ecosystem report 2017
Thai tech startup ecosystem report 2017
 

Similar a Rapid API Development with Packfire Framework for PHP

Asia pacopenstack joe-draft 2012-08-08
Asia pacopenstack joe-draft 2012-08-08Asia pacopenstack joe-draft 2012-08-08
Asia pacopenstack joe-draft 2012-08-08OpenCity Community
 
2012 HK F/OSS Community News & Events
2012 HK F/OSS Community News & Events2012 HK F/OSS Community News & Events
2012 HK F/OSS Community News & EventsSammy Fung
 
IPv4 Policy Update
IPv4 Policy UpdateIPv4 Policy Update
IPv4 Policy UpdateRIPE NCC
 
iTunes U and the OERu: Two Different Ways to Reach the World
iTunes U and the OERu: Two Different Ways to Reach the WorldiTunes U and the OERu: Two Different Ways to Reach the World
iTunes U and the OERu: Two Different Ways to Reach the Worldwitthaus
 
Variations on Video: The Avalon Media System
Variations on Video: The Avalon Media SystemVariations on Video: The Avalon Media System
Variations on Video: The Avalon Media SystemJon W. Dunn
 
Variations on Video: The Avalon Media System - DLF Forum 2012
Variations on Video: The Avalon Media System - DLF Forum 2012Variations on Video: The Avalon Media System - DLF Forum 2012
Variations on Video: The Avalon Media System - DLF Forum 2012Avalon Media System
 
201204 cloning a repository from github
201204 cloning a repository from github201204 cloning a repository from github
201204 cloning a repository from githubpluskjw
 
Part 4: Robbie Parish, Director of Digital and Media, VisitScotland
Part 4: Robbie Parish, Director of Digital and Media, VisitScotlandPart 4: Robbie Parish, Director of Digital and Media, VisitScotland
Part 4: Robbie Parish, Director of Digital and Media, VisitScotlandInner Ear
 
Developing RESTful Web APIs with Python, Flask and MongoDB
Developing RESTful Web APIs with Python, Flask and MongoDBDeveloping RESTful Web APIs with Python, Flask and MongoDB
Developing RESTful Web APIs with Python, Flask and MongoDBNicola Iarocci
 

Similar a Rapid API Development with Packfire Framework for PHP (9)

Asia pacopenstack joe-draft 2012-08-08
Asia pacopenstack joe-draft 2012-08-08Asia pacopenstack joe-draft 2012-08-08
Asia pacopenstack joe-draft 2012-08-08
 
2012 HK F/OSS Community News & Events
2012 HK F/OSS Community News & Events2012 HK F/OSS Community News & Events
2012 HK F/OSS Community News & Events
 
IPv4 Policy Update
IPv4 Policy UpdateIPv4 Policy Update
IPv4 Policy Update
 
iTunes U and the OERu: Two Different Ways to Reach the World
iTunes U and the OERu: Two Different Ways to Reach the WorldiTunes U and the OERu: Two Different Ways to Reach the World
iTunes U and the OERu: Two Different Ways to Reach the World
 
Variations on Video: The Avalon Media System
Variations on Video: The Avalon Media SystemVariations on Video: The Avalon Media System
Variations on Video: The Avalon Media System
 
Variations on Video: The Avalon Media System - DLF Forum 2012
Variations on Video: The Avalon Media System - DLF Forum 2012Variations on Video: The Avalon Media System - DLF Forum 2012
Variations on Video: The Avalon Media System - DLF Forum 2012
 
201204 cloning a repository from github
201204 cloning a repository from github201204 cloning a repository from github
201204 cloning a repository from github
 
Part 4: Robbie Parish, Director of Digital and Media, VisitScotland
Part 4: Robbie Parish, Director of Digital and Media, VisitScotlandPart 4: Robbie Parish, Director of Digital and Media, VisitScotland
Part 4: Robbie Parish, Director of Digital and Media, VisitScotland
 
Developing RESTful Web APIs with Python, Flask and MongoDB
Developing RESTful Web APIs with Python, Flask and MongoDBDeveloping RESTful Web APIs with Python, Flask and MongoDB
Developing RESTful Web APIs with Python, Flask and MongoDB
 

Último

Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Scott Andery
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 

Último (20)

Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 

Rapid API Development with Packfire Framework for PHP