For connecting to a PostgreSQL database from PHP you can use the standard pg_Connect() function.
cPanel is easy to work with when you have the right host to support you. If you need a reliable partner to help you manage your website with cPanel, check out our cPanel hosting services!