An application that demonstrates the usage of the gedcomx-php library in conjunction with the FamilySearch API. A running version of the app is available at http://gedcomx-php-sample-app.herokuapp.com/.
The sample app requires a user account in the sandbox reference of the FamilySearch Family Tree. A sandbox account is obtained when registering with the developer community.
Requirements:
- git
- php
- composer installed globally.
Steps:
- Fork this repository.
- Pull the code down to your local machine:
git clone https://github.com/YOUR-USERNAME/gedcomx-php-sample-app.git
cd gedcomx-php-sample-app
- Install dependencies:
composer install
- Register your app to get an app key.
The redirect URI will be
http://localhost:8080/examples/OAuth2Code.php
. - Update the SDK configuration in
includes/setup.php
with your new app key. - Run a simple webserver (requires PHP 5.4+):
php -S localhost:8080 -t src/
- Open
http://localhost:8080
to begin using the sample app.