Skip to content

Commit 30ffd6c

Browse files
committed
Implement composer
1 parent 7b6ca1d commit 30ffd6c

File tree

4 files changed

+74
-0
lines changed

4 files changed

+74
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@
2525
/etc/config.redux.json
2626
/tmp/
2727
Thumbs.db
28+
29+
/vendor/

composer.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"name": "bnetdocs/bnetdocs-web",
3+
"description": "BNETDocs - The Battle.net™ protocol documentation website",
4+
"type": "project",
5+
"keywords": [
6+
"battle.net",
7+
"protocol",
8+
"documentation",
9+
"battlenet",
10+
"b.net",
11+
"bnet",
12+
"docs",
13+
"classic",
14+
"warcraft",
15+
"starcraft",
16+
"diablo",
17+
"bot",
18+
"reverse",
19+
"engineer"
20+
],
21+
"homepage": "https://github.com/BNETDocs/bnetdocs-web",
22+
"license": "CC-BY-NC-SA 4.0",
23+
"authors": [
24+
{
25+
"name": "Carl Bennett",
26+
"email": "carlbennett@users.noreply.github.com"
27+
}
28+
],
29+
"require": {
30+
"ext-curl": "*",
31+
"ext-geoip": "*",
32+
"ext-gmp": "*",
33+
"ext-http": "*",
34+
"ext-json": "*",
35+
"ext-mbstring": "*",
36+
"ext-mcrypt": "*",
37+
"ext-memcached": "*",
38+
"ext-pdo": "*",
39+
"php-64bit": ">=5.5.0"
40+
}
41+
}

composer.lock

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
function main() {
1414

15+
require_once("../vendor/autoload.php");
16+
1517
spl_autoload_register(function($className){
1618
$path = $className;
1719
if (substr($path, 0, 8) == "BNETDocs") $path = substr($path, 9);

0 commit comments

Comments
 (0)