PHP API 框架


PhalApi 和 Lumen 有没有哪位都用过? 有没有什么优劣势?承载能力什么的...

php api

超级大烂人 8 years, 7 months ago

做点简单的api,需要性能,基本上面向数据。
所以,选一个好一点的activerecord或者orm。在搭配一个速度快点的router。这事就成了!

推荐看看我自用开源的两个库:
https://github.com/lloydzhou/activerecord
https://github.com/lloydzhou/router

如果对这个库不是那么信任推荐github上面star多点的:
https://github.com/j4mie/idiorm
https://github.com/badphp/dispatch

爆肝女青年A answered 8 years, 7 months ago

slim这个框架你百度一下。

蓬萊山輝月 answered 8 years, 7 months ago

正在使用lumen. 继承了 laravel的核心和优势.
写起来挺顺手的.就是性能还是有点慢,写纯API的话 其实还可以去除很多组件的,比如说模板引擎什么的
推荐 后期根据业务需求 改改内核 提升下性能.

mayo14 answered 8 years, 7 months ago

Your Answer