项目源码地址链接地址(https://github.com/cxp1539/mi...Framework精简版php框架Frameworkfeaturessingleentryindex.php采用面向对象思想,基于MVC设计思想,采用Observer、registrar、factory、agent、trait特性等模式开发。使用namespace命名空间。autoLoader自动加载类。debug、Profiler(性能分析器)。提供一些常用类(图片、分页、文件上传、验证代码等).提供grunt常用插件(文件压缩、合并、观察等).基于ArrayAccess通过数组下标访问配置文件.obcache缓存.项目目录结构类公共类文件存储--image.class.php图片操作类--logobserver.class.php观察者日志实现类--page.class.php分页类--upload.class.php文件上传类--vcode.class.php验证码类conf配置文件--database.php数据库配置--memcache.phpmemcached配置控制控制器intef基本接口或抽象类--db.class.php数据库接口规范--observer。class.php异常观察者接口规范libs默认加载库文件--action.class.php调用控制器和方法类--autoloader.class.php自动加载类--config.class.php读取配置文件类--controller.class.php控制器基类--debug.class.php调试调试类--factory.class.php工厂类--globalf.class.php全局函数类--memcached.class.phpmemcached实现类--mysqli.class。phpmysqli实现类--obcache.class.phpobcache缓存类--obexception.class.php自定义异常处理类--profiler.class.php性能分析类--proxy.class.php代理类--register.class.php注册类--singleton.class.php单例trait--url.class.phpurl请求处理类node_modules节点插件grunt-contrib-concatgrunt文件合并插件grunt-contrib-uglifygrunt文件压缩插件grunt-contrib-watchgruntfilewatch插件gruntgrunt插件statics静态资源目录jsjsrelease_jsgrunt处理后jscsscssimagesimagesuploads图片上传目录vies模板目录Gruntfile.jsgrunt配置文件README.md自述文件。mdcommon.inc.php核心文件1.定义字符集2.设置时区3.打开会话4.定义主目录和静态资源目录常量5.autoLoader6.urlget调用控制器和方法7.debug,Profiler开启(性能分析器)8.初始化接收到的controller和method来处理action请求(反射机制)9.调试,Profiler接口,输出调试信息,执行时间,内存占用等index.php主入口包.json包.json
