diff --git a/http-server/Abstracts/BaseContext.php b/HttpServer/Abstracts/BaseContext.php
similarity index 100%
rename from http-server/Abstracts/BaseContext.php
rename to HttpServer/Abstracts/BaseContext.php
diff --git a/http-server/Abstracts/Callback.php b/HttpServer/Abstracts/Callback.php
similarity index 100%
rename from http-server/Abstracts/Callback.php
rename to HttpServer/Abstracts/Callback.php
diff --git a/http-server/Abstracts/HttpService.php b/HttpServer/Abstracts/HttpService.php
similarity index 100%
rename from http-server/Abstracts/HttpService.php
rename to HttpServer/Abstracts/HttpService.php
diff --git a/http-server/Abstracts/ServerBase.php b/HttpServer/Abstracts/ServerBase.php
similarity index 100%
rename from http-server/Abstracts/ServerBase.php
rename to HttpServer/Abstracts/ServerBase.php
diff --git a/http-server/Application.php b/HttpServer/Application.php
similarity index 100%
rename from http-server/Application.php
rename to HttpServer/Application.php
diff --git a/http-server/Client/Client.php b/HttpServer/Client/Client.php
similarity index 100%
rename from http-server/Client/Client.php
rename to HttpServer/Client/Client.php
diff --git a/http-server/Client/Result.php b/HttpServer/Client/Result.php
similarity index 100%
rename from http-server/Client/Result.php
rename to HttpServer/Client/Result.php
diff --git a/http-server/Command.php b/HttpServer/Command.php
similarity index 100%
rename from http-server/Command.php
rename to HttpServer/Command.php
diff --git a/http-server/Controller.php b/HttpServer/Controller.php
similarity index 100%
rename from http-server/Controller.php
rename to HttpServer/Controller.php
diff --git a/http-server/Events/OnAfterReload.php b/HttpServer/Events/OnAfterReload.php
similarity index 100%
rename from http-server/Events/OnAfterReload.php
rename to HttpServer/Events/OnAfterReload.php
diff --git a/http-server/Events/OnBeforeReload.php b/HttpServer/Events/OnBeforeReload.php
similarity index 100%
rename from http-server/Events/OnBeforeReload.php
rename to HttpServer/Events/OnBeforeReload.php
diff --git a/http-server/Events/OnClose.php b/HttpServer/Events/OnClose.php
similarity index 100%
rename from http-server/Events/OnClose.php
rename to HttpServer/Events/OnClose.php
diff --git a/http-server/Events/OnConnect.php b/HttpServer/Events/OnConnect.php
similarity index 100%
rename from http-server/Events/OnConnect.php
rename to HttpServer/Events/OnConnect.php
diff --git a/http-server/Events/OnFinish.php b/HttpServer/Events/OnFinish.php
similarity index 100%
rename from http-server/Events/OnFinish.php
rename to HttpServer/Events/OnFinish.php
diff --git a/http-server/Events/OnHandshake.php b/HttpServer/Events/OnHandshake.php
similarity index 100%
rename from http-server/Events/OnHandshake.php
rename to HttpServer/Events/OnHandshake.php
diff --git a/http-server/Events/OnManagerStart.php b/HttpServer/Events/OnManagerStart.php
similarity index 100%
rename from http-server/Events/OnManagerStart.php
rename to HttpServer/Events/OnManagerStart.php
diff --git a/http-server/Events/OnManagerStop.php b/HttpServer/Events/OnManagerStop.php
similarity index 100%
rename from http-server/Events/OnManagerStop.php
rename to HttpServer/Events/OnManagerStop.php
diff --git a/http-server/Events/OnMessage.php b/HttpServer/Events/OnMessage.php
similarity index 100%
rename from http-server/Events/OnMessage.php
rename to HttpServer/Events/OnMessage.php
diff --git a/http-server/Events/OnPacket.php b/HttpServer/Events/OnPacket.php
similarity index 100%
rename from http-server/Events/OnPacket.php
rename to HttpServer/Events/OnPacket.php
diff --git a/http-server/Events/OnPipeMessage.php b/HttpServer/Events/OnPipeMessage.php
similarity index 100%
rename from http-server/Events/OnPipeMessage.php
rename to HttpServer/Events/OnPipeMessage.php
diff --git a/http-server/Events/OnReceive.php b/HttpServer/Events/OnReceive.php
similarity index 100%
rename from http-server/Events/OnReceive.php
rename to HttpServer/Events/OnReceive.php
diff --git a/http-server/Events/OnRequest.php b/HttpServer/Events/OnRequest.php
similarity index 100%
rename from http-server/Events/OnRequest.php
rename to HttpServer/Events/OnRequest.php
diff --git a/http-server/Events/OnShutdown.php b/HttpServer/Events/OnShutdown.php
similarity index 100%
rename from http-server/Events/OnShutdown.php
rename to HttpServer/Events/OnShutdown.php
diff --git a/http-server/Events/OnStart.php b/HttpServer/Events/OnStart.php
similarity index 100%
rename from http-server/Events/OnStart.php
rename to HttpServer/Events/OnStart.php
diff --git a/http-server/Events/OnTask.php b/HttpServer/Events/OnTask.php
similarity index 100%
rename from http-server/Events/OnTask.php
rename to HttpServer/Events/OnTask.php
diff --git a/http-server/Events/OnWorkerError.php b/HttpServer/Events/OnWorkerError.php
similarity index 100%
rename from http-server/Events/OnWorkerError.php
rename to HttpServer/Events/OnWorkerError.php
diff --git a/http-server/Events/OnWorkerExit.php b/HttpServer/Events/OnWorkerExit.php
similarity index 100%
rename from http-server/Events/OnWorkerExit.php
rename to HttpServer/Events/OnWorkerExit.php
diff --git a/http-server/Events/OnWorkerStart.php b/HttpServer/Events/OnWorkerStart.php
similarity index 100%
rename from http-server/Events/OnWorkerStart.php
rename to HttpServer/Events/OnWorkerStart.php
diff --git a/http-server/Events/OnWorkerStop.php b/HttpServer/Events/OnWorkerStop.php
similarity index 100%
rename from http-server/Events/OnWorkerStop.php
rename to HttpServer/Events/OnWorkerStop.php
diff --git a/http-server/Exception/AuthException.php b/HttpServer/Exception/AuthException.php
similarity index 100%
rename from http-server/Exception/AuthException.php
rename to HttpServer/Exception/AuthException.php
diff --git a/http-server/Exception/RequestException.php b/HttpServer/Exception/RequestException.php
similarity index 100%
rename from http-server/Exception/RequestException.php
rename to HttpServer/Exception/RequestException.php
diff --git a/http-server/Http/Context.php b/HttpServer/Http/Context.php
similarity index 100%
rename from http-server/Http/Context.php
rename to HttpServer/Http/Context.php
diff --git a/http-server/Http/File.php b/HttpServer/Http/File.php
similarity index 100%
rename from http-server/Http/File.php
rename to HttpServer/Http/File.php
diff --git a/http-server/Http/Formatter/HtmlFormatter.php b/HttpServer/Http/Formatter/HtmlFormatter.php
similarity index 100%
rename from http-server/Http/Formatter/HtmlFormatter.php
rename to HttpServer/Http/Formatter/HtmlFormatter.php
diff --git a/http-server/Http/Formatter/JsonFormatter.php b/HttpServer/Http/Formatter/JsonFormatter.php
similarity index 100%
rename from http-server/Http/Formatter/JsonFormatter.php
rename to HttpServer/Http/Formatter/JsonFormatter.php
diff --git a/http-server/Http/Formatter/XmlFormatter.php b/HttpServer/Http/Formatter/XmlFormatter.php
similarity index 100%
rename from http-server/Http/Formatter/XmlFormatter.php
rename to HttpServer/Http/Formatter/XmlFormatter.php
diff --git a/http-server/Http/HttpHeaders.php b/HttpServer/Http/HttpHeaders.php
similarity index 100%
rename from http-server/Http/HttpHeaders.php
rename to HttpServer/Http/HttpHeaders.php
diff --git a/http-server/Http/HttpParams.php b/HttpServer/Http/HttpParams.php
similarity index 100%
rename from http-server/Http/HttpParams.php
rename to HttpServer/Http/HttpParams.php
diff --git a/http-server/Http/Request.php b/HttpServer/Http/Request.php
similarity index 100%
rename from http-server/Http/Request.php
rename to HttpServer/Http/Request.php
diff --git a/http-server/Http/Response.php b/HttpServer/Http/Response.php
similarity index 100%
rename from http-server/Http/Response.php
rename to HttpServer/Http/Response.php
diff --git a/http-server/IInterface/AuthIdentity.php b/HttpServer/IInterface/AuthIdentity.php
similarity index 100%
rename from http-server/IInterface/AuthIdentity.php
rename to HttpServer/IInterface/AuthIdentity.php
diff --git a/http-server/IInterface/IFormatter.php b/HttpServer/IInterface/IFormatter.php
similarity index 100%
rename from http-server/IInterface/IFormatter.php
rename to HttpServer/IInterface/IFormatter.php
diff --git a/http-server/IInterface/Interceptor.php b/HttpServer/IInterface/Interceptor.php
similarity index 100%
rename from http-server/IInterface/Interceptor.php
rename to HttpServer/IInterface/Interceptor.php
diff --git a/http-server/IInterface/Limits.php b/HttpServer/IInterface/Limits.php
similarity index 100%
rename from http-server/IInterface/Limits.php
rename to HttpServer/IInterface/Limits.php
diff --git a/http-server/IInterface/Middleware.php b/HttpServer/IInterface/Middleware.php
similarity index 100%
rename from http-server/IInterface/Middleware.php
rename to HttpServer/IInterface/Middleware.php
diff --git a/http-server/IInterface/RouterInterface.php b/HttpServer/IInterface/RouterInterface.php
similarity index 100%
rename from http-server/IInterface/RouterInterface.php
rename to HttpServer/IInterface/RouterInterface.php
diff --git a/http-server/IInterface/Service.php b/HttpServer/IInterface/Service.php
similarity index 100%
rename from http-server/IInterface/Service.php
rename to HttpServer/IInterface/Service.php
diff --git a/http-server/IInterface/Task.php b/HttpServer/IInterface/Task.php
similarity index 100%
rename from http-server/IInterface/Task.php
rename to HttpServer/IInterface/Task.php
diff --git a/http-server/Route/Annotation/Annotation.php b/HttpServer/Route/Annotation/Annotation.php
similarity index 100%
rename from http-server/Route/Annotation/Annotation.php
rename to HttpServer/Route/Annotation/Annotation.php
diff --git a/http-server/Route/Annotation/Tcp.php b/HttpServer/Route/Annotation/Tcp.php
similarity index 100%
rename from http-server/Route/Annotation/Tcp.php
rename to HttpServer/Route/Annotation/Tcp.php
diff --git a/http-server/Route/Annotation/Websocket.php b/HttpServer/Route/Annotation/Websocket.php
similarity index 100%
rename from http-server/Route/Annotation/Websocket.php
rename to HttpServer/Route/Annotation/Websocket.php
diff --git a/http-server/Route/Any.php b/HttpServer/Route/Any.php
similarity index 100%
rename from http-server/Route/Any.php
rename to HttpServer/Route/Any.php
diff --git a/http-server/Route/CoreMiddleware.php b/HttpServer/Route/CoreMiddleware.php
similarity index 100%
rename from http-server/Route/CoreMiddleware.php
rename to HttpServer/Route/CoreMiddleware.php
diff --git a/http-server/Route/Dispatch/Dispatch.php b/HttpServer/Route/Dispatch/Dispatch.php
similarity index 100%
rename from http-server/Route/Dispatch/Dispatch.php
rename to HttpServer/Route/Dispatch/Dispatch.php
diff --git a/http-server/Route/Filter.php b/HttpServer/Route/Filter.php
similarity index 100%
rename from http-server/Route/Filter.php
rename to HttpServer/Route/Filter.php
diff --git a/http-server/Route/Filter/BodyFilter.php b/HttpServer/Route/Filter/BodyFilter.php
similarity index 100%
rename from http-server/Route/Filter/BodyFilter.php
rename to HttpServer/Route/Filter/BodyFilter.php
diff --git a/http-server/Route/Filter/Filter.php b/HttpServer/Route/Filter/Filter.php
similarity index 100%
rename from http-server/Route/Filter/Filter.php
rename to HttpServer/Route/Filter/Filter.php
diff --git a/http-server/Route/Filter/FilterException.php b/HttpServer/Route/Filter/FilterException.php
similarity index 100%
rename from http-server/Route/Filter/FilterException.php
rename to HttpServer/Route/Filter/FilterException.php
diff --git a/http-server/Route/Filter/HeaderFilter.php b/HttpServer/Route/Filter/HeaderFilter.php
similarity index 100%
rename from http-server/Route/Filter/HeaderFilter.php
rename to HttpServer/Route/Filter/HeaderFilter.php
diff --git a/http-server/Route/Filter/QueryFilter.php b/HttpServer/Route/Filter/QueryFilter.php
similarity index 100%
rename from http-server/Route/Filter/QueryFilter.php
rename to HttpServer/Route/Filter/QueryFilter.php
diff --git a/http-server/Route/Handler.php b/HttpServer/Route/Handler.php
similarity index 100%
rename from http-server/Route/Handler.php
rename to HttpServer/Route/Handler.php
diff --git a/http-server/Route/Middleware.php b/HttpServer/Route/Middleware.php
similarity index 100%
rename from http-server/Route/Middleware.php
rename to HttpServer/Route/Middleware.php
diff --git a/http-server/Route/Node.php b/HttpServer/Route/Node.php
similarity index 100%
rename from http-server/Route/Node.php
rename to HttpServer/Route/Node.php
diff --git a/http-server/Route/Router.php b/HttpServer/Route/Router.php
similarity index 100%
rename from http-server/Route/Router.php
rename to HttpServer/Route/Router.php
diff --git a/http-server/Server.php b/HttpServer/Server.php
similarity index 100%
rename from http-server/Server.php
rename to HttpServer/Server.php
diff --git a/http-server/ServerProviders.php b/HttpServer/ServerProviders.php
similarity index 100%
rename from http-server/ServerProviders.php
rename to HttpServer/ServerProviders.php
diff --git a/http-server/Service/Abstracts/Http.php b/HttpServer/Service/Abstracts/Http.php
similarity index 100%
rename from http-server/Service/Abstracts/Http.php
rename to HttpServer/Service/Abstracts/Http.php
diff --git a/http-server/Service/Abstracts/Server.php b/HttpServer/Service/Abstracts/Server.php
similarity index 100%
rename from http-server/Service/Abstracts/Server.php
rename to HttpServer/Service/Abstracts/Server.php
diff --git a/http-server/Service/Abstracts/Tcp.php b/HttpServer/Service/Abstracts/Tcp.php
similarity index 100%
rename from http-server/Service/Abstracts/Tcp.php
rename to HttpServer/Service/Abstracts/Tcp.php
diff --git a/http-server/Service/Abstracts/Websocket.php b/HttpServer/Service/Abstracts/Websocket.php
similarity index 100%
rename from http-server/Service/Abstracts/Websocket.php
rename to HttpServer/Service/Abstracts/Websocket.php
diff --git a/http-server/Service/Http.php b/HttpServer/Service/Http.php
similarity index 100%
rename from http-server/Service/Http.php
rename to HttpServer/Service/Http.php
diff --git a/http-server/Service/Packet.php b/HttpServer/Service/Packet.php
similarity index 100%
rename from http-server/Service/Packet.php
rename to HttpServer/Service/Packet.php
diff --git a/http-server/Service/Receive.php b/HttpServer/Service/Receive.php
similarity index 100%
rename from http-server/Service/Receive.php
rename to HttpServer/Service/Receive.php
diff --git a/http-server/Service/Websocket.php b/HttpServer/Service/Websocket.php
similarity index 100%
rename from http-server/Service/Websocket.php
rename to HttpServer/Service/Websocket.php
diff --git a/http-server/config.php b/HttpServer/config.php
similarity index 100%
rename from http-server/config.php
rename to HttpServer/config.php
diff --git a/system/Abstracts/BaseAnnotation.php b/System/Abstracts/BaseAnnotation.php
similarity index 100%
rename from system/Abstracts/BaseAnnotation.php
rename to System/Abstracts/BaseAnnotation.php
diff --git a/system/Abstracts/BaseApplication.php b/System/Abstracts/BaseApplication.php
similarity index 100%
rename from system/Abstracts/BaseApplication.php
rename to System/Abstracts/BaseApplication.php
diff --git a/system/Abstracts/BaseObject.php b/System/Abstracts/BaseObject.php
similarity index 100%
rename from system/Abstracts/BaseObject.php
rename to System/Abstracts/BaseObject.php
diff --git a/system/Abstracts/Component.php b/System/Abstracts/Component.php
similarity index 100%
rename from system/Abstracts/Component.php
rename to System/Abstracts/Component.php
diff --git a/system/Abstracts/Config.php b/System/Abstracts/Config.php
similarity index 100%
rename from system/Abstracts/Config.php
rename to System/Abstracts/Config.php
diff --git a/system/Abstracts/Configure.php b/System/Abstracts/Configure.php
similarity index 100%
rename from system/Abstracts/Configure.php
rename to System/Abstracts/Configure.php
diff --git a/system/Abstracts/IListener.php b/System/Abstracts/IListener.php
similarity index 100%
rename from system/Abstracts/IListener.php
rename to System/Abstracts/IListener.php
diff --git a/system/Abstracts/Listener.php b/System/Abstracts/Listener.php
similarity index 100%
rename from system/Abstracts/Listener.php
rename to System/Abstracts/Listener.php
diff --git a/system/Abstracts/Pool.php b/System/Abstracts/Pool.php
similarity index 100%
rename from system/Abstracts/Pool.php
rename to System/Abstracts/Pool.php
diff --git a/system/Abstracts/Provider.php b/System/Abstracts/Provider.php
similarity index 100%
rename from system/Abstracts/Provider.php
rename to System/Abstracts/Provider.php
diff --git a/system/Abstracts/Providers.php b/System/Abstracts/Providers.php
similarity index 100%
rename from system/Abstracts/Providers.php
rename to System/Abstracts/Providers.php
diff --git a/system/Annotation/Annotation.php b/System/Annotation/Annotation.php
similarity index 100%
rename from system/Annotation/Annotation.php
rename to System/Annotation/Annotation.php
diff --git a/system/Application.php b/System/Application.php
similarity index 100%
rename from system/Application.php
rename to System/Application.php
diff --git a/system/Cache/File.php b/System/Cache/File.php
similarity index 100%
rename from system/Cache/File.php
rename to System/Cache/File.php
diff --git a/system/Cache/ICache.php b/System/Cache/ICache.php
similarity index 100%
rename from system/Cache/ICache.php
rename to System/Cache/ICache.php
diff --git a/system/Cache/Memcached.php b/System/Cache/Memcached.php
similarity index 100%
rename from system/Cache/Memcached.php
rename to System/Cache/Memcached.php
diff --git a/system/Cache/Redis.php b/System/Cache/Redis.php
similarity index 100%
rename from system/Cache/Redis.php
rename to System/Cache/Redis.php
diff --git a/system/Core/ArrayAccess.php b/System/Core/ArrayAccess.php
similarity index 100%
rename from system/Core/ArrayAccess.php
rename to System/Core/ArrayAccess.php
diff --git a/system/Core/DateFormat.php b/System/Core/DateFormat.php
similarity index 100%
rename from system/Core/DateFormat.php
rename to System/Core/DateFormat.php
diff --git a/system/Core/Dtl.php b/System/Core/Dtl.php
similarity index 100%
rename from system/Core/Dtl.php
rename to System/Core/Dtl.php
diff --git a/system/Core/Help.php b/System/Core/Help.php
similarity index 100%
rename from system/Core/Help.php
rename to System/Core/Help.php
diff --git a/system/Core/JSON.php b/System/Core/JSON.php
similarity index 100%
rename from system/Core/JSON.php
rename to System/Core/JSON.php
diff --git a/system/Core/Reader.php b/System/Core/Reader.php
similarity index 100%
rename from system/Core/Reader.php
rename to System/Core/Reader.php
diff --git a/system/Core/Str.php b/System/Core/Str.php
similarity index 100%
rename from system/Core/Str.php
rename to System/Core/Str.php
diff --git a/system/Core/Xml.php b/System/Core/Xml.php
similarity index 100%
rename from system/Core/Xml.php
rename to System/Core/Xml.php
diff --git a/system/Di/Container.php b/System/Di/Container.php
similarity index 100%
rename from system/Di/Container.php
rename to System/Di/Container.php
diff --git a/system/Di/Service.php b/System/Di/Service.php
similarity index 100%
rename from system/Di/Service.php
rename to System/Di/Service.php
diff --git a/system/Error/ErrorHandler.php b/System/Error/ErrorHandler.php
similarity index 100%
rename from system/Error/ErrorHandler.php
rename to System/Error/ErrorHandler.php
diff --git a/system/Error/ErrorInterface.php b/System/Error/ErrorInterface.php
similarity index 100%
rename from system/Error/ErrorInterface.php
rename to System/Error/ErrorInterface.php
diff --git a/system/Error/Logger.php b/System/Error/Logger.php
similarity index 100%
rename from system/Error/Logger.php
rename to System/Error/Logger.php
diff --git a/system/Event.php b/System/Event.php
similarity index 100%
rename from system/Event.php
rename to System/Event.php
diff --git a/system/Exception/AuthException.php b/System/Exception/AuthException.php
similarity index 100%
rename from system/Exception/AuthException.php
rename to System/Exception/AuthException.php
diff --git a/system/Exception/ComponentException.php b/System/Exception/ComponentException.php
similarity index 100%
rename from system/Exception/ComponentException.php
rename to System/Exception/ComponentException.php
diff --git a/system/Exception/ConfigException.php b/System/Exception/ConfigException.php
similarity index 100%
rename from system/Exception/ConfigException.php
rename to System/Exception/ConfigException.php
diff --git a/system/Exception/InitException.php b/System/Exception/InitException.php
similarity index 100%
rename from system/Exception/InitException.php
rename to System/Exception/InitException.php
diff --git a/system/Exception/NotFindClassException.php b/System/Exception/NotFindClassException.php
similarity index 100%
rename from system/Exception/NotFindClassException.php
rename to System/Exception/NotFindClassException.php
diff --git a/system/Exception/RedisConnectException.php b/System/Exception/RedisConnectException.php
similarity index 100%
rename from system/Exception/RedisConnectException.php
rename to System/Exception/RedisConnectException.php
diff --git a/system/Jwt/Jwt.php b/System/Jwt/Jwt.php
similarity index 100%
rename from system/Jwt/Jwt.php
rename to System/Jwt/Jwt.php
diff --git a/system/Observer/Observer.php b/System/Observer/Observer.php
similarity index 100%
rename from system/Observer/Observer.php
rename to System/Observer/Observer.php
diff --git a/system/Observer/Subscribe.php b/System/Observer/Subscribe.php
similarity index 100%
rename from system/Observer/Subscribe.php
rename to System/Observer/Subscribe.php
diff --git a/system/Pool/Connection.php b/System/Pool/Connection.php
similarity index 100%
rename from system/Pool/Connection.php
rename to System/Pool/Connection.php
diff --git a/system/Pool/Pool.php b/System/Pool/Pool.php
similarity index 100%
rename from system/Pool/Pool.php
rename to System/Pool/Pool.php
diff --git a/system/Pool/Redis.php b/System/Pool/Redis.php
similarity index 100%
rename from system/Pool/Redis.php
rename to System/Pool/Redis.php
diff --git a/system/Process/ISystem.php b/System/Process/ISystem.php
similarity index 100%
rename from system/Process/ISystem.php
rename to System/Process/ISystem.php
diff --git a/system/Process/Leafleting.php b/System/Process/Leafleting.php
similarity index 100%
rename from system/Process/Leafleting.php
rename to System/Process/Leafleting.php
diff --git a/system/Process/Process.php b/System/Process/Process.php
similarity index 100%
rename from system/Process/Process.php
rename to System/Process/Process.php
diff --git a/system/Process/ServerInotify.php b/System/Process/ServerInotify.php
similarity index 100%
rename from system/Process/ServerInotify.php
rename to System/Process/ServerInotify.php
diff --git a/system/Process/System.php b/System/Process/System.php
similarity index 100%
rename from system/Process/System.php
rename to System/Process/System.php
diff --git a/system/Process/config.php b/System/Process/config.php
similarity index 100%
rename from system/Process/config.php
rename to System/Process/config.php
diff --git a/system/Snowflake.php b/System/Snowflake.php
similarity index 100%
rename from system/Snowflake.php
rename to System/Snowflake.php
diff --git a/validator/ArrayValidator.php b/Validator/ArrayValidator.php
similarity index 100%
rename from validator/ArrayValidator.php
rename to Validator/ArrayValidator.php
diff --git a/validator/BaseValidator.php b/Validator/BaseValidator.php
similarity index 100%
rename from validator/BaseValidator.php
rename to Validator/BaseValidator.php
diff --git a/validator/DateTimeValidator.php b/Validator/DateTimeValidator.php
similarity index 100%
rename from validator/DateTimeValidator.php
rename to Validator/DateTimeValidator.php
diff --git a/validator/EmailValidator.php b/Validator/EmailValidator.php
similarity index 100%
rename from validator/EmailValidator.php
rename to Validator/EmailValidator.php
diff --git a/validator/EmptyValidator.php b/Validator/EmptyValidator.php
similarity index 100%
rename from validator/EmptyValidator.php
rename to Validator/EmptyValidator.php
diff --git a/validator/EnumValidator.php b/Validator/EnumValidator.php
similarity index 100%
rename from validator/EnumValidator.php
rename to Validator/EnumValidator.php
diff --git a/validator/IntegerValidator.php b/Validator/IntegerValidator.php
similarity index 100%
rename from validator/IntegerValidator.php
rename to Validator/IntegerValidator.php
diff --git a/validator/LengthValidator.php b/Validator/LengthValidator.php
similarity index 100%
rename from validator/LengthValidator.php
rename to Validator/LengthValidator.php
diff --git a/validator/RequiredValidator.php b/Validator/RequiredValidator.php
similarity index 100%
rename from validator/RequiredValidator.php
rename to Validator/RequiredValidator.php
diff --git a/validator/TypesOfValidator.php b/Validator/TypesOfValidator.php
similarity index 100%
rename from validator/TypesOfValidator.php
rename to Validator/TypesOfValidator.php
diff --git a/validator/UniqueValidator.php b/Validator/UniqueValidator.php
similarity index 100%
rename from validator/UniqueValidator.php
rename to Validator/UniqueValidator.php
diff --git a/validator/Validator.php b/Validator/Validator.php
similarity index 100%
rename from validator/Validator.php
rename to Validator/Validator.php
diff --git a/composer.json b/composer.json
index 8a733f2d..cfe0f186 100644
--- a/composer.json
+++ b/composer.json
@@ -28,9 +28,9 @@
},
"autoload": {
"psr-4": {
- "Snowflake\\": "./system/",
- "HttpServer\\": "./http-server/",
- "validator\\": "./validator/",
+ "Snowflake\\": "System/",
+ "HttpServer\\": "HttpServer/",
+ "validator\\": "Validator/",
"Console\\": "./Console/",
"Database\\": "./Database/"
},
diff --git a/p.php b/p.php
index abd21e9e..e3e074ef 100644
--- a/p.php
+++ b/p.php
@@ -1,75 +1,107 @@
setHost('127.0.0.1');
+// $client->setPort(9528);
+// $client->setErrorField('code');
+// $client->setErrorMsgField('message');
+// var_dump($client->sendTo('', [],SWOOLE_UDP));
+//
+// $client = HttpServer\Client\Client::NewRequest();
+// $client->setHost('127.0.0.1');
+// $client->setPort(9529);
+// $client->setErrorField('code');
+// $client->setErrorMsgField('message');
+// var_dump($client->sendTo('', [],SWOOLE_TCP));
+//
+// $client = HttpServer\Client\Client::NewRequest();
+// $client->setHost('127.0.0.1');
+// $client->setPort(9527);
+// $client->setErrorField('code');
+// $client->setErrorMsgField('message');
+// var_dump($client->send('', []));
+//});
+//$mail = new \PHPMailer\PHPMailer\PHPMailer(true);
-ini_set('memory_limit', '3096M');
+//try {
+// //Server settings
+// $mail->SMTPDebug = \PHPMailer\PHPMailer\SMTP::DEBUG_SERVER; // Enable verbose debug output
+// $mail->isSMTP(); // Send using SMTP
+// $mail->Host = 'smtp1.example.com'; // Set the SMTP server to send through
+// $mail->SMTPAuth = true; // Enable SMTP authentication
+// $mail->Username = 'user@example.com'; // SMTP username
+// $mail->Password = 'secret'; // SMTP password
+// $mail->SMTPSecure = \PHPMailer\PHPMailer\PHPMailer::ENCRYPTION_STARTTLS; // Enable TLS encryption; `PHPMailer::ENCRYPTION_SMTPS` encouraged
+// $mail->Port = 587; // TCP port to connect to, use 465 for `PHPMailer::ENCRYPTION_SMTPS` above
+//
+// //Recipients
+// $mail->setFrom('from@example.com', 'Mailer');
+// $mail->addAddress('joe@example.net', 'Joe User'); // Add a recipient
+// $mail->addAddress('ellen@example.com'); // Name is optional
+// $mail->addReplyTo('info@example.com', 'Information');
+// $mail->addCC('cc@example.com');
+// $mail->addBCC('bcc@example.com');
+//
+// // Attachments
+// $mail->addAttachment('/var/tmp/file.tar.gz'); // Add attachments
+// $mail->addAttachment('/tmp/image.jpg', 'new.jpg'); // Optional name
+//
+// // Content
+// $mail->isHTML(true); // Set email format to HTML
+// $mail->Subject = 'Here is the subject';
+// $mail->Body = 'This is the HTML message body in bold!';
+// $mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
+//
+// $mail->send();
+// echo 'Message has been sent';
+//} catch (Exception $e) {
+// echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}";
+//}
-use Snowflake\Application;
-require_once __DIR__ . '/vendor/autoload.php';
+//var_dump((bool)null);
+//var_dump((bool)0);
+//var_dump((bool)1);
+//var_dump((bool)false);
+//var_dump((bool)true);
+//var_dump((bool)"true");
+//var_dump((bool)"false");
+//var_dump((bool)"0");
+//var_dump((bool)"1");
+//var_dump((bool)"健康好几个地方就");
+//var_dump((bool)"lkdjfkgjdflk");
-\Swoole\Coroutine\run(function (){
- $client = HttpServer\Client\Client::NewRequest();
- $client->setHost('127.0.0.1');
- $client->setPort(9628);
- $client->setErrorField('code');
- $client->setErrorMsgField('message');
- var_dump($client->sendTo('', [],SWOOLE_UDP)->getMessage());
- $client = HttpServer\Client\Client::NewRequest();
- $client->setHost('127.0.0.1');
- $client->setPort(9629);
- $client->setErrorField('code');
- $client->setErrorMsgField('message');
- var_dump($client->sendTo('', [],SWOOLE_TCP)->getMessage());
+//class Qa
+//{
+// public $method = 'aad';
+//
+//
+// public function clone()
+// {
+// return new static();
+// }
+//
+//}
+//
+//
+//$qa = new Qa();
+//var_dump($qa->method);
+//$qa->method = 'bbd';
+//var_dump($qa->method);
+//
+//$new = $qa->clone();
+//var_dump($new);
+//$new->method = 'ttd';
+//var_dump($new, $qa);
+//
- $client = HttpServer\Client\Client::NewRequest();
- $client->setHost('127.0.0.1');
- $client->setPort(5555);
- $client->setErrorField('code');
- $client->setErrorMsgField('message');
- var_dump($client->sendTo('', [],SWOOLE_SOCK_TCP)->getMessage());
-
- $client = HttpServer\Client\Client::NewRequest();
- $client->setHost('127.0.0.1');
- $client->setPort(9527);
- $client->setErrorField('code');
- $client->setErrorMsgField('message');
- var_dump($client->send('', [])->getMessage());
-});
-$mail = new \PHPMailer\PHPMailer\PHPMailer(true);
-
-try {
- //Server settings
- $mail->SMTPDebug = \PHPMailer\PHPMailer\SMTP::DEBUG_SERVER; // Enable verbose debug output
- $mail->isSMTP(); // Send using SMTP
- $mail->Host = 'smtp1.example.com'; // Set the SMTP server to send through
- $mail->SMTPAuth = true; // Enable SMTP authentication
- $mail->Username = 'user@example.com'; // SMTP username
- $mail->Password = 'secret'; // SMTP password
- $mail->SMTPSecure = \PHPMailer\PHPMailer\PHPMailer::ENCRYPTION_STARTTLS; // Enable TLS encryption; `PHPMailer::ENCRYPTION_SMTPS` encouraged
- $mail->Port = 587; // TCP port to connect to, use 465 for `PHPMailer::ENCRYPTION_SMTPS` above
-
- //Recipients
- $mail->setFrom('from@example.com', 'Mailer');
- $mail->addAddress('joe@example.net', 'Joe User'); // Add a recipient
- $mail->addAddress('ellen@example.com'); // Name is optional
- $mail->addReplyTo('info@example.com', 'Information');
- $mail->addCC('cc@example.com');
- $mail->addBCC('bcc@example.com');
-
- // Attachments
- $mail->addAttachment('/var/tmp/file.tar.gz'); // Add attachments
- $mail->addAttachment('/tmp/image.jpg', 'new.jpg'); // Optional name
-
- // Content
- $mail->isHTML(true); // Set email format to HTML
- $mail->Subject = 'Here is the subject';
- $mail->Body = 'This is the HTML message body in bold!';
- $mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
-
- $mail->send();
- echo 'Message has been sent';
-} catch (Exception $e) {
- echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}";
-}
diff --git a/socket.html b/socket.html
index 7a73c105..99840446 100644
--- a/socket.html
+++ b/socket.html
@@ -36,13 +36,13 @@
}
function connect() {
- sock = new WebSocket('ws://127.0.0.1:9530/');
+ sock = new WebSocket('ws://127.0.0.1:9530/', ['chat-superchat']);
sock.onopen = function () {
if (tick) {
clearInterval(tick)
}
tick = setInterval(function () {
- sock.send('tick');
+ sock.send(JSON.stringify({'route': 'getUserPosition', 'tick': new Date().getTime()}));
}, 3000)
}
}
diff --git a/test.php b/test.php
index 856a20da..ff413e38 100644
--- a/test.php
+++ b/test.php
@@ -7,8 +7,8 @@ use Snowflake\Application;
require_once __DIR__ . '/vendor/autoload.php';
$config = array_merge(
- require_once __DIR__ . '/system/Process/config.php',
- require_once __DIR__ . '/http-server/config.php'
+ require_once __DIR__ . '/System/Process/config.php',
+ require_once __DIR__ . '/HttpServer/config.php'
);
$application = new Application($config);