承接 kuick/project 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

kuick/project

最新稳定版本:v2.8.4.1

Composer 安装命令:

composer require kuick/project

包简介

README 文档

README

Latest Version PHP Total Downloads CI codecov Software License

A skeleton application built on top of Kuick Framework — get a working PHP app with routing, console commands, DI, and Docker support in minutes.

Features

  • 📦 Ready-to-use project structure with sample controllers and console commands
  • 🐳 Dockerfile with dev-server, test, and production targets
  • 🔒 Guard-based security (e.g. bearer token for /api/ops)
  • 🧪 PHPUnit, PHPStan (level 9), PHPMD, and PSR-12 checks out of the box

Quick Start

Option A — Composer create-project

composer create-project kuick/project my-app
cd my-app

Option B — Clone the repository

git clone https://github.com/milejko/kuick-project.git my-app
cd my-app

Start the dev server (Docker + Make)

make up

The app will be available at http://localhost:8080. Source code is mounted as a volume, so changes are reflected immediately — no rebuild needed.

Manual Docker equivalent:

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

Sample Routes

Method Path Description
GET / Homepage (Hello World)
GET /hello/{name} Greeting with name
GET, POST /ping Ping endpoint
GET /api/ops OPS/health info (requires bearer token in prod)
curl http://localhost:8080/
curl http://localhost:8080/hello/John
curl http://localhost:8080/ping

Docker Demo (pre-built image)

Pull and run the ready-to-go image from Docker Hub:

docker run -p 8080:80 kuickphp/kuick

Runtime configuration via environment variables

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 API_SECURITY_OPS_GUARD_TOKEN set, you can access the OPS endpoint:

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

Development & Testing

composer test:all      # run all checks (PSR-12, PHPStan, PHPMD, PHPUnit)
composer test:phpcs    # PSR-12 code style
composer test:phpstan  # static analysis (level 9)
composer test:phpmd    # mess detector
composer test:phpunit  # unit tests with coverage
composer fix:phpcbf    # auto-fix code style issues

make test              # run the full CI suite inside Docker

License

MIT

统计信息

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

GitHub 信息

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

其他信息

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