-
Notifications
You must be signed in to change notification settings - Fork 2
Installation
#Step 2: Set Up Your Test Environment
- 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.
- Install the PHP SDK
Follow the gedcomx-php SDK installation instructions.
- (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"
- Start the Internal PHP Web Server
Open a console, move to your tutorial project folder, and enter the following command:
php -S localhost:5000