catpaw / web-starter
A php CatPaw starter template
Installs: 168
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:JavaScript
Type:project
Requires
- php: ^8.3
- ext-mbstring: *
- ext-openssl: *
- ext-pcntl: *
- ext-zlib: *
- catpaw/catpaw: ^4.3
- smarty/smarty: ^5.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.8
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^9
- dev-master
- 4.3.0
- 4.2.0
- 4.1.36
- 4.1.35
- 4.1.34
- 4.1.33
- 4.1.32
- 4.1.31
- 4.1.30
- 4.1.29
- 4.1.28
- 4.1.27
- 4.1.26
- 4.1.25
- 4.1.24
- 4.1.23
- 4.1.22
- 4.1.21
- 4.1.20
- 4.1.19
- 4.1.18
- 4.1.17
- 4.1.16
- 4.1.15
- 4.1.14
- 4.1.13
- 4.1.12
- 4.1.11
- 4.1.10
- 4.1.9
- 4.1.8
- 4.1.7
- 4.1.6
- 4.1.5
- 4.1.4
- 4.1.3
- 4.1.2
- 4.1.1
- 4.1.0
- 4.0.5
- 4.0.4
- 4.0.3
- 4.0.2
- 4.0.1
- 4.0.0
- 3.8.1
- 3.8.0
- 3.7.7
- 3.7.3
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.1
- 3.2.2
- 3.2.1
- 3.2.0
- 3.0.2
- 3.0.1
- 3.0.0
- 2.1.5
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.13
- 2.0.12
- 2.0.11
- 2.0.10
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.0.17
- 1.0.16
- 1.0.15
- 1.0.14
- 1.0.13
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
This package is auto-updated.
Last update: 2025-02-01 23:05:29 UTC
README
First off, configure your project.
make configure
Note
If you don't have Bun installed in your path, this step will install it for you.
Then load your dependencies.
make load
Note
You can run make clean
at any time in order to clean created directories, downloaded dependencies and so on.
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 devkwm file.
Note
See section Debugging with VSCode
Development Mode
Enter Watch 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.