Feature#4/add composer support

I'm trying to resolve #4
Is a good practice? I'm not sure with this check is a good method.. What is your opinion on that?