This post originated from an RSS feed registered with Web Buzz
by Douglas Clifton.
Original Post: Building a Simplified PHP MVC Framework
Feed Title: blogZero
Feed URL: http://loadaveragezero.com/app/s9y/index.php?/feeds/index.rss1
Feed Description: Web Development News, Culture and Opinion
In his famous pragmatic style, Rasmus Lerdorf has shared an article on his Toys blog that will walk you through what he calls a "no-framework PHP MVC framework." The task is a simple rich Web application, with SQLite and PDO for data abstraction, Ajax and JSON for data validation (input sanitation is achieved through the PECL
filter package), and several components from the Yahoo! User Interface Library. All tied together with PHP, JavaScript and HTML, just like you'd expect.
Along the way he also shares plenty of performance tips to help keep your applications responsive. Given that Rasmus is the Infrastructure Architect at Yahoo! (not to mention the creator of PHP), he might know a thing or two about dealing with large numbers of requests. So, if the thought of refactoring a large, complex framework doesn't suit your project, consider rolling your own simplified MVC stack. This article is a great place to gather some ideas.