cryental/volistx-skeleton
Composer 安装命令:
composer create-project cryental/volistx-skeleton
包简介
Volistx Framework For RESTful API Based on Laravel/Lumen
README 文档
README
Volistx Framework For RESTful API Based on Laravel 11.x
This is a framework skeleton for Volistx API platform using Laravel PHP Framework.
Let's make some awesome thing together!
Requirements
- PHP 8.2 or Above
- All Required Extensions for Laravel 11.x
- Redis PHP Extension
- Swoole or OpenSwoole Extension
- MariaDB 11.1 or Above
- Flare Subscription for Error Monitoring (Optional) (https://flareapp.io/)
Installation
composer create-project --prefer-dist volistx/framework myproject
Usage
-
Copy
.env.exampleto.env. -
Get GeoPoint API key and put it to
.envfile. (Optional, only if you want to use country filter) -
Put Flare key to
.envfile. (Optional, only if you want to use Flare). -
Run following commands:
composer install
php artisan key:generate
php artisan migrate
Do not forget to set a cronjob for production (This is not required if you're using Swoole):
* * * * * php /path/to/artisan schedule:run
Generate an admin access key using this command:
php artisan access-key:generate
Swoole Setup
It uses Laravel Octane. You can use Swoole or OpenSwoole. You can find the installation guide here: https://laravel.com/docs/11.x/octane
Run Swoole using this command:
php artisan octane:start
If you want the Swoole server to run after reboot, add the following line to your crontab:
@reboot php artisan octane:start
For Supervisor, check following configuration:
[program:volistx-octane-worker]
directory=/path/to/
command=php artisan octane:start
numprocs=1
autostart=true
autorestart=true
startretries=3
user=www-data
redirect_stderr=true
stdout_logfile=/var/log/supervisor/%(program_name)s.log
cryental/volistx-skeleton 适用场景与选型建议
cryental/volistx-skeleton 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 38 次下载、GitHub Stars 达 2, 最近一次更新时间为 2021 年 04 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 cryental/volistx-skeleton 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 cryental/volistx-skeleton 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 38
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-04-10