You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+86-58Lines changed: 86 additions & 58 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ It handles all the weird exceptions with how we talk about scripture, including:
12
12
13
13
- Books with only a single chapter won't list the chapter. (e.g. 3 John 11)
14
14
- Psalm is singular and Psalms is plural. (e.g. Psalm 23 and Psalms 101-102) Same for Song(s) of Solomon. This behavior
15
-
can be changed with the 'plurl' option. (The misspelling is deliberate--all options are five letters.)
15
+
can be changed with the 'plurl' option. (The misspelling is deliberate--most options are five letters.)
16
16
17
17
## Installation
18
18
@@ -53,7 +53,7 @@ From a technical perspective, having a closed cannon is *vital* because verses a
53
53
Should insertions or omissions be made, numbering would be askew for the rest of that book.
54
54
55
55
The author of this library is protestant, and holds to a closed canon consisting of the 66
56
-
books [listed as western protestantism here](https://en.wikipedia.org/wiki/Biblical_canon#Western_Church). Changing the versification of scripture would be disastrous for any
56
+
books [listed as Western Protestantism here](https://en.wikipedia.org/wiki/Biblical_canon#Western_Church). Changing the versification of scripture would be disastrous for any
57
57
integer ScripturNums that are saved.
58
58
59
59
## Usage
@@ -64,67 +64,75 @@ The two most common ways of referring to a passage of scripture are, probably, h
64
64
database. The constructor takes both of these forms.
65
65
66
66
For instance:
67
-
68
-
$s = new ScripturNum('Romans 1-8');
69
-
var_dump($s);
70
-
echo $s;
67
+
```php
68
+
$s = new ScripturNum('Romans 1-8');
69
+
var_dump($s);
70
+
echo $s;
71
+
```
71
72
72
73
Produces the result:
73
-
74
-
object(ScripturNum\ScripturNum)
75
-
protected 'int' => int 738197728
76
-
protected 'book' => int 45
77
-
protected 'startCh' => int 1
78
-
protected 'startV' => int 1
79
-
protected 'endCh' => int 8
80
-
protected 'endV' => int 39
81
-
Romans 1-8
74
+
```
75
+
object(ScripturNum\ScripturNum)
76
+
protected 'int' => int 738197728
77
+
protected 'book' => int 45
78
+
protected 'startCh' => int 1
79
+
protected 'startV' => int 1
80
+
protected 'endCh' => int 8
81
+
protected 'endV' => int 39
82
+
Romans 1-8
83
+
```
82
84
83
85
Or, start with a number:
84
-
85
-
$s = new ScripturNum(739119536);
86
-
var_dump($s);
87
-
echo $s;
86
+
```php
87
+
$s = new ScripturNum(739119536);
88
+
var_dump($s);
89
+
echo $s;
90
+
```
88
91
89
92
Produces the output:
90
-
91
-
object(ScripturNum\ScripturNum)
92
-
protected 'int' => int 739119536
93
-
protected 'book' => int 45
94
-
protected 'startCh' => int 9
95
-
protected 'startV' => int 1
96
-
protected 'endCh' => int 16
97
-
protected 'endV' => int 27
98
-
Romans 9-16
93
+
```
94
+
object(ScripturNum\ScripturNum)
95
+
protected 'int' => int 739119536
96
+
protected 'book' => int 45
97
+
protected 'startCh' => int 9
98
+
protected 'startV' => int 1
99
+
protected 'endCh' => int 16
100
+
protected 'endV' => int 27
101
+
Romans 9-16
102
+
```
99
103
100
104
### Starting with Other Numerical References
101
105
102
106
If you've already parsed a string input and have broken apart the numerical portions, you may need a different means.
0 commit comments