Ver Fonte

feat(lakala): 初始化拉卡拉支付扩展

runphp há 4 meses atrás
commit
2768bf8967
7 ficheiros alterados com 103 adições e 0 exclusões
  1. 31 0
      .gitignore
  2. 35 0
      composer.json
  3. 5 0
      config.php
  4. 6 0
      info.php
  5. 4 0
      route/admin.php
  6. 5 0
      route/api.php
  7. 17 0
      src/Extension.php

+ 31 - 0
.gitignore

@@ -0,0 +1,31 @@
+# Composer
+/vendor/
+/composer.phar
+/composer.lock
+
+# IDE
+/.idea/
+/.vscode/
+
+# Build
+/node_modules/
+
+# Logs
+/logs/*.log
+
+# Runtime
+/runtime/
+
+# Environment
+.env
+.env.local
+.env.*.local
+
+# OS generated files
+.DS_Store
+.DS_Store?
+._*
+.Spotlight-V100
+.Trashes
+ehthumbs.db
+Thumbs.db

+ 35 - 0
composer.json

@@ -0,0 +1,35 @@
+{
+  "name": "six-shop/lakala",
+  "description": "SixShop Lakala Payment Extension",
+  "type": "sixshop-extension",
+  "keywords": [
+    "sixshop",
+    "thinkphp",
+    "lakala",
+    "payment"
+  ],
+  "require": {
+    "php": ">=8.3",
+    "six-shop/core": ">=0.6 <1.0"
+  },
+  "authors": [
+    {
+      "name": "hui he",
+      "email": "runphp@qq.com"
+    }
+  ],
+  "license": "MIT",
+  "autoload": {
+    "psr-4": {
+      "SixShop\\Lakala\\": "src"
+    }
+  },
+  "extra": {
+    "sixshop": {
+      "id": "lakala",
+      "class": "SixShop\\Lakala\\Extension"
+    }
+  },
+  "minimum-stability": "dev",
+  "prefer-stable": true
+}

+ 5 - 0
config.php

@@ -0,0 +1,5 @@
+<?php
+// Lakala Payment Extension Configuration
+return [
+    // Add your configuration here
+];

+ 6 - 0
info.php

@@ -0,0 +1,6 @@
+<?php
+// Lakala Payment Extension Information
+return [
+    'id' => 'lakala',
+    'name' => 'Lakala Payment',
+];

+ 4 - 0
route/admin.php

@@ -0,0 +1,4 @@
+<?php
+declare(strict_types=1);
+
+use think\facade\Route;

+ 5 - 0
route/api.php

@@ -0,0 +1,5 @@
+<?php
+declare(strict_types=1);
+
+use think\facade\Route;
+

+ 17 - 0
src/Extension.php

@@ -0,0 +1,17 @@
+<?php
+declare(strict_types=1);
+
+namespace SixShop\Lakala;
+
+use SixShop\Core\ExtensionAbstract;
+
+/**
+ * Lakala Payment Extension
+ */
+class Extension extends ExtensionAbstract
+{
+    protected function getBaseDir(): string
+    {
+        return dirname(__DIR__);
+    }
+}