Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

gwleuverink's avatar

gwleuverink wrote a comment+100 XP

2mos ago

Another argument against coupling your server and client classes;

At any point in time you may have different app versions consuming your api. If your mobile/desktop app would share say the same models you’ll undoubtedly run into trouble down the line.

Keep that stuff separate and think in terms of api versions and backwards compatibility. Out of date apps will linger around. It is a different paradigm!