there is already a thread about how to use composer with kirby…
this is what i am using and to at least update to latest version has worked quite fine.