Setup instructions and files for the PHP Heb12 API http://api.heb12.com
php
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Daniel 9f9a62ceab Update 'download.php' 1 year ago
LICENSE Initial 1 year ago
README.md Update 'README.md' 1 year ago
download.php Update 'download.php' 1 year ago
get.php Initial 1 year ago
index.html Initial 1 year ago
search.php Initial 1 year ago

README.md

Most of these files are not in production, and are obsolete. For info on Biblesearch, see https://code.heb12.com/Heb12/biblesearch

Heb12 API

The Heb12 API is a handy web interface for some of the existing Heb12 tools.

Installation

First, start off by cloning the directory. If you don’t have Apache or an equivelant web server on your machine, then install it via these commands (Linux):

sudo apt install apache2 sudo apt install php

Then, navigate to /var/www/html and use these commands to then install the Heb12 API:

git clone https://github.com/Heb12/api.git

*Note: If you want everything to be on the main html directory, then simply add a . to the end of the command.

Everything should be up and running at localhost in your web browser.

Openbibles Translation Downloader

The file with every translation is located here: http://heb12api.duckdns.org/translations.tar.gz Create a folder in the main directory called translations. Extract the tar contents directly into the directory you just created. This is what it should look like:

  • translations
    • af
    • ar
    • ...
  • html

BibleSearch

To install BibleSearch, run the following command in the www directory: git clone https://code.theres.life/Heb12/BibleSearch.git

python-heb12

The API uses python-heb12 Bible CLI app written in python. For the API to use this, a file called get_random.py must be created in the bref directory, with the contents:

import random_verse print(random_verse.randomVerseHuman()) test