【文件属性】:
文件名称:vercel-php:▲Vercel PHP运行时•vercel-php•now-php•:elephant:+λ=:red_heart:
文件大小:105KB
文件格式:ZIP
更新时间:2021-01-29 18:37:39
php aws lambda runtime now
PHP运行时
用于Vercel平台的 )。
:woman_lifting_weights_2: 它与这些框架和工具一起使用。 在发现更多。
用 :red_heart_selector: 由 ( )• :bird:
:smiling_face_with_sunglasses: 入门
让我们想象一下,您想部署用PHP编写的出色微项目,却又不知道在哪里。 您已经发现很棒,但是对于静态站点而言。 不再! 我想向您介绍您的新朋友vercel-php ,用于Vercel平台PHP运行时。
最简单的示例项目是这个,使用以下项目结构。
project
├── api
│ └── index.php
└── vercel.json
第一个文件api/index.php是我们应用程序的入口点。 它应该放在api文件夹中,这是Vercel的非常标准的位置。
<?php
phpinfo ();
第二个文件vercel.json在这里是纯金。 使用这样的配置和voila设置项目。 就这样。
{
" functions " : {
" api/*.php " : {