Skip to content
Matt Misbach edited this page Sep 10, 2015 · 42 revisions

Step 3: Run the tutorial.php App

This tutorial app will get you started with using the FamilySearch gedcomx-php SDK. Complete the activities in this document in sequence.

NOTE: You must complete the 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.

Start the Internal PHP Web Server

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:8080 -t src/

Run and Edit tutorial.php

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:8080/tutorial.php

(Proceed to Step 4 if Desired.)

Home

Tutorial

  • Step 1: Register
  • Step 2: Set up your test environment
  • Step 3: Build tutorial.php
  • Step 4: Use the SDK Documentation

Sample App

Documentation

Design

Clone this wiki locally