Where to put custom php classes?

I’d like to write some command line script, I’m just going to require the bootstrap script. But where would I place my own php classes and how do I “load” them? My idea is, in the root folder i just create a file foo.php which I can use as my entry point for the cli, but where would you put the classes?

If you don’t need the classes within Kirby, you can put them anywhere (and load them how you would load classes outside of Kirby or using Kirby’s load() function.

ty @texnixe, didn’t know about this function. so I can still use use then I guess

That’s useful, missed that in the docs. Every day is a school day with Kirby :slight_smile: