farmerli / farmerphp Goto Github PK
View Code? Open in Web Editor NEWA Open Source PHP Framework
A Open Source PHP Framework
规划框架的autoload规则, 并实现
将php错误转换为异常, 并catch住未处理的异常转换为友好/可读信息
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)
创建入口,规划框架文件结构, 规划配置文件
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.