You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,18 @@ I'm mostly doing this as an exercize in picking through some decisions other fra
7
7
I think that everyone has their own idea of simple, this is designed for a project that you want to be able to easily test with phpunit and dependency injection but isn't so large that you need to split your project into multiple packages within the project. The idea is that if your project becomes that big you should probably use something like service oriented archetecture to split it up anyway.
8
8
9
9
## Design goals
10
+
* MVC style framework.
10
11
* Di/Configuration autocompletes in PhpStorm 10+
12
+
* PSR 2 compliant
11
13
* Di/Configuration both work the same way, and can be configured per environment.
12
14
* By default does not include any external libraries, I'll try to add examples for how to use twig for views.
13
15
* Easy to debug from end to end. I want to hit very little code before hitting the custom logic in the controller.
16
+
* Examples of how to use a persistance (database) and view, but nothing is included by default.
17
+
* A handful of common simple objects that you can optionally use (Session, Request, Response)
18
+
19
+
== General flow for my example project
20
+
An http request happens: http://yoursite/hello/world
21
+
22
+
Apache rewrite sends everything to http://yoursite/index.php behind the scenes with a path of /hello/world
23
+
24
+
index.php calls the router code that in turn loads the controller hello and calls the method worldAction.
0 commit comments