Giter Club home page Giter Club logo

myphp's Introduction

myphp

30秒在Vercel构建自己的无服务器php环境并实现国内直连访问。

操作步骤:

  • 准备好域名
  • forks本项目
  • 为域名添加一条CNAME到cname-china.vercel-dns.com
  • 访问 https://vercel.com 使用Github账号登陆,选择myphp并构建。
  • 编辑Vercel网站项目的域名设置,改为你的域名保存,等待生效。
  • 访问你的域名。

最后你可以:删除README.md,删除或编辑index.html。将自己Github仓库的myphp项目设置为私有。

说明:

  • 这只是一个简单的示例,每次编辑或上传新的php文件到Github仓库的api目录下都会自动构建。构建完成后访问你的域名即可。

主要目录文件结构:

myphp
├── api
│   └── index.php
└── vercel.json

php版本:

默认部署的php版本为8.2.X。编辑vercel.json文件可构建不同版本的php环境。

官方仓库:

myphp's People

Contributors

fanmingming avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.