This is a blank slate repository that sets up the bare minimum required to start building any kind of PHP application. It is primarily used as the base of projects published on pretzelhands.com. Feel free to clone this as a starting point to code along
- PHP 7.4+
- Composer
- beyondcode/expose
To get started, install the dependencies via Composer:
$ composer install
Then rename .env.example
to .env
, to enable loading of environment values.
Afterwards you can get an instantly shareable public link to your project by
running the following:
$ composer run dev
Alternatively you can also look at your project at localhost:8080
. For
more details on how Expose works, refer to the documentation.
- Pre-configured PSR-4 autoloading
dev
Composer command to get a public link usable for webhooks etc.env
file loading and a helper function to get env values
If you have any troubles setting up this project with any information you can provide and I'll help you get it running
If you'd like to see more repositories and tutorials like this, consider following me on Twitter or subscribing to my newsletter.