Swift MVC

A PHP MVC framework for geeks, and GEEKS ONLY!

Why yet another framework? Because with nearly every framework out there, you ask for a banana…

A short terminal demo: asking for just a banana installs a gorilla and the entire jungle, 48,213 files and 312 MB, while Swift MVC unzips to 26 files and 73 KB.

Key Features

Lightning Fast

It's as fast as a program written in assembly language. Well, to be honest, working in Swift MVC sometimes feels like you are actually developing in assembly, but that's another story.

Unbelievably Light

The core is under 30 KB uncompressed, and the whole download is just 40 KB. It's literally as light as a feather, and the small size makes it ultra fast and super easy to learn.

Almost Zero Configuration

For a simple website, just drop in the MVC files and you are good to go. For a database-driven website, only set the DB credentials in config.php, and you should be up and running in no time.

Clean MVC Structure

A super clean structure that's easy to learn. Separate folders for the System, Theme, MVC and App files help you understand the overall layout quicker, and make development less error-prone.

Scalable Architecture

Designed to be scalable from the very core. Add extra libraries or modules to the System folder or to the App folder. Most CodeIgniter libraries can be added with zero or minimal changes.

MIT Style License

The MIT-style license encourages you to explore and modify the code to make it work best for you. And with zero documentation, reading the code is a must anyway. Happy code reading!

FAQ

Why another PHP MVC framework?

It's true that there are dozens, if not hundreds, of PHP MVC frameworks available online. So why yet another one? The best answer is this quote from Joe Armstrong, the creator of Erlang, about object-oriented languages. It applies just as well to most frameworks:

The problem with object-oriented languages is they've got all this implicit environment that they carry around with them. You wanted a banana but what you got was a gorilla holding the banana and the entire jungle.

That implicit environment helps most of the time, but it gives you a headache when you want to change something at the very core. Swift MVC is the answer to that: a pure MVC framework, and nothing else.

Why and when should I use this framework?

As the tagline says, this framework is not for every programmer. It's for geeks only. You could build your next Facebook app with it, but I wouldn't recommend that. There are some very nice, corporate-style MVC frameworks out there, and I'd suggest you try those first.

For non-geeks, it mostly makes sense for simple PHP applications. If you are working on a few-page product idea or your personal website, it may be a better choice than many of the beefier frameworks.

Okay, I'd like to give it a try. Where is the documentation?

There is no documentation. Whoa, what? No documentation? Yes, and when I said it's for geeks only, you thought I was kidding :-)

The framework does include one working sample page, which uses most of its features. For more samples, have a look at my Web Statistics widget (simply copy its mvc folder into your framework root), which is also built on this framework. I'll try to post more tips and details on my blog. In the meantime, if you have any questions, post them in the comments on this page.

Can I help with this project?

Sure! It's open source and on GitHub. If you are a programmer, explore, learn and modify it as suits you best, and let me know if you'd like to merge your changes back into the main repository. If you are a technical writer, some help with the documentation would be great!

Download Statistics

Loading stats...

Feedback & Comments