diff --git a/sdk/composer.json b/composer.json similarity index 69% rename from sdk/composer.json rename to composer.json index 89e5d7f..672da3d 100644 --- a/sdk/composer.json +++ b/composer.json @@ -1,4 +1,13 @@ { + "name": "shulidata/easyaliapy", + "description": "支付宝SDK", + "keywords": [ + "alipay", + "easyaliapy", + "alipay-sdk", + "sdk" + ], + "license": "MIT", "require": { "php": ">=7.0", "ext-fileinfo": "*", @@ -12,7 +21,7 @@ }, "autoload": { "psr-4": { - "EasyAlipay\\": "sdk/src/" + "EasyAlipay\\": "src/" } }, "autoload-dev": { diff --git a/sdk/README.md b/sdk/README.md deleted file mode 100755 index 257ec0b..0000000 --- a/sdk/README.md +++ /dev/null @@ -1,4 +0,0 @@ -1、安装PHP7以上版本 -2、安装composer:https://getcomposer.org/ -3、安装项目依赖:composer install 在sdk目录下生成依赖的vendor目录文件 -4、运行sdk/tests/test.php文件,可以获取沙箱环境下一笔交易查询结果 diff --git a/sdk/src/Base/Application.php b/src/Base/Application.php similarity index 100% rename from sdk/src/Base/Application.php rename to src/Base/Application.php diff --git a/sdk/src/Base/Model/AlipaySystemOauthTokenRequest.php b/src/Base/Model/AlipaySystemOauthTokenRequest.php similarity index 100% rename from sdk/src/Base/Model/AlipaySystemOauthTokenRequest.php rename to src/Base/Model/AlipaySystemOauthTokenRequest.php diff --git a/sdk/src/Base/Oauth/Client.php b/src/Base/Oauth/Client.php similarity index 100% rename from sdk/src/Base/Oauth/Client.php rename to src/Base/Oauth/Client.php diff --git a/sdk/src/Base/Oauth/ServiceProvider.php b/src/Base/Oauth/ServiceProvider.php similarity index 100% rename from sdk/src/Base/Oauth/ServiceProvider.php rename to src/Base/Oauth/ServiceProvider.php diff --git a/sdk/src/Factory.php b/src/Factory.php similarity index 100% rename from sdk/src/Factory.php rename to src/Factory.php diff --git a/sdk/src/Kernel/AopClient.php b/src/Kernel/AopClient.php similarity index 100% rename from sdk/src/Kernel/AopClient.php rename to src/Kernel/AopClient.php diff --git a/sdk/src/Kernel/AopRequest.php b/src/Kernel/AopRequest.php similarity index 100% rename from sdk/src/Kernel/AopRequest.php rename to src/Kernel/AopRequest.php diff --git a/sdk/src/Kernel/Config.php b/src/Kernel/Config.php similarity index 100% rename from sdk/src/Kernel/Config.php rename to src/Kernel/Config.php diff --git a/sdk/src/Kernel/Providers/ConfigServiceProvider.php b/src/Kernel/Providers/ConfigServiceProvider.php similarity index 100% rename from sdk/src/Kernel/Providers/ConfigServiceProvider.php rename to src/Kernel/Providers/ConfigServiceProvider.php diff --git a/sdk/src/Kernel/ServiceContainer.php b/src/Kernel/ServiceContainer.php similarity index 100% rename from sdk/src/Kernel/ServiceContainer.php rename to src/Kernel/ServiceContainer.php diff --git a/sdk/src/Kernel/SignData.php b/src/Kernel/SignData.php similarity index 100% rename from sdk/src/Kernel/SignData.php rename to src/Kernel/SignData.php diff --git a/sdk/src/Kernel/Support/Str.php b/src/Kernel/Support/Str.php similarity index 100% rename from sdk/src/Kernel/Support/Str.php rename to src/Kernel/Support/Str.php diff --git a/sdk/src/Kernel/Traits/HasHttpRequests.php b/src/Kernel/Traits/HasHttpRequests.php similarity index 100% rename from sdk/src/Kernel/Traits/HasHttpRequests.php rename to src/Kernel/Traits/HasHttpRequests.php diff --git a/sdk/src/Marketing/Application.php b/src/Marketing/Application.php similarity index 100% rename from sdk/src/Marketing/Application.php rename to src/Marketing/Application.php diff --git a/sdk/src/Marketing/Model/AlipayPassInstanceAddContentBuilder.php b/src/Marketing/Model/AlipayPassInstanceAddContentBuilder.php similarity index 100% rename from sdk/src/Marketing/Model/AlipayPassInstanceAddContentBuilder.php rename to src/Marketing/Model/AlipayPassInstanceAddContentBuilder.php diff --git a/sdk/src/Marketing/Model/AlipayPassInstanceUpdateContentBuilder.php b/src/Marketing/Model/AlipayPassInstanceUpdateContentBuilder.php similarity index 100% rename from sdk/src/Marketing/Model/AlipayPassInstanceUpdateContentBuilder.php rename to src/Marketing/Model/AlipayPassInstanceUpdateContentBuilder.php diff --git a/sdk/src/Marketing/Model/AlipayPassTemplateAddContentBuilder.php b/src/Marketing/Model/AlipayPassTemplateAddContentBuilder.php similarity index 100% rename from sdk/src/Marketing/Model/AlipayPassTemplateAddContentBuilder.php rename to src/Marketing/Model/AlipayPassTemplateAddContentBuilder.php diff --git a/sdk/src/Marketing/Model/AlipayPassTemplateUpdateContentBuilder.php b/src/Marketing/Model/AlipayPassTemplateUpdateContentBuilder.php similarity index 100% rename from sdk/src/Marketing/Model/AlipayPassTemplateUpdateContentBuilder.php rename to src/Marketing/Model/AlipayPassTemplateUpdateContentBuilder.php diff --git a/sdk/src/Marketing/Pass/Client.php b/src/Marketing/Pass/Client.php similarity index 100% rename from sdk/src/Marketing/Pass/Client.php rename to src/Marketing/Pass/Client.php diff --git a/sdk/src/Marketing/Pass/ServiceProvider.php b/src/Marketing/Pass/ServiceProvider.php similarity index 100% rename from sdk/src/Marketing/Pass/ServiceProvider.php rename to src/Marketing/Pass/ServiceProvider.php diff --git a/sdk/src/Mini/Application.php b/src/Mini/Application.php similarity index 100% rename from sdk/src/Mini/Application.php rename to src/Mini/Application.php diff --git a/sdk/src/Mini/Identification/Client.php b/src/Mini/Identification/Client.php similarity index 100% rename from sdk/src/Mini/Identification/Client.php rename to src/Mini/Identification/Client.php diff --git a/sdk/src/Mini/Identification/ServiceProvider.php b/src/Mini/Identification/ServiceProvider.php similarity index 100% rename from sdk/src/Mini/Identification/ServiceProvider.php rename to src/Mini/Identification/ServiceProvider.php diff --git a/sdk/src/Mini/Model/AlipayOpenAppMiniTemplatemessageSendContentBuilder.php b/src/Mini/Model/AlipayOpenAppMiniTemplatemessageSendContentBuilder.php similarity index 100% rename from sdk/src/Mini/Model/AlipayOpenAppMiniTemplatemessageSendContentBuilder.php rename to src/Mini/Model/AlipayOpenAppMiniTemplatemessageSendContentBuilder.php diff --git a/sdk/src/Mini/Model/AlipayOpenAppQrcodeCreateContentBuilder.php b/src/Mini/Model/AlipayOpenAppQrcodeCreateContentBuilder.php similarity index 100% rename from sdk/src/Mini/Model/AlipayOpenAppQrcodeCreateContentBuilder.php rename to src/Mini/Model/AlipayOpenAppQrcodeCreateContentBuilder.php diff --git a/sdk/src/Mini/Model/AlipaySecurityRiskContentDetectContentBuilder.php b/src/Mini/Model/AlipaySecurityRiskContentDetectContentBuilder.php similarity index 100% rename from sdk/src/Mini/Model/AlipaySecurityRiskContentDetectContentBuilder.php rename to src/Mini/Model/AlipaySecurityRiskContentDetectContentBuilder.php diff --git a/sdk/src/Mini/Model/ZolozIdentificationCustomerCertifyzhubQueryContentBuilder.php b/src/Mini/Model/ZolozIdentificationCustomerCertifyzhubQueryContentBuilder.php similarity index 100% rename from sdk/src/Mini/Model/ZolozIdentificationCustomerCertifyzhubQueryContentBuilder.php rename to src/Mini/Model/ZolozIdentificationCustomerCertifyzhubQueryContentBuilder.php diff --git a/sdk/src/Mini/Model/ZolozIdentificationUserWebQueryContentBuilder.php b/src/Mini/Model/ZolozIdentificationUserWebQueryContentBuilder.php similarity index 100% rename from sdk/src/Mini/Model/ZolozIdentificationUserWebQueryContentBuilder.php rename to src/Mini/Model/ZolozIdentificationUserWebQueryContentBuilder.php diff --git a/sdk/src/Mini/Qrcode/Client.php b/src/Mini/Qrcode/Client.php similarity index 100% rename from sdk/src/Mini/Qrcode/Client.php rename to src/Mini/Qrcode/Client.php diff --git a/sdk/src/Mini/Qrcode/ServiceProvider.php b/src/Mini/Qrcode/ServiceProvider.php similarity index 100% rename from sdk/src/Mini/Qrcode/ServiceProvider.php rename to src/Mini/Qrcode/ServiceProvider.php diff --git a/sdk/src/Mini/Risk/Client.php b/src/Mini/Risk/Client.php similarity index 100% rename from sdk/src/Mini/Risk/Client.php rename to src/Mini/Risk/Client.php diff --git a/sdk/src/Mini/Risk/ServiceProvider.php b/src/Mini/Risk/ServiceProvider.php similarity index 100% rename from sdk/src/Mini/Risk/ServiceProvider.php rename to src/Mini/Risk/ServiceProvider.php diff --git a/sdk/src/Mini/TemplateMessage/Client.php b/src/Mini/TemplateMessage/Client.php similarity index 100% rename from sdk/src/Mini/TemplateMessage/Client.php rename to src/Mini/TemplateMessage/Client.php diff --git a/sdk/src/Mini/TemplateMessage/ServiceProvider.php b/src/Mini/TemplateMessage/ServiceProvider.php similarity index 100% rename from sdk/src/Mini/TemplateMessage/ServiceProvider.php rename to src/Mini/TemplateMessage/ServiceProvider.php diff --git a/sdk/src/OpenPublic/Application.php b/src/OpenPublic/Application.php similarity index 100% rename from sdk/src/OpenPublic/Application.php rename to src/OpenPublic/Application.php diff --git a/sdk/src/OpenPublic/Message/Client.php b/src/OpenPublic/Message/Client.php similarity index 100% rename from sdk/src/OpenPublic/Message/Client.php rename to src/OpenPublic/Message/Client.php diff --git a/sdk/src/OpenPublic/Message/ServiceProvider.php b/src/OpenPublic/Message/ServiceProvider.php similarity index 100% rename from sdk/src/OpenPublic/Message/ServiceProvider.php rename to src/OpenPublic/Message/ServiceProvider.php diff --git a/sdk/src/OpenPublic/Model/AlipayOpenPublicLifeMsgRecallContentBuilder.php b/src/OpenPublic/Model/AlipayOpenPublicLifeMsgRecallContentBuilder.php similarity index 100% rename from sdk/src/OpenPublic/Model/AlipayOpenPublicLifeMsgRecallContentBuilder.php rename to src/OpenPublic/Model/AlipayOpenPublicLifeMsgRecallContentBuilder.php diff --git a/sdk/src/OpenPublic/Model/AlipayOpenPublicMessageContentCreateContentBuilder.php b/src/OpenPublic/Model/AlipayOpenPublicMessageContentCreateContentBuilder.php similarity index 100% rename from sdk/src/OpenPublic/Model/AlipayOpenPublicMessageContentCreateContentBuilder.php rename to src/OpenPublic/Model/AlipayOpenPublicMessageContentCreateContentBuilder.php diff --git a/sdk/src/OpenPublic/Model/AlipayOpenPublicMessageContentModifyContentBuilder.php b/src/OpenPublic/Model/AlipayOpenPublicMessageContentModifyContentBuilder.php similarity index 100% rename from sdk/src/OpenPublic/Model/AlipayOpenPublicMessageContentModifyContentBuilder.php rename to src/OpenPublic/Model/AlipayOpenPublicMessageContentModifyContentBuilder.php diff --git a/sdk/src/OpenPublic/Model/AlipayOpenPublicMessageQueryContentBuilder.php b/src/OpenPublic/Model/AlipayOpenPublicMessageQueryContentBuilder.php similarity index 100% rename from sdk/src/OpenPublic/Model/AlipayOpenPublicMessageQueryContentBuilder.php rename to src/OpenPublic/Model/AlipayOpenPublicMessageQueryContentBuilder.php diff --git a/sdk/src/OpenPublic/Model/AlipayOpenPublicMessageSingleSendContentBuilder.php b/src/OpenPublic/Model/AlipayOpenPublicMessageSingleSendContentBuilder.php similarity index 100% rename from sdk/src/OpenPublic/Model/AlipayOpenPublicMessageSingleSendContentBuilder.php rename to src/OpenPublic/Model/AlipayOpenPublicMessageSingleSendContentBuilder.php diff --git a/sdk/src/OpenPublic/Model/AlipayOpenPublicMessageTotalSendContentBuilder.php b/src/OpenPublic/Model/AlipayOpenPublicMessageTotalSendContentBuilder.php similarity index 100% rename from sdk/src/OpenPublic/Model/AlipayOpenPublicMessageTotalSendContentBuilder.php rename to src/OpenPublic/Model/AlipayOpenPublicMessageTotalSendContentBuilder.php diff --git a/sdk/src/OpenPublic/Model/AlipayOpenPublicTemplateMessageGetContentBuilder.php b/src/OpenPublic/Model/AlipayOpenPublicTemplateMessageGetContentBuilder.php similarity index 100% rename from sdk/src/OpenPublic/Model/AlipayOpenPublicTemplateMessageGetContentBuilder.php rename to src/OpenPublic/Model/AlipayOpenPublicTemplateMessageGetContentBuilder.php diff --git a/sdk/src/OpenPublic/Model/AlipayOpenPublicTemplateMessageIndustryModifyContentBuilder.php b/src/OpenPublic/Model/AlipayOpenPublicTemplateMessageIndustryModifyContentBuilder.php similarity index 100% rename from sdk/src/OpenPublic/Model/AlipayOpenPublicTemplateMessageIndustryModifyContentBuilder.php rename to src/OpenPublic/Model/AlipayOpenPublicTemplateMessageIndustryModifyContentBuilder.php diff --git a/sdk/src/OpenPublic/Template/Client.php b/src/OpenPublic/Template/Client.php similarity index 100% rename from sdk/src/OpenPublic/Template/Client.php rename to src/OpenPublic/Template/Client.php diff --git a/sdk/src/OpenPublic/Template/ServiceProvider.php b/src/OpenPublic/Template/ServiceProvider.php similarity index 100% rename from sdk/src/OpenPublic/Template/ServiceProvider.php rename to src/OpenPublic/Template/ServiceProvider.php diff --git a/sdk/src/Payment/Application.php b/src/Payment/Application.php similarity index 100% rename from sdk/src/Payment/Application.php rename to src/Payment/Application.php diff --git a/sdk/src/Payment/Cancel/Client.php b/src/Payment/Cancel/Client.php similarity index 100% rename from sdk/src/Payment/Cancel/Client.php rename to src/Payment/Cancel/Client.php diff --git a/sdk/src/Payment/Cancel/ServiceProvider.php b/src/Payment/Cancel/ServiceProvider.php similarity index 100% rename from sdk/src/Payment/Cancel/ServiceProvider.php rename to src/Payment/Cancel/ServiceProvider.php diff --git a/sdk/src/Payment/Close/Client.php b/src/Payment/Close/Client.php similarity index 100% rename from sdk/src/Payment/Close/Client.php rename to src/Payment/Close/Client.php diff --git a/sdk/src/Payment/Close/ServiceProvider.php b/src/Payment/Close/ServiceProvider.php similarity index 100% rename from sdk/src/Payment/Close/ServiceProvider.php rename to src/Payment/Close/ServiceProvider.php diff --git a/sdk/src/Payment/Create/Client.php b/src/Payment/Create/Client.php similarity index 100% rename from sdk/src/Payment/Create/Client.php rename to src/Payment/Create/Client.php diff --git a/sdk/src/Payment/Create/ServiceProvider.php b/src/Payment/Create/ServiceProvider.php similarity index 100% rename from sdk/src/Payment/Create/ServiceProvider.php rename to src/Payment/Create/ServiceProvider.php diff --git a/sdk/src/Payment/Model/AlipayTradeCancelContentBuilder.php b/src/Payment/Model/AlipayTradeCancelContentBuilder.php similarity index 100% rename from sdk/src/Payment/Model/AlipayTradeCancelContentBuilder.php rename to src/Payment/Model/AlipayTradeCancelContentBuilder.php diff --git a/sdk/src/Payment/Model/AlipayTradeCloseContentBuilder.php b/src/Payment/Model/AlipayTradeCloseContentBuilder.php similarity index 100% rename from sdk/src/Payment/Model/AlipayTradeCloseContentBuilder.php rename to src/Payment/Model/AlipayTradeCloseContentBuilder.php diff --git a/sdk/src/Payment/Model/AlipayTradeCreateContentBuilder.php b/src/Payment/Model/AlipayTradeCreateContentBuilder.php similarity index 100% rename from sdk/src/Payment/Model/AlipayTradeCreateContentBuilder.php rename to src/Payment/Model/AlipayTradeCreateContentBuilder.php diff --git a/sdk/src/Payment/Model/AlipayTradePayContentBuilder.php b/src/Payment/Model/AlipayTradePayContentBuilder.php similarity index 100% rename from sdk/src/Payment/Model/AlipayTradePayContentBuilder.php rename to src/Payment/Model/AlipayTradePayContentBuilder.php diff --git a/sdk/src/Payment/Model/AlipayTradeQueryContentBuilder.php b/src/Payment/Model/AlipayTradeQueryContentBuilder.php similarity index 100% rename from sdk/src/Payment/Model/AlipayTradeQueryContentBuilder.php rename to src/Payment/Model/AlipayTradeQueryContentBuilder.php diff --git a/sdk/src/Payment/Model/AlipayTradeRefundContentBuilder.php b/src/Payment/Model/AlipayTradeRefundContentBuilder.php similarity index 100% rename from sdk/src/Payment/Model/AlipayTradeRefundContentBuilder.php rename to src/Payment/Model/AlipayTradeRefundContentBuilder.php diff --git a/sdk/src/Payment/Pay/Client.php b/src/Payment/Pay/Client.php similarity index 100% rename from sdk/src/Payment/Pay/Client.php rename to src/Payment/Pay/Client.php diff --git a/sdk/src/Payment/Pay/ServiceProvider.php b/src/Payment/Pay/ServiceProvider.php similarity index 100% rename from sdk/src/Payment/Pay/ServiceProvider.php rename to src/Payment/Pay/ServiceProvider.php diff --git a/sdk/src/Payment/Query/Client.php b/src/Payment/Query/Client.php similarity index 100% rename from sdk/src/Payment/Query/Client.php rename to src/Payment/Query/Client.php diff --git a/sdk/src/Payment/Query/ServiceProvider.php b/src/Payment/Query/ServiceProvider.php similarity index 100% rename from sdk/src/Payment/Query/ServiceProvider.php rename to src/Payment/Query/ServiceProvider.php diff --git a/sdk/src/Payment/Refund/Client.php b/src/Payment/Refund/Client.php similarity index 100% rename from sdk/src/Payment/Refund/Client.php rename to src/Payment/Refund/Client.php diff --git a/sdk/src/Payment/Refund/ServiceProvider.php b/src/Payment/Refund/ServiceProvider.php similarity index 100% rename from sdk/src/Payment/Refund/ServiceProvider.php rename to src/Payment/Refund/ServiceProvider.php diff --git a/sdk/tests/test.php b/tests/test.php similarity index 100% rename from sdk/tests/test.php rename to tests/test.php