Migrate to brezel/api 2.x
brezel/api 2.0 brings a lot of underlying changes. Functionally, not much is different, but technically, a lot is new.
We now use PHP 8.4 and Laravel 11 with a bunch of new packages and an optimized and linted codebase.
Migration steps
To update your project to brezel/api 1.0, follow these steps:
- Install PHP 8.4 on your machine
- Copy over the latest project structure (esp. the content of
composer.json
. Keep your name and version if you want, but the rest is needed) from brezel/brezel - Update your project to the latest brezel/api 2.x version.
- For that delete the
vendor
folder and thecomposer.lock
file. - Go into your
composer.json
and remove"@composer check-platform-reqs"
from thepre-update-cmd
hook in thescripts
section if present. - Run
composer update
to install the new dependencies. - Re-add
"@composer check-platform-reqs"
to thepre-update-cmd
hook in thescripts
section in yourcomposer.json
file.
- For that delete the
- Update your
.env
file to match the new.env.example
file. - Schedule downtime with your Customer (~2h, minimum)
- Install PHP 8.4 and set up everything on your production environment (see https://wiki.brezel.io/deploy/virtual_server/ for further instructions)
- Use the new brotcast service based on Laravel Reverb
- Adjust your .env and the supervisor config to use the new, shipped-with-brezel, brotcast service. More info in the deployment guide linked above.
- Run / deploy as normal
- Make sure to test important parts of your application to ensure that everything works as expected.