Skip to content
Daniel Marshall edited this page Sep 3, 2015 · 42 revisions

Step 3: Run tutorial.php Tutorial App

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.

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:5000

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:5000/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