-
Notifications
You must be signed in to change notification settings - Fork 2
Tutorial
This tutorial app will get you started with using the FamilySearch gedcomx-php SDK. Start here and complete the activities in this document in sequence.
NOTE: You must complete previous steps of the tutorial before proceeding.
##Set Up a Project
-
Create a new folder for your PHP project. This folder can be located anywhere on your computer. You simply need to know where it is. For greatest ease, your project should be accessible through a web server. The web server you use should allow browser access to your files at URL http://localhost. If you do not have a web server to use, the tutorial app can be run using the internal PHP web server.
-
Download or copy the tutorial.php gist file into your project folder.
If you want to use the PHP server for testing, open a console, move to your PHP project folder, and enter the following command:
php -S localhost:5000
To complete the tutorial you will need to alternate between running and editing the tutorial.php file.
Important! You will need your app key for the first step of the tutorial. You can find your app key on the FamilySearch Developer website on the My Apps page.
-
Open your project copy of tutorial.php in an editor.
-
From a browser, run the tutorial.php app using the following URL and follow the on-screen instructions:
http://localhost:5000/tutorial.php