First, realize that you are going to try to achieve some form of functional equivalence using two very complex code entities, Selenium, and Phantom. Unless you are a very advanced web-stack developer, I suggest you not start down this road.
Second, Phantom has a support group here: [
^]. Selenium user group: [
^].
I think you will probably need to ask for support on the projects' user groups.