实例介绍
本代码采用thinkphp5.1,gatewayworker3.0,完美集成两者功能,支持composer直接升级应用,根目录有word说明文档。
【实例截图】
【核心代码】
thinkphp5.1完美集成gatewayworker
└── thinkphp5.1完美集成gatewayworker
├── application
│ ├── api
│ │ ├── config
│ │ │ └── app.php
│ │ └── controller
│ │ └── Push.php
│ ├── command.php
│ ├── common.php
│ ├── index
│ │ ├── controller
│ │ │ └── Index.php
│ │ └── view
│ │ └── index
│ │ └── index.html
│ ├── push
│ │ ├── controller
│ │ │ └── Worker.php
│ │ └── Lib
│ │ └── Codec.php
│ └── tags.php
├── build.php
├── composer.json
├── composer.lock
├── config
│ ├── app.php
│ ├── cache.php
│ ├── console.php
│ ├── cookie.php
│ ├── database.php
│ ├── log.php
│ ├── session.php
│ ├── template.php
│ └── trace.php
├── extend
├── LICENSE.txt
├── linux
│ ├── start_gateway.php
│ └── start_register.php
├── linux_start_business.php
├── linux_start.php
├── public
│ ├── favicon.ico
│ ├── index.php
│ ├── robots.txt
│ ├── router.php
│ └── static
│ └── js
│ └── npush.js
├── README.md
├── route
│ └── route.php
├── test.php
├── think
├── thinkphp
│ ├── base.php
│ ├── composer.json
│ ├── CONTRIBUTING.md
│ ├── convention.php
│ ├── helper.php
│ ├── lang
│ │ └── zh-cn.php
│ ├── library
│ │ ├── think
│ │ │ ├── App.php
│ │ │ ├── Build.php
│ │ │ ├── cache
│ │ │ │ ├── driver
│ │ │ │ │ ├── File.php
│ │ │ │ │ ├── Lite.php
│ │ │ │ │ ├── Memcached.php
│ │ │ │ │ ├── Memcache.php
│ │ │ │ │ ├── Redis.php
│ │ │ │ │ ├── Sqlite.php
│ │ │ │ │ ├── Wincache.php
│ │ │ │ │ └── Xcache.php
│ │ │ │ └── Driver.php
│ │ │ ├── Cache.php
│ │ │ ├── Collection.php
│ │ │ ├── config
│ │ │ │ └── driver
│ │ │ │ ├── Ini.php
│ │ │ │ ├── Json.php
│ │ │ │ └── Xml.php
│ │ │ ├── Config.php
│ │ │ ├── console
│ │ │ │ ├── bin
│ │ │ │ │ ├── hiddeninput.exe
│ │ │ │ │ └── README.md
│ │ │ │ ├── command
│ │ │ │ │ ├── Build.php
│ │ │ │ │ ├── Clear.php
│ │ │ │ │ ├── Help.php
│ │ │ │ │ ├── Lists.php
│ │ │ │ │ ├── make
│ │ │ │ │ │ ├── Controller.php
│ │ │ │ │ │ ├── Middleware.php
│ │ │ │ │ │ ├── Model.php
│ │ │ │ │ │ └── stubs
│ │ │ │ │ │ ├── controller.api.stub
│ │ │ │ │ │ ├── controller.plain.stub
│ │ │ │ │ │ ├── controller.stub
│ │ │ │ │ │ ├── middleware.stub
│ │ │ │ │ │ └── model.stub
│ │ │ │ │ ├── Make.php
│ │ │ │ │ ├── optimize
│ │ │ │ │ │ ├── Autoload.php
│ │ │ │ │ │ ├── Config.php
│ │ │ │ │ │ ├── Route.php
│ │ │ │ │ │ └── Schema.php
│ │ │ │ │ └── RunServer.php
│ │ │ │ ├── Command.php
│ │ │ │ ├── input
│ │ │ │ │ ├── Argument.php
│ │ │ │ │ ├── Definition.php
│ │ │ │ │ └── Option.php
│ │ │ │ ├── Input.php
│ │ │ │ ├── LICENSE
│ │ │ │ ├── output
│ │ │ │ │ ├── Ask.php
│ │ │ │ │ ├── descriptor
│ │ │ │ │ │ └── Console.php
│ │ │ │ │ ├── Descriptor.php
│ │ │ │ │ ├── driver
│ │ │ │ │ │ ├── Buffer.php
│ │ │ │ │ │ ├── Console.php
│ │ │ │ │ │ └── Nothing.php
│ │ │ │ │ ├── formatter
│ │ │ │ │ │ ├── Stack.php
│ │ │ │ │ │ └── Style.php
│ │ │ │ │ ├── Formatter.php
│ │ │ │ │ ├── question
│ │ │ │ │ │ ├── Choice.php
│ │ │ │ │ │ └── Confirmation.php
│ │ │ │ │ └── Question.php
│ │ │ │ └── Output.php
│ │ │ ├── Console.php
│ │ │ ├── Container.php
│ │ │ ├── Controller.php
│ │ │ ├── Cookie.php
│ │ │ ├── db
│ │ │ │ ├── builder
│ │ │ │ │ ├── Mysql.php
│ │ │ │ │ ├── Pgsql.php
│ │ │ │ │ ├── Sqlite.php
│ │ │ │ │ └── Sqlsrv.php
│ │ │ │ ├── Builder.php
│ │ │ │ ├── Connection.php
│ │ │ │ ├── connector
│ │ │ │ │ ├── Mysql.php
│ │ │ │ │ ├── Pgsql.php
│ │ │ │ │ ├── pgsql.sql
│ │ │ │ │ ├── Sqlite.php
│ │ │ │ │ └── Sqlsrv.php
│ │ │ │ ├── exception
│ │ │ │ │ ├── BindParamException.php
│ │ │ │ │ ├── DataNotFoundException.php
│ │ │ │ │ └── ModelNotFoundException.php
│ │ │ │ ├── Expression.php
│ │ │ │ └── Query.php
│ │ │ ├── Db.php
│ │ │ ├── debug
│ │ │ │ ├── Console.php
│ │ │ │ └── Html.php
│ │ │ ├── Debug.php
│ │ │ ├── Env.php
│ │ │ ├── Error.php
│ │ │ ├── exception
│ │ │ │ ├── ClassNotFoundException.php
│ │ │ │ ├── DbException.php
│ │ │ │ ├── ErrorException.php
│ │ │ │ ├── Handle.php
│ │ │ │ ├── HttpException.php
│ │ │ │ ├── HttpResponseException.php
│ │ │ │ ├── PDOException.php
│ │ │ │ ├── RouteNotFoundException.php
│ │ │ │ ├── TemplateNotFoundException.php
│ │ │ │ ├── ThrowableError.php
│ │ │ │ └── ValidateException.php
│ │ │ ├── Exception.php
│ │ │ ├── facade
│ │ │ │ ├── App.php
│ │ │ │ ├── Build.php
│ │ │ │ ├── Cache.php
│ │ │ │ ├── Config.php
│ │ │ │ ├── Cookie.php
│ │ │ │ ├── Debug.php
│ │ │ │ ├── Env.php
│ │ │ │ ├── Hook.php
│ │ │ │ ├── Lang.php
│ │ │ │ ├── Log.php
│ │ │ │ ├── Middleware.php
│ │ │ │ ├── Request.php
│ │ │ │ ├── Response.php
│ │ │ │ ├── Route.php
│ │ │ │ ├── Session.php
│ │ │ │ ├── Url.php
│ │ │ │ ├── Validate.php
│ │ │ │ └── View.php
│ │ │ ├── Facade.php
│ │ │ ├── File.php
│ │ │ ├── Hook.php
│ │ │ ├── Lang.php
│ │ │ ├── Loader.php
│ │ │ ├── log
│ │ │ │ └── driver
│ │ │ │ ├── File.php
│ │ │ │ ├── Socket.php
│ │ │ │ └── Test.php
│ │ │ ├── Log.php
│ │ │ ├── Middleware.php
│ │ │ ├── model
│ │ │ │ ├── Collection.php
│ │ │ │ ├── concern
│ │ │ │ │ ├── Attribute.php
│ │ │ │ │ ├── Conversion.php
│ │ │ │ │ ├── ModelEvent.php
│ │ │ │ │ ├── RelationShip.php
│ │ │ │ │ ├── SoftDelete.php
│ │ │ │ │ └── TimeStamp.php
│ │ │ │ ├── Pivot.php
│ │ │ │ ├── relation
│ │ │ │ │ ├── BelongsToMany.php
│ │ │ │ │ ├── BelongsTo.php
│ │ │ │ │ ├── HasMany.php
│ │ │ │ │ ├── HasManyThrough.php
│ │ │ │ │ ├── HasOne.php
│ │ │ │ │ ├── MorphMany.php
│ │ │ │ │ ├── MorphOne.php
│ │ │ │ │ ├── MorphTo.php
│ │ │ │ │ └── OneToOne.php
│ │ │ │ └── Relation.php
│ │ │ ├── Model.php
│ │ │ ├── paginator
│ │ │ │ └── driver
│ │ │ │ └── Bootstrap.php
│ │ │ ├── Paginator.php
│ │ │ ├── process
│ │ │ │ ├── Builder.php
│ │ │ │ ├── exception
│ │ │ │ │ ├── Faild.php
│ │ │ │ │ ├── Failed.php
│ │ │ │ │ └── Timeout.php
│ │ │ │ ├── pipes
│ │ │ │ │ ├── Pipes.php
│ │ │ │ │ ├── Unix.php
│ │ │ │ │ └── Windows.php
│ │ │ │ └── Utils.php
│ │ │ ├── Process.php
│ │ │ ├── Request.php
│ │ │ ├── response
│ │ │ │ ├── Json.php
│ │ │ │ ├── Jsonp.php
│ │ │ │ ├── Jump.php
│ │ │ │ ├── Redirect.php
│ │ │ │ ├── View.php
│ │ │ │ └── Xml.php
│ │ │ ├── Response.php
│ │ │ ├── route
│ │ │ │ ├── AliasRule.php
│ │ │ │ ├── dispatch
│ │ │ │ │ ├── Callback.php
│ │ │ │ │ ├── Controller.php
│ │ │ │ │ ├── Module.php
│ │ │ │ │ ├── Redirect.php
│ │ │ │ │ ├── Response.php
│ │ │ │ │ ├── Url.php
│ │ │ │ │ └── View.php
│ │ │ │ ├── Dispatch.php
│ │ │ │ ├── Domain.php
│ │ │ │ ├── Resource.php
│ │ │ │ ├── RuleGroup.php
│ │ │ │ ├── RuleItem.php
│ │ │ │ ├── RuleName.php
│ │ │ │ └── Rule.php
│ │ │ ├── Route.php
│ │ │ ├── session
│ │ │ │ └── driver
│ │ │ │ ├── Memcached.php
│ │ │ │ ├── Memcache.php
│ │ │ │ └── Redis.php
│ │ │ ├── Session.php
│ │ │ ├── template
│ │ │ │ ├── driver
│ │ │ │ │ └── File.php
│ │ │ │ ├── taglib
│ │ │ │ │ └── Cx.php
│ │ │ │ └── TagLib.php
│ │ │ ├── Template.php
│ │ │ ├── Url.php
│ │ │ ├── validate
│ │ │ │ └── ValidateRule.php
│ │ │ ├── Validate.php
│ │ │ ├── view
│ │ │ │ └── driver
│ │ │ │ ├── Php.php
│ │ │ │ └── Think.php
│ │ │ └── View.php
│ │ └── traits
│ │ └── controller
│ │ └── Jump.php
│ ├── LICENSE.txt
│ ├── logo.png
│ ├── phpunit.xml.dist
│ ├── README.md
│ └── tpl
│ ├── default_index.tpl
│ ├── dispatch_jump.tpl
│ ├── page_trace.tpl
│ └── think_exception.tpl
├── vendor
│ ├── apix
│ │ └── log
│ │ ├── composer.json
│ │ ├── LICENSE.txt
│ │ └── src
│ │ ├── Exception.php
│ │ ├── LogEntry.php
│ │ ├── LogFormatterInterface.php
│ │ ├── LogFormatter.php
│ │ ├── Logger
│ │ │ ├── AbstractLogger.php
│ │ │ ├── ErrorLog.php
│ │ │ ├── File.php
│ │ │ ├── LoggerInterface.php
│ │ │ ├── Mail.php
│ │ │ ├── Nil.php
│ │ │ ├── Runtime.php
│ │ │ ├── Sapi.php
│ │ │ └── Stream.php
│ │ └── Logger.php
│ ├── autoload.php
│ ├── composer
│ │ ├── autoload_classmap.php
│ │ ├── autoload_namespaces.php
│ │ ├── autoload_psr4.php
│ │ ├── autoload_real.php
│ │ ├── autoload_static.php
│ │ ├── ClassLoader.php
│ │ ├── installed.json
│ │ └── LICENSE
│ ├── psr
│ │ └── log
│ │ ├── composer.json
│ │ ├── LICENSE
│ │ ├── Psr
│ │ │ └── Log
│ │ │ ├── AbstractLogger.php
│ │ │ ├── InvalidArgumentException.php
│ │ │ ├── LoggerAwareInterface.php
│ │ │ ├── LoggerAwareTrait.php
│ │ │ ├── LoggerInterface.php
│ │ │ ├── LoggerTrait.php
│ │ │ ├── LogLevel.php
│ │ │ ├── NullLogger.php
│ │ │ └── Test
│ │ │ └── LoggerInterfaceTest.php
│ │ └── README.md
│ ├── topthink
│ │ └── think-installer
│ │ ├── composer.json
│ │ └── src
│ │ ├── Plugin.php
│ │ ├── ThinkExtend.php
│ │ ├── ThinkFramework.php
│ │ └── ThinkTesting.php
│ └── workerman
│ ├── gatewayclient
│ │ ├── composer.json
│ │ ├── Gateway.php
│ │ ├── MIT-LICENSE.txt
│ │ └── README.md
│ ├── gateway-worker-for-win
│ │ ├── composer.json
│ │ ├── MIT-LICENSE.txt
│ │ ├── README.md
│ │ └── src
│ │ ├── BusinessWorker.php
│ │ ├── Gateway.php
│ │ ├── Lib
│ │ │ ├── Context.php
│ │ │ ├── DbConnection.php
│ │ │ ├── Db.php
│ │ │ └── Gateway.php
│ │ ├── Protocols
│ │ │ └── GatewayProtocol.php
│ │ └── Register.php
│ ├── workerman-for-win
│ │ ├── Autoloader.php
│ │ ├── composer.json
│ │ ├── Connection
│ │ │ ├── AsyncTcpConnection.php
│ │ │ ├── AsyncUdpConnection.php
│ │ │ ├── ConnectionInterface.php
│ │ │ ├── TcpConnection.php
│ │ │ └── UdpConnection.php
│ │ ├── Events
│ │ │ ├── EventInterface.php
│ │ │ ├── Event.php
│ │ │ ├── Ev.php
│ │ │ ├── Libevent.php
│ │ │ ├── React
│ │ │ │ ├── ExtEventLoop.php
│ │ │ │ ├── LibEventLoop.php
│ │ │ │ └── StreamSelectLoop.php
│ │ │ └── Select.php
│ │ ├── Lib
│ │ │ ├── Constants.php
│ │ │ └── Timer.php
│ │ ├── MIT-LICENSE.txt
│ │ ├── Protocols
│ │ │ ├── Frame.php
│ │ │ ├── Http
│ │ │ │ └── mime.types
│ │ │ ├── Http.php
│ │ │ ├── ProtocolInterface.php
│ │ │ ├── Text.php
│ │ │ ├── Websocket.php
│ │ │ └── Ws.php
│ │ ├── README.md
│ │ ├── WebServer.php
│ │ └── Worker.php
│ └── workerman.log
├── windows
│ ├── start_business.php
│ ├── start_gateway.php
│ └── start_register.php
├── windows_start.bat
├── windows_start-business.bat
└── 详细使用说明.doc
98 directories, 332 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论