catpaw / starter
A php CatPaw starter template
Installs: 61
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^8.2
- ext-mbstring: *
- ext-openssl: *
- ext-pcntl: *
- ext-zlib: *
- catpaw/catpaw: ^4.3
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.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.3
- 4.0.2
- 4.0.1
- 4.0.0
- 3.8.2
- 3.8.1
- 3.8.0
- 3.7.7
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.1
- 3.2.1
- 3.2.0
- 3.0.1
- 3.0.0
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 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.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:28 UTC
README
You can run your program in one of three modes.
Development Mode
Enter Development Mode with
make dev
This mode will run your program with XDebug enabled.
Note
See section Debugging with VSCode
Watch Mode
Enter Watch Mode with
make watch
This mode will run your program with XDebug enabled and it will restart your program every time you make a change to your source code.
Note
See section Debugging with VSCode
Note
By default "source code" means the "src" directory.
You can change this configuration in your makefile, see section watch
, parameter resources
.
Production Mode
Enter Production Mode with
make start
It's just as it sounds, run your program directly.
No debuggers, not 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
vendor
.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.