Skip to content
Daniel Marshall edited this page Nov 9, 2015 · 34 revisions

#Step 2: Set Up Your Test Environment

  1. Clone a copy of the tutorial project into a local folder.

NOTE: You must have the Git versioning system installed in order to clone this project. Alternatively, you can copy the content of the files one at a time to a project folder you create locally, or you can download a zipped copy and extract the files locally.

  • Go to the Github FamilySearch PHP SDK Tutorial project.

  • To clone a copy, get the "HTTPS Clone URL" and copy it into the follow command to run from a console prompt at the location you want your project folder to reside.

    git clone <HTTPS Clone URL>

A project folder is created that contains all the files needed for you to complete the tutorial.

  1. Install the PHP SDK

Follow the gedcomx-php SDK installation instructions.

  1. (For Windows) Enable security certificates for PHP as follows:
  • Copy the cacert.pem file found in your tutorial project folder into a folder on your server. You can copy it to any folder but you might want to put it in a logical spot in your PHP server folders. For example: C:\xampp\php\extras\ssl

  • Insert the following line into your php.ini file which can be found in the root of your PHP server folder:

    curl.cainfo = "[pathtothisfile]\cacert.pem"

    For example curl.cainfo = "C:\xampp\php\extras\ssl\cacert.pem"

  1. Start the Internal PHP Web Server

Open a console, move to your tutorial project folder, and enter the following command:

php -S localhost:5000

(Proceed to Step 3 of the tutorial.)

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