I am working on an ICO site. Everything is working fine now i need to transfer ICO token to Myetherwallet and metamask wallet. Please let me know what are the best and possible ways to do this and is it possible in php?.
First, something you should have understood before working with something: the wallet concept.
A wallet is not "metamask" or "myetherwallet". A wallet, or account, is just an ethereum address and all related stuff (public/private key, ...).
Your wallet is not "in metamask" or in "myetherwallet". Metamask or mew are just tools to use your address. Your address is just an ID to identify you, you can use it anywhere as long as you have its keystore or private key.