[Development Guides Home](/guides) >> [Quickstart Development Guide](/guides/quickstart-development-guide) # Tutorial - Create a New cPanel Interface in PHP ## Introduction This tutorial uses PHP to create a new cPanel interface. The examples below use the Jupiter theme's master template, which creates new interfaces that integrate seamlessly with the appearance of the main cPanel interface. * To create a new cPanel interface in Template Toolkit, read our [Create a New cPanel Interface](/guides/quickstart-development-guide/tutorial-create-a-new-cpanel-interface) tutorial. * To create a new WHM interface in PHP, read our [Create a New WHM Interface in PHP](/guides/quickstart-development-guide/tutorial-create-a-new-whm-interface-in-php) tutorial. ## Create a PHP file and connect to the LiveAPI system To begin, create a new PHP file. This file must use the `.live.php` file extension. The example below: * Instantiates the CPANEL object, which ensures that the file uses the [LiveAPI PHP class](/guides/guide-to-the-liveapi-system/guide-to-the-liveapi-system-php-class). * Uses the [LiveAPI new() method](/guides/guide-to-the-liveapi-system/guide-to-the-liveapi-system-liveapi-methods/guide-to-the-liveapi-system-the-new-method) to connect to cPanel & WHM. * Uses the [LiveAPI end() method](/guides/guide-to-the-liveapi-system/guide-to-the-liveapi-system-liveapi-methods/guide-to-the-liveapi-system-the-end-method) to disconnect from cPanel & WHM. ```php end(); // Disconnect from cPanel - only do this once. ?> ``` ## Add Jupiter's header and footer Use the `header()` and `footer()` methods to add Jupiter's header and footer to the interface. The example below: * Uses the [ LiveAPI header() method](/guides/guide-to-the-liveapi-system/guide-to-the-liveapi-system-liveapi-methods/guide-to-the-liveapi-system-the-header-method) to add Jupiter's header to the top of the interface, and set Page Heading as the page title. * Uses the [LiveAPI footer() method](/guides/guide-to-the-liveapi-system/guide-to-the-liveapi-system-liveapi-methods/guide-to-the-liveapi-system-the-footer-method) to add Jupiter's footer to the bottom of the interface. ```php header( "Page Heading , app_key" ); // Add the header. ?> footer(); // Add the footer. $cpanel->end(); // Disconnect from cPanel - only do this once. ?> ``` ## Add a UAPI function The LiveAPI `uapi()` method calls [UAPI functions](/cpanel/introduction). The example below: * Uses LiveAPI's `uapi()` method to call UAPI's [`DomainInfo::domains_data`](/openapi/cpanel/operation/domains_data/) function. ```php header( "Page Heading" ); // Add the header. ?> uapi( // Get domain user data. 'DomainInfo', 'domains_data', array( 'format' => 'hash', ) ); ?> footer(); // Add the footer. $cpanel->end(); // Disconnect from cPanel - only do this once. ?> ```