定制 kuick/project 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kuick/project

最新稳定版本:v2.6.0.1

Composer 安装命令:

composer require kuick/project

包简介

README 文档

README

Latest Version PHP Total Downloads CI codecov Software License

Kuick project is an example application based on Kuick Framework

Key features

  1. Ready to install package with sample controllers and commands
  2. Dockerfile with targets to test, run and deploy the application

Basic usage

  1. With PHP and Composer run:
composer create-project kuick/project .

Alternatively you can just clone this repository.

  1. Make sure to have Docker and Make installed

  2. Use make to start the dev server

make up

Alternatively you can run the docker commands from the Makefile yourself:

docker build --target=dev-server --tag=kuick-project .
docker run --rm --name kuick-project -v ./:/var/www/html kuick-project composer install
docker run --rm --name kuick-project -v ./:/var/www/html -p 8080:80 -e APP_ENV=dev kuick-project
  1. Now you have a local dev server running on 8080 port The source code is directly mounted as a volume into the container, so changes are "live".

Docker Demo

Ready to deploy images you can find on Dockerhub

  1. Run using Docker
docker run -p 8080:80 kuickphp/kuick

Now you can try it out by opening http://localhost:8080/

  1. Examine those sample routes:
  • Homepage:
curl http://localhost:8080/
  • Hello/ping:
curl http://localhost:8080/hello/John
  1. Container runtime configuration:
  • dev mode enabled
  • custom app name
  • custom localization (charset, locale, timezone)
  • DEBUG log with microtime
  • custom OPS API token
docker run -p 8080:80 \
    -e APP_ENV=dev \
    -e APP_NAME=ExampleApp \
    -e APP_CHARSET=UTF-8 \
    -e APP_LOCALE=pl_PL.utf-8 \
    -e APP_TIMEZONE="Europe/Warsaw" \
    -e APP_LOG_USEMICROSECONDS=1 \
    -e APP_LOG_LEVEL=DEBUG \
    -e API_SECURITY_OPS_GUARD_TOKEN=secret-token \
    kuickphp/kuick:alpine

With KUICK_OPS_GUARD_TOKEN defined, you can reach /api/ops endpoint:

curl -H "Authorization: Bearer secret-token" http://localhost:8080/api/ops

统计信息

  • 总下载量: 459
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-01-24