How to implement blender's model converter into my web app?

Hi, recently I have been working on a 3D model repository web application(Using Laravel & PHP) and one of the functions is to convert model files from one format to another(For example, obj,mtl and rgb to gltf and glb and vice versa). I found that blender’s converter works very well and was wondering whether it is possible to somehow implement it into my web app? If so, how? Thanks.

Easiest way is to start blender with a script that loads the source model and exports it via command line. There is no easy way as it is a lot of code, all fileformats have their quirks, and require support. Best to interface with the code that is already there.