Pick a framework and look at the implementation of their FrontController. Figure out how it works and build your own.
That said, why on earth would you not want to use a framework? The only reason I can think of is that you want to know how it works. And for that just google and look at existing sources.