看到一篇不错的博文,记录下:
http://blog.csdn.net/qtyl1988/article/details/39553339
http://blog.csdn.net/qtyl1988/article/details/39519951
http://blog.csdn.net/qtyl1988/article/details/39524713
http://blog.csdn.net/qtyl1988/article/details/39545531
该文是采用C++写的,PHP的实现可以参考Laravel,其中文文档: