Ganymedes builds a complete, simple, clean PHP 5.3 (+) based framework from scratch.
There are many examples and tutorials and the source code can be downloaded from this site.
The entire frame is build around reusable classes, so never write code twice.
- Fast, Simple, Clean, Complete
- TDD - Test Driven Design
- DDD - Domain Driven Design
- DRY - Do not Repeat Yourself
- MVC - Model View Controller implementation
The MVC implementation is not mandatory. Its just a way to build sites. You may use it, but don't have to.
This is true for the entire framework, you can use all, or parts. Actually, I am aiming not to make it a
framework, but a collection of classes, with as little dependencies on each other as possible.
The simplest MVC implementation works, but has some shortcomings. Fist, we have to include
all files by hand, with a hard coded path. Second, there is no real error handling, we depend
on the PHP provided error handlers. And last, we had to code this by trial and error,
there is no real way to test the classes.
The trial and error part means coding a bit, go to the browser to see if its working,
if not, change the code and try again.read more
Let me start by saying that this is not a tutorial about what MVC is.
There are a lot of excellent sites that explain to the greatest detail all ins and outs about MVC.
This sites focuses on practical MVC implementations.
The short version: when the users types a url (the request), it is
send to the controller.
The controller figures out what to do with the request (called
routing) and updates the model and the view. (called dispatching).
Last, the view renders the result and sends it back to the user. Most
commonly as web page, but not necessary.
I started Ganymedes from scratch, the first version of this site was build with this code!read more