Code Monkey home page Code Monkey logo

zan's Introduction

Zan PHP Framework

zanphp logo

Zan 是基于PHP协程的网络服务框架,提供最简单的方式开发面向C10K+的高并发HTTP服务或SOA服务。

核心特性

  1. 基于 yield 实现了独立堆栈的协程
  2. 类似于 Golang 的并发编程模型实现
  3. 基于 swoole 提供非阻塞I/O服务
  4. 连接池支持(内置MySQL、Redis、syslog等多种组件)
  5. 类似 Golang 的defer机制解决由于异常导致的资源未释放、锁未释放的问题
  6. 可继承的View布局及组件化支持,方便完成bigPipe/bigRender/首屏加载优化等不同的渲染方式
  7. 基于模型驱动的SQLMap,实现了SQL的快速定位及方便的sharding、cache支持
  8. 提供类似于 Laravel 的middleware(Filters & Terminators)机制
  9. Di及单元测试的良好支持
  10. 良好的服务化对接支持

框架定位

Zan 的定位是高并发 Web 服务或业务中间件。

Zan 参考了很多 Golang 特性,不过目的绝不是为了替换掉 Golang。

PHP 在业务系统开发上的优势明显,而 Golang 相信会是将来系统编程的霸主。

Zan 和 Golang 的边界是:Zan做业务系统;Golang 做系统(中间件或基础服务组件)。

而 Zan 和 Golang 编程模型的驱近,是希望能给PHP程序员一个更好的桥梁到 Golang。
理想的技术栈是:Zan + Go + 少量的C/C++。

当然对于致力于终身coding的码农来说:Java依然是很难跨过去的坎。

官方文档

Zan PHP的文档仓库地址:zan-doc。目前只有中文的文档,欢迎英语大牛翻译成英文的。

在线查看文档 http://doc.zanphp.io/ ✈

常用链接

开发交流

QQ群:115728122

License

我们有赞Zan PHP框架基于 MIT license 进行开源。

zan's People

Contributors

winglechen avatar agalwood avatar zxcvdavid avatar znddzxx112 avatar voidman avatar dsphper avatar netroby avatar

Watchers

 avatar  avatar

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.