make a lib for composer