You tagged it "php" but that doesn't appear in your question?
Essentially, you need a client-side SAML stack.
I've listed all the ones I know about here:
In terms of php, have a look at simplesamlPHP.
That has all the plumbing you'll need and it's open source.