Closed y4nnick closed 8 years ago
I think this should be a plugin or something, not something for the core as this is a very exceptional scenario.
Is this possible, since PHP PDO doesn't support ssh tunnels? If you could give me a hint how i could implement it, i would write an plugin.
I have never seen it. I fear you'll have to create your own PDO-compatible object (connect using sockets) and pass it to RedBeanPHP (setup accepts PDO objects). Lot of work...
Would be nice if R::setup would take an ssh2_tunnel parameter to connect with a database over an ssh tunnel.
For example: