nguyenanhung/codeigniter3-vercel-skeleton
Composer 安装命令:
composer create-project nguyenanhung/codeigniter3-vercel-skeleton
包简介
CodeIgniter v3 Vercel Skeleton Application
关键字:
README 文档
README
CodeIgniter v3 Framework - Skeleton Vercel Application
This is the package nguyenanhung/codeigniter3-skeleton, customized, packaged, and configured to be suitable for
deployment on the Serverless Vercel application.
In this package, the main modifications are related to configuration to make it suitable for deployment. There isn't
much difference compared to the codeigniter3-skeleton package.
Vercel Configure
{
"version": 2,
"framework": null,
"functions": {
"api/**/*.php": {
"runtime": "vercel-php@0.7.3"
}
},
"outputDirectory": "public",
"routes": [
{
"src": "/assets/(css|favicon|images|js)/(.*)",
"dest": "assets/$1/$2"
},
{
"src": "/(.*)",
"dest": "/api/index.php?/$1"
}
]
}
Vercel Node.js Version
💯 Vercel PHP Runtime Versions
vercel-php@0.7.3- Node autodetect / PHP 8.3.x (https://example-php-8-3.vercel.app)vercel-php@0.6.2- Node autodetect / PHP 8.2.x (https://example-php-8-2.vercel.app)vercel-php@0.5.5- Node autodetect / PHP 8.1.x (https://example-php-8-1.vercel.app)vercel-php@0.4.4- Node autodetect / PHP 8.0.x (https://example-php-8-0.vercel.app)vercel-php@0.3.6- Node autodetect / PHP 7.4.x (https://example-php-7-4.vercel.app)
Install
Run the following command to install the nguyenanhung/codeigniter3-vercel-skeleton application and deploy a new
project:
composer create-project nguyenanhung/codeigniter3-vercel-skeleton [my-app-name]
Replace [my-app-name] with the name of your new project directory, for example, my-website:
composer create-project nguyenanhung/codeigniter3-vercel-skeleton my-website
Start Application with Native PHP
Start PHP Server:
composer start
Open Service in URL
http://localhost:8080/
Start Application on Docker
Quickly deploy the application with a pre-built Docker container:
Build the Docker container:
docker-compose build
Start the application on Docker:
docker-compose up -d
Add url to hosts file
sudo vi /etc/hosts
Add the following line:
127.0.0.1 app.codeigniter3.io
Open Service in URL
http://app.codeigniter3.io/
Deploying this package on Vercel with full compatibility
First, make sure you have the Vercel CLI installed. If you haven't already, you can install it using npm (Node.js package manager):
npm install -g vercel
- Navigate to your project directory containing the
nguyenanhung/codeigniter3-vercel-skeletonapplication. - Now, you need to log in to your Vercel account if you haven't already. Run the following command and follow the prompts:
vercel login
Once logged in, you can deploy your project using the Vercel CLI. Run the following command:
vercel --prod
This command will deploy your project to Vercel with production settings. Vercel will provide you with a unique URL for your deployed application.
Visit the provided URL in your web browser to access your deployed CodeIgniter v3 application on Vercel.
That's it! Your application should now be deployed on Vercel with full compatibility. If you encounter any issues or need further assistance, feel free to ask.
Screenshot Page
Original Standard Version
I have released a packaged distribution ready for deployment on On-Premise Servers or Cloud servers like AWS, GCP here: https://github.com/nguyenanhung/codeigniter3-skeleton
Terms & Disclaimer
This skeleton is publicly available as open source, and anyone can use it for their own purposes under
the GNU GENERAL PUBLIC LICENSE v3 or later.
I am not responsible for any specific use of this source code.
Contact
If you have any questions related to the use of this source code, please contact me through the following information:
| Name | GitHub | ||
|---|---|---|---|
| Hung Nguyen | dev@nguyenanhung.com | @nguyenanhung | @nguyenanhung |
nguyenanhung/codeigniter3-vercel-skeleton 适用场景与选型建议
nguyenanhung/codeigniter3-vercel-skeleton 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 29 次下载、GitHub Stars 达 7, 最近一次更新时间为 2024 年 01 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「library」 「codeigniter」 「helper」 「Skeleton」 「codeigniter-library」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 nguyenanhung/codeigniter3-vercel-skeleton 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 nguyenanhung/codeigniter3-vercel-skeleton 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 nguyenanhung/codeigniter3-vercel-skeleton 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
The CodeIgniter Redis package
Inbox pattern process implementation for your Laravel Applications
Core library that defines common interfaces used by the rest of the intahwebz..
Amqp classes
Provides command to manage a web library directory
统计信息
- 总下载量: 29
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 31
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2024-01-22