An API for connecting to the Joshua Project data. It uses the PHP Slim Framework.
This repository is following the branching technique described in this blog post, and the semantic version set out on the Semantic Versioning Website.
This tool uses Composer to install the project specific libraries. We also use Swagger annotations for generating the front facing API documentation.
Questions or problems? Please post them on the issue tracker. You can contribute changes by forking the project and submitting a pull request.
If you would like to set up this code locally, you will need to follow these steps:
.env.example
to .env
.Public/.htaccess.example
to Public/.htaccess
.platform: linux/x86_64
to each container.docker-compose build --no-cache
docker-compose up -d
docker exec -it jp_api_php composer install
To deploy this code, simply follow these steps:
.env.example
to .env
.composer install
.In your php.ini
file you will need to set the following values equal to or greater than the value provided:
Sample code for PHP, Ruby, Javascript and Python can be found in the following Github Repo.
To update the submodule, use the following command: git submodule update --recursive --remote
.
To set up the Google Analytics, you need to do the following in Google Analytics:
Add your settings to the .env file, and in 24 hours you should start receiving data.
This script is created by Missional Digerati and is under the GNU General Public License v3.