Just wonking about on the internet… oh look, a bee.

  • 1 Post
  • 15 Comments
Joined 1 year ago
cake
Cake day: June 10th, 2023

help-circle












  • Large parts of my particular departments .gov.uk stack are PHP. All modern (8.1+) using established frameworks and to be honest, it’s a joy. It’s quick to write, easy to understand and very easy to test. The write, run, debug cycle is also essentially instant; although I really enjoy using Go (another bit of the stack) being able to quickly iterate changes is something I absolutely miss when I’m using it.

    Laravel + Livewire is some sort of dark voodoo magic. I can write only PHP and have a functioning SPA with push updates and all sorts.



  • There are tests (and if the readme is to be believed a 71% coverage) they live in the top level tests/ folder.

    As to the .env file you just need to rename the example one and either amend these values (with appropriate urls)

    SERVER_NAME=localhost
    KBIN_DOMAIN=localhost:9443
    KBIN_STORAGE_URL=https://localhost:9443/media
    
    MERCURE_URL=https://localhost:9443/.well-known/mercure
    MERCURE_PUBLIC_URL=https://localhost:9443/.well-known/mercure
    CADDY_MERCURE_URL=https://localhost:9443/.well-known/mercure
    
    

    Or add them to a new .env.local file.

    Start it all up and jobs done*

    *well, you need to run the asset pipeline and add an admin user but that’s all in the Readme.