ilias/choir
最新稳定版本:1.1.1
Composer 安装命令:
composer create-project ilias/choir
包简介
A PHP HTTP requests handler template
README 文档
README
This GitHub repository provides a comprehensive Nginx server setup optimized for PHP applications, specifically tailored for deploying web APIs. It includes a ready-to-use template designed to streamline the development and deployment process on Railway platforms. This setup is ideal for developers looking to quickly and efficiently launch PHP-based APIs with Nginx, ensuring compatibility and performance on Railway deployments.
Informações traduzidas para português do Brasil em ./docs/README_ptBR.md
Dependencies
This template has some dependencies that need to be installed on your current workspace:
- Docker: Mainly used for local testing
- PHP 8.0: The current used programming language and it's minimum version
- Composer: PHP package manager
1st Step: Domain name
In your local host machine add the following lines to your /etc/hosts file in order to find the application.
127.0.0.1 choir.api.com
2nd Step: Preparing the environment
Build your custom Docker Image running ./docker/build.sh
Exceptions:
- In case you are having some permission troubles, use
sudoto execute the fallowing files
3rd Step: Running Docker
docker-compose up: Standalone version
docker-compose up -d: Daemon version
Exceptions:
- If the daemon is not allawing you to use the
0.0.0.0:80port, change thedocker-compose.ymlfile to expose the port 81:
expose: - 3000 - 81 ports: - 3000:3000 - 81:81
4th Step: Check your browser
Open http://choir.api.com/ and check the headers on your devtools, and you should see this entry ping: "pong".
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-08-06