Coder Social home page Coder Social logo

lightphp's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

sbmjerry darkiq

lightphp's Issues

LightPHP v6

定位

指导精神上没有什么变化:

  • LightPHP 是一个库,不是框架,各个部分可以单独被使用。
  • 轻量级,只用 20% 的代码实现最常用的 80% 的功能,剩下 20% 我们不管了。
  • 完整的注释和测试,这个好像很难被实现,算是目标吧。
  • LightPHP 是自由软件。

定位上,LightPHP v4 之前还含有一部分前端代码,在之后的版本中,LightPHP 将作为一个纯粹的 PHP 库。
版本上打算按照最低 PHP5.4 进行支持。

基础构件

lp-load.php, lp-config.php

配置文件,注册 autoload, 接管错误处理(可选功能).

lpFactory

构造器,用来实现类似工厂模式,以较短的语法来获取类实例,缓存创建的对象。
通过构造器还可以实现类名无关地创建实例,可以作为简单的插件机制。
构造器是 LightPHP 的基础构件,因为构造器的存在,所以 LightPHP 中大部分类都不通过静态类来实现。

lpConfig

配置文件管理类,可以按顺序加载多个配置文件,用后面的来覆盖前面的。

lpDebug

接管错误处理,封装 xdebug 的一些调试函数。

lpSession

Session和Cookie操作封装

MVC

lpApp

管理应用程序的资源,管理路由

lpHandler

控制器,整合 LightPHP 的各种功能,子类:

  • lpPageHandler
  • lpJSONHandler

插件

用户登录状态验证

  • lpClassicAuth
  • lpTrackAuth

数据库模型

以统一的接口实现那些数据库无关的数据库操作。

  • lpPDOModel
  • lpMongoModel
  • lpCachedModel

缓存

  • lpAPCCache
  • lpMemCache

  • lpFileLock
  • lpMySQLLock
  • lpMutex

邮件

  • lpSmtpMailer
  • lpLocalMailer

模版

各种语法的模版引擎

  • lpPHPTemplate
  • lpHTMLTemplate

国际化

  • lpPHPLocale
  • lpGettextLocale
  • lpJSONLocale

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.