1. Go to this page and download the library: Download adminarchitect/contacts library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
$contacts = new Contacts('Google Inc.');
$contacts
->setDescription('<p>We’ve come a long way from the dorm room and the garage. </p>' .
'<p>We moved into our headquarters in Mountain View, California—better known as the Googleplex—in 2004. </p>' .
'<p>Today Google has more than 70 offices in more than 40 countries around the globe.</p>')
->setEmails(['[email protected]'])
->setPhones(['+1 734-332-6500', '+1 248-593-4000']);
$contacts->setAddress('1600 Amphitheatre Parkway Mountain View, CA 94043');
$contacts->department('Google Ann Arbor', function ($department) {
$department->setDescription('Software development')
->setAddress('201 S. Division St. Suite 500 Ann Arbor, MI 48104')
->setPhones(['+1 734-332-6500'])
->setEmails(['[email protected]']);
});
$contacts->department('Google Detroit', function ($department) {
$department->setDescription('Software development')
->setAddress('114 Willits Street Birmingham, MI 48009')
->setPhones(['+1 248-593-4000'])
->setEmails(['[email protected]']);
});
return $contacts->render();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.