GithubHelp home page GithubHelp logo

farmerphp's People

Contributors

farmerli avatar

Watchers

 avatar  avatar

farmerphp's Issues

错误/Exception处理

将php错误转换为异常, 并catch住未处理的异常转换为友好/可读信息

实现anotation收集

runtime 时自动收集框架及目标目录中所有Class的anotation,解析并依据配置决定是否缓存

实现依赖注入

实现依赖注入功能, 通过收集到的 class anotation中的property/method, 生成并注入到实例中。
示例:
@Property \namespace\ClassName $bindProperty
如果$bindProperty 不存在, 实例化\namespace\ClassName并绑定到$bindProperty上,实现注入, 适用于实例化时无需传参的Class,优先使用单例模式 getInstance()

@method \namespace\ClassName methodName(paramType $paramA, paramType $paramB) $bindProperty
通过 methodName() 方法注入, 如果$bindProperty 不存在, 实例化\namespace\ClassName绑定到$bindProperty, 并返回, 优先使用单例模式 getInstance($paramA, $paramB)

初始化框架

创建入口,规划框架文件结构, 规划配置文件

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.