定制 catpaw/web-starter 二次开发

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

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

catpaw/web-starter

最新稳定版本:4.5.0

Composer 安装命令:

composer create-project catpaw/web-starter

包简介

A php CatPaw starter template

README 文档

README

Install dependencies with

make install

Note

If you don't have Bun in your path, this step will install it for you.

Note

You can run make clean at any time in order to remove created directories and files.
Running make clean will not uninstall Bun.

Watch Mode

Enter Watch Mode with

make watch

This mode will run the Vite server and your server with XDebug enabled.
Each time your make any change to your server source code, the server will restart automatically.

Note

By default "server source code" means the "src/server" directory.
You can change this configuration in your make file.

Note

See section Debugging with VSCode

Development Mode

Enter Development Mode with

make dev

This mode will build the Svelte application and run your server with XDebug enabled.
Unlike Watch Mode, your server will not restart when you make changes to your code.
This mode is useful for quick debugging.

Production Mode

Enter Production Mode with

make start

This will build your client bundle and run your server without any debuggers or any other extra overhead.

Build

It is possible, but no required, to bundle your program into a single .phar file with

make build

The building process can be configured inside the build.ini file.

After building your application, you can simply run it using

php out/app.phar

The resulting .phar will include the following directories

  • src/server
  • vendor
  • statics
  • .build-cache (created at build time)

It's a portable bundle, you just need to make sure php is installed on whatever machine you're trying to run it on.

Debugging with VSCode

Install xdebug

apt install php8.3-xdebug

Configure your .vscode/launch.json

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Listen",
      "type": "php",
      "request": "launch",
      "port": 9003
    }
  ]
}

Start debugging.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固