Composer doesn’t have a feature to automatically run self-update
to my knowledge. Also, running self-update
by itself doesn’t seem like the right way. Maybe you don’t have permission? Then try using sudo, like: sudo composer self-update
.
It is just a simple command, and you should only need to do it once about every 30 days. And keep Composer installed globally so you don’t need to run it for each project.