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

larafam's avatar

how should i create automatic update for my application?

i developed a super lite laravel cms that user will install on their hosting. let say i want to update those cms that i distributed. my idea is:

  1. each cms will run cron job every minute in background that check new version from official repo site.

  2. if new version exist.

    2.1 download new version (.zip)

    2.2 replace old with new

is this the best way? if its not, can anyone show the best practice on how to roll out new update? halp!

0 likes
3 replies
topvillas's avatar

Maybe make the CMS a package, lock it's dependencies right down in composer. Then get a cron job to run composer update.

topvillas's avatar

I've got no idea. Have a look at the Wordpress source and see how they manage it.

Please or to participate in this conversation.