diff --git a/composer.json b/composer.json index 3fa3e20..9296358 100644 --- a/composer.json +++ b/composer.json @@ -1,52 +1,53 @@ { - "name": "topthink/think", - "description": "the new thinkphp framework", - "type": "project", - "keywords": [ - "framework", - "thinkphp", - "ORM" - ], - "homepage": "https://www.thinkphp.cn/", - "license": "Apache-2.0", - "authors": [ - { - "name": "liu21st", - "email": "liu21st@gmail.com" - }, - { - "name": "yunwuxin", - "email": "448901948@qq.com" - } - ], - "require": { - "php": ">=8.0.0", - "topthink/framework": "^8.0", - "topthink/think-orm": "^3.0", - "topthink/think-filesystem": "^2.0", - "topthink/think-view": "^2.0", - "cccyun/think-captcha": "^3.0" + "name": "topthink/think", + "description": "the new thinkphp framework", + "type": "project", + "keywords": [ + "framework", + "thinkphp", + "ORM" + ], + "homepage": "https://www.thinkphp.cn/", + "license": "Apache-2.0", + "authors": [ + { + "name": "liu21st", + "email": "liu21st@gmail.com" }, - "require-dev": { - "symfony/var-dumper": "^4.2", - "topthink/think-trace":"^1.0", - "swoole/ide-helper": "^5.1" - }, - "autoload": { - "psr-4": { - "app\\": "app" - }, - "psr-0": { - "": "extend/" - } - }, - "config": { - "preferred-install": "dist" - }, - "scripts": { - "post-autoload-dump": [ - "@php think service:discover", - "@php think vendor:publish" - ] + { + "name": "yunwuxin", + "email": "448901948@qq.com" } + ], + "require": { + "php": ">=8.0.0", + "topthink/framework": "^8.0", + "topthink/think-orm": "^3.0", + "topthink/think-filesystem": "^2.0", + "topthink/think-view": "^2.0", + "cccyun/think-captcha": "^3.0", + "ext-pdo": "*" + }, + "require-dev": { + "symfony/var-dumper": "^4.2", + "topthink/think-trace": "^1.0", + "swoole/ide-helper": "^5.1" + }, + "autoload": { + "psr-4": { + "app\\": "app" + }, + "psr-0": { + "": "extend/" + } + }, + "config": { + "preferred-install": "dist" + }, + "scripts": { + "post-autoload-dump": [ + "@php think service:discover", + "@php think vendor:publish" + ] + } } diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..c8cadfd --- /dev/null +++ b/vercel.json @@ -0,0 +1,15 @@ +{ + "version": 2, + "builds": [ + { + "src": "public/index.php", + "use": "@vercel/php" + } + ], + "routes": [ + { + "src": "/(.*)", + "dest": "public/index.php" + } + ] +}