Owncloud + connect by php

Hello everyone

my question is regarding how could I connect owncloud to a php application where my user is connected by password and owncloud is automatically connected, thank you very much

Proper solution would be with Single-Sign-On, but this is an enterprise feature: https://owncloud.com/features/