SlideShare a Scribd company logo
PHP, Lithium, and
MongoDB
Mitch Pirtle
MongoBoston - September 20, 2010
Boston, MA
One thing real quick.
Microsoft NERD, right?

There’ll be no talk of
convergence or
paradigm shifts here
There will be code
COFFEE!
About the speaker
Nothing but web since 1995
Contributor to many FOSS projects (Joomla! founder)
Budding author
  MongoDB for Web Development
  Extreme Joomla! Performance
High-traffic projects (Jetsetter, MTV, Food Networks)
Husband, dad, skate punk, metalcore bassist, coach
What is MongoDB?

Document database
Wicked fast speed
Encourages simple code, fewer bugs
Great for scale
What is Lithium?
web - http://lithify.me
irc - #li3 on freenode.net
http://www.slideshare.net/nateabele/lithium-the-
framework-for-people-who-hate-frameworks

Projects demonstrating MongoDB support:
  http://rad-dev.org/lithium_mongo
  http://rad-dev.org/lithium_blog
Ok, what exactly is it?
Ok, what exactly is it?
 Requires PHP 5.3+
Ok, what exactly is it?
 Requires PHP 5.3+
 Promiscuously opinionated framework
Ok, what exactly is it?
 Requires PHP 5.3+
 Promiscuously opinionated framework
 MVC, but pragmatic - not dogmatic
Ok, what exactly is it?
 Requires PHP 5.3+
 Promiscuously opinionated framework
 MVC, but pragmatic - not dogmatic
 Wicked, whack-daddy fast
Ok, what exactly is it?
 Requires PHP 5.3+
 Promiscuously opinionated framework
 MVC, but pragmatic - not dogmatic
 Wicked, whack-daddy fast
 Pretty much everything is a plugin
Ok, what exactly is it?
 Requires PHP 5.3+
 Promiscuously opinionated framework
 MVC, but pragmatic - not dogmatic
 Wicked, whack-daddy fast
 Pretty much everything is a plugin
 Provides test harness, and much more
Benefit: Environments


Separate configuration
Better integration
Better workflow for
development
Benefit: Connections

Uses environments
Multiple database
types
Multiple database
connections
Yes, these are
concurrent
Benefit: Collections

 Specifically for
 document databases
 Embedded data/lists
 No schema definition
 required
Benefit: Plugins


 Everything is a plugin
 Even Lithium is a plugin
Benefit: Filters

 Lithium takes
 advantage of, and
 encourages the use of
 filters
 http://php.net/manual/
 en/book.filter.php
Is it fully baked?


 Nearing 1.0 release
 Model constraints (belongs to, has many, etc.) are
 being finished as you watch this talk
 Some generators, scaffolds under construction
Why Lithium + MongoDB?

You don’t have to define the schema in your models.
Read that first one again.
Lithium does not force relational practices on your data.
Namespaces, chaining, filters, closures...
Some light reading
To help you get your groove on
http://lithify.me/
Your handy dandy starting place of all starting
places
http://rad-dev.org/lithium/
The official project home of Lithium
http://rad-dev.org/projects
Additional sundry Lithium-based projects
The Quintessential Blog Tute
http://rad-dev.org/lithium/wiki/drafts/blog-tutorial
PHP Filters Reference
http://us3.php.net/filters
Enough talking, show us
some code!
‘Scuse me
While I whip this out...
Stump the Speaker™
Thanks!
Email: spacemonkey@mongodb.org
Skype: mitch.pirtle
Web: http://www.spacemonkeylabs.com
Slides: http://www.slideshare.net/
spacemonkeylabs
Image credits


Nerdy Bush: http://www.freakingnews.com/Nerd-
George-Bush-Pictures-38786.asp
Reading glasses: http://www.sxc.hu/photo/89159

More Related Content

Viewers also liked (20)

KEY
MongoDB Java Development - MongoBoston 2010
Eliot Horowitz
 
PPTX
Building Your First App with MongoDB
MongoDB
 
PDF
Webinar: Introducing the MongoDB Connector for BI 2.0 with Tableau
MongoDB
 
PPTX
How Auto Trader enables the UK's largest digital automotive marketplace
MongoDB
 
PPTX
Back to Basics: My First MongoDB Application
MongoDB
 
PPTX
Webinar: Transitioning from SQL to MongoDB
MongoDB
 
PPTX
Back to Basics 2017: Introduction to Sharding
MongoDB
 
PDF
Creating a Modern Data Architecture for Digital Transformation
MongoDB
 
PDF
The Rise of Microservices
MongoDB
 
PDF
Webinar: Working with Graph Data in MongoDB
MongoDB
 
PPTX
Back to Basics Webinar 2: Your First MongoDB Application
MongoDB
 
PPTX
Back to Basics Webinar 1: Introduction to NoSQL
MongoDB
 
PDF
Mongo DB
Edureka!
 
PDF
Intro To MongoDB
Alex Sharp
 
PDF
Mongodb and Totsy: An e-commerce case study
Mitch Pirtle
 
KEY
The Ruby/mongoDB ecosystem
Harold Giménez
 
PDF
MongoDB World 2016: Poster Sessions eBook
MongoDB
 
KEY
Mongo Seattle - The Business of MongoDB
Justin Smestad
 
PDF
The importance of efficient data management for Digital Transformation
MongoDB
 
PPTX
Back to Basics Webinar 3: Introduction to Replica Sets
MongoDB
 
MongoDB Java Development - MongoBoston 2010
Eliot Horowitz
 
Building Your First App with MongoDB
MongoDB
 
Webinar: Introducing the MongoDB Connector for BI 2.0 with Tableau
MongoDB
 
How Auto Trader enables the UK's largest digital automotive marketplace
MongoDB
 
Back to Basics: My First MongoDB Application
MongoDB
 
Webinar: Transitioning from SQL to MongoDB
MongoDB
 
Back to Basics 2017: Introduction to Sharding
MongoDB
 
Creating a Modern Data Architecture for Digital Transformation
MongoDB
 
The Rise of Microservices
MongoDB
 
Webinar: Working with Graph Data in MongoDB
MongoDB
 
Back to Basics Webinar 2: Your First MongoDB Application
MongoDB
 
Back to Basics Webinar 1: Introduction to NoSQL
MongoDB
 
Mongo DB
Edureka!
 
Intro To MongoDB
Alex Sharp
 
Mongodb and Totsy: An e-commerce case study
Mitch Pirtle
 
The Ruby/mongoDB ecosystem
Harold Giménez
 
MongoDB World 2016: Poster Sessions eBook
MongoDB
 
Mongo Seattle - The Business of MongoDB
Justin Smestad
 
The importance of efficient data management for Digital Transformation
MongoDB
 
Back to Basics Webinar 3: Introduction to Replica Sets
MongoDB
 

Similar to PHP, Lithium and MongoDB (20)

KEY
Mongodb and Totsy - E-commerce Case Study
Mitch Pirtle
 
KEY
Mongo NYC PHP Development
Fitz Agard
 
PPT
Introducing MongoBase
r1dotmy
 
PDF
Non-Framework MVC sites with PHP
César Rodas
 
PDF
MongoDB Use Case - Mobile App Backend
Lukas Korous
 
PDF
Open source Technology
Amardeep Vishwakarma
 
PDF
Rails with MongoDB
Eugene Park
 
PPS
Flickr Services
royans
 
PPS
Flickr Services
royans
 
PDF
IRJET- Lightweight MVC Framework in PHP
IRJET Journal
 
PDF
Mongo db php_shaken_not_stirred_joomlafrappe
Spyros Passas
 
PDF
Mongodb, Node.js and You: PART I
Mitch Pirtle
 
KEY
Grails and MongoDB - what, why and how
Iure Guimaraes
 
PDF
Lithium
enaramore
 
PPTX
mongodb-brief-intro-february-2012
Chris Westin
 
PDF
ZendCon2010 Doctrine MongoDB ODM
Jonathan Wage
 
PDF
My life with MongoDB
Mitch Pirtle
 
PPTX
When to Use MongoDB
MongoDB
 
PPTX
MongoDB Partner Program Update - November 2013
MongoDB
 
PPTX
Accelerating a Path to Digital with a Cloud Data Strategy
MongoDB
 
Mongodb and Totsy - E-commerce Case Study
Mitch Pirtle
 
Mongo NYC PHP Development
Fitz Agard
 
Introducing MongoBase
r1dotmy
 
Non-Framework MVC sites with PHP
César Rodas
 
MongoDB Use Case - Mobile App Backend
Lukas Korous
 
Open source Technology
Amardeep Vishwakarma
 
Rails with MongoDB
Eugene Park
 
Flickr Services
royans
 
Flickr Services
royans
 
IRJET- Lightweight MVC Framework in PHP
IRJET Journal
 
Mongo db php_shaken_not_stirred_joomlafrappe
Spyros Passas
 
Mongodb, Node.js and You: PART I
Mitch Pirtle
 
Grails and MongoDB - what, why and how
Iure Guimaraes
 
Lithium
enaramore
 
mongodb-brief-intro-february-2012
Chris Westin
 
ZendCon2010 Doctrine MongoDB ODM
Jonathan Wage
 
My life with MongoDB
Mitch Pirtle
 
When to Use MongoDB
MongoDB
 
MongoDB Partner Program Update - November 2013
MongoDB
 
Accelerating a Path to Digital with a Cloud Data Strategy
MongoDB
 
Ad

More from Mitch Pirtle (20)

PDF
Cloudy with a chance of scale
Mitch Pirtle
 
PDF
PHP Cloud Deployment Toolkits
Mitch Pirtle
 
PDF
MongoDB, Node.js, and You: PART III
Mitch Pirtle
 
PDF
MongoDB, Node.js And You: PART II
Mitch Pirtle
 
PDF
MongoDB, Development and You
Mitch Pirtle
 
PDF
MongoTorino 2013 Opening Keynote
Mitch Pirtle
 
PDF
Data as Documents: Overview and intro to MongoDB
Mitch Pirtle
 
PDF
Cloud conference - mongodb
Mitch Pirtle
 
KEY
Unified Content Model and Joomla!
Mitch Pirtle
 
KEY
Gridfs and MongoDB
Mitch Pirtle
 
KEY
Joomla - an Overview
Mitch Pirtle
 
KEY
Joomla Extreme Performance
Mitch Pirtle
 
KEY
Joomla and MongoDB
Mitch Pirtle
 
KEY
Content Management Systems and MongoDB
Mitch Pirtle
 
KEY
MongoDB: Built for Speed
Mitch Pirtle
 
KEY
Content Mangement Systems and MongoDB
Mitch Pirtle
 
KEY
Joomla For Entrepreneurs
Mitch Pirtle
 
KEY
Thin Server Architecture
Mitch Pirtle
 
KEY
Developing Joomla! 1.5 Extensions, Explained
Mitch Pirtle
 
KEY
Kickapps Social Media
Mitch Pirtle
 
Cloudy with a chance of scale
Mitch Pirtle
 
PHP Cloud Deployment Toolkits
Mitch Pirtle
 
MongoDB, Node.js, and You: PART III
Mitch Pirtle
 
MongoDB, Node.js And You: PART II
Mitch Pirtle
 
MongoDB, Development and You
Mitch Pirtle
 
MongoTorino 2013 Opening Keynote
Mitch Pirtle
 
Data as Documents: Overview and intro to MongoDB
Mitch Pirtle
 
Cloud conference - mongodb
Mitch Pirtle
 
Unified Content Model and Joomla!
Mitch Pirtle
 
Gridfs and MongoDB
Mitch Pirtle
 
Joomla - an Overview
Mitch Pirtle
 
Joomla Extreme Performance
Mitch Pirtle
 
Joomla and MongoDB
Mitch Pirtle
 
Content Management Systems and MongoDB
Mitch Pirtle
 
MongoDB: Built for Speed
Mitch Pirtle
 
Content Mangement Systems and MongoDB
Mitch Pirtle
 
Joomla For Entrepreneurs
Mitch Pirtle
 
Thin Server Architecture
Mitch Pirtle
 
Developing Joomla! 1.5 Extensions, Explained
Mitch Pirtle
 
Kickapps Social Media
Mitch Pirtle
 
Ad

Recently uploaded (20)

PDF
Software Development Company Keene Systems, Inc (1).pdf
Custom Software Development Company | Keene Systems, Inc.
 
PDF
NASA A Researcher’s Guide to International Space Station : Earth Observations
Dr. PANKAJ DHUSSA
 
PDF
Bitkom eIDAS Summit | European Business Wallet: Use Cases, Macroeconomics, an...
Carsten Stoecker
 
PDF
“ONNX and Python to C++: State-of-the-art Graph Compilation,” a Presentation ...
Edge AI and Vision Alliance
 
PDF
Dev Dives: Accelerating agentic automation with Autopilot for Everyone
UiPathCommunity
 
PDF
Next Generation AI: Anticipatory Intelligence, Forecasting Inflection Points ...
dleka294658677
 
PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
PDF
Evolution: How True AI is Redefining Safety in Industry 4.0
vikaassingh4433
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PPTX
Talbott's brief History of Computers for CollabDays Hamburg 2025
Talbott Crowell
 
PPTX
CapCut Pro PC Crack Latest Version Free Free
josanj305
 
PDF
NASA A Researcher’s Guide to International Space Station : Fundamental Physics
Dr. PANKAJ DHUSSA
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PDF
Home Cleaning App Development Services.pdf
V3cube
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PDF
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Software Development Company Keene Systems, Inc (1).pdf
Custom Software Development Company | Keene Systems, Inc.
 
NASA A Researcher’s Guide to International Space Station : Earth Observations
Dr. PANKAJ DHUSSA
 
Bitkom eIDAS Summit | European Business Wallet: Use Cases, Macroeconomics, an...
Carsten Stoecker
 
“ONNX and Python to C++: State-of-the-art Graph Compilation,” a Presentation ...
Edge AI and Vision Alliance
 
Dev Dives: Accelerating agentic automation with Autopilot for Everyone
UiPathCommunity
 
Next Generation AI: Anticipatory Intelligence, Forecasting Inflection Points ...
dleka294658677
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
Evolution: How True AI is Redefining Safety in Industry 4.0
vikaassingh4433
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
Talbott's brief History of Computers for CollabDays Hamburg 2025
Talbott Crowell
 
CapCut Pro PC Crack Latest Version Free Free
josanj305
 
NASA A Researcher’s Guide to International Space Station : Fundamental Physics
Dr. PANKAJ DHUSSA
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
Home Cleaning App Development Services.pdf
V3cube
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 

PHP, Lithium and MongoDB