Porting Scripturizer to PHP
Having enough breath of God? Err. I mean, we want more scriptures!! First of all, we see from 2 Peter 1:20-21 that all scriptures are having dual authorship – it is written by men at various time in various places. But at the same time they are all inspired by God. As it is written in 2 Timothy 3:16-17, Christians should be thoroughly equipped with the Word of God, which helps to shape our Christian lives, to do His will. And from Ephesians 6:15 and Hebrews 4:12-13, we see the Word of God being symbolised as a sword, helping us to defend and attack the views of this world. Sometimes we, as Christians, can be so distracted by the things that happen around us, but we should always go back to the authority, i.e. the Bible, for it is the way God chose to speak to his people.
Okay. That should give me enough excuses to spend my morning porting the excellent Sermonizer::Scripturizer by Dean Peters to PHP, a scripting language that many webmasters prefer, which powers my church website as well. It basically provides a function that takes either a string, or an array of strings, and return scripturized version of that string, i.e. all scripture references hyperlinked to GospelCom’s BibleGateway. Sometimes when I read through a Christian article, I might become too lazy to actually check all the references. With this tool, readers can just click on the link to read God’s word in its context. Hopefully I will integrate it into the FOCUS website in the next few days weeks.
- Download the source code: scripturizer.php
Updated: An updated version that can also be used as WordPress plugin is available here.
Comments
Scripturizer looks functionally just like what I am looking for. But I need a regular expression script that I can use in a Delphi app that uses a control that accepts Perl5 compatible scripts. Since I don’t know PHP I wondered if you could point me in the right direction for some help. Thanks.
Tony,
I haven’t touched Delphi for almost 4 years! However, there are many Delphi regex libraries around the net, many for free. Doing a Google search would yield a good result.
Cheers,
Scott,
I have a delphi regex library already. It handles Perl5 compatible scripts. My question is how do I convert Scripturizer (which is in PHP – about which I know nothing) into Perl5 compatible code?
Add a comment
Gravatar is used. Email address is required but will not be displayed. Please keep your comment on topic. No spamming and/or bad language. First time poster will be moderated. Scott reserves the right to delete/edit your comments.

We really need to tweak this thing to handle multiple references … e.g.
I John 3:16;4:12-10
Any ideas?