Skip to content

sjones6/auto-linker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An example of this project in action can be found a spenceralanjones.com/sandbox/autolinker.

Project Structure

index.php

Gets the ball rolling. Instatiates dependencies and calls App/start.php.

App/

Contains custom PHP API for receiving and returning JSON. [Note: This code is being refactored to use Eloquent's ORM at the moment. Currently able to return Eloquent objects from database. Next step is to return organized JSON.]

config/

Instantiates Capsule database connection.

db/

Only one csv file at the moment. This file is read and entered into a MySQL database by readcsv.php (a short procedural script). At that point, the API can interact with the db. There are plans to add other texts to this tool, so the readcsv.php could be modified to fit these requirements.

assets/sass/

Sass files for public/index.php. It's a simple page so not much css required. There's enough media queries to make this viewable on a mobile devices.

public/

Site files for spenceralanjones.com/sandbox/autolinker.

public/js/script.js

Makes AJAX calls to send_verse.php and handles response. Written in raw js, so no library dependencies to slow the page down. Eventually, I'd like to release the tool broadly and so I'd like to keep js dependencies to a minimum.

About

A tool that tags all biblical references (within p tags) and when clicked, returns that text.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published