Julian van de Groep 4 months ago
parent
commit
6c51e2e4e8
5 changed files with 263 additions and 0 deletions
  1. 2
    0
      .gitignore
  2. 6
    0
      composer.json
  3. 246
    0
      composer.lock
  4. 5
    0
      index.php
  5. 4
    0
      public/index.php

+ 2
- 0
.gitignore View File

@@ -2,3 +2,5 @@
2 2
 [Dd]esktop.ini
3 3
 $RECYCLE.BIN/
4 4
 vendor/
5
+img/
6
+thumb/

+ 6
- 0
composer.json View File

@@ -0,0 +1,6 @@
1
+{
2
+    "require": {
3
+        "twig/twig": "^2.10",
4
+        "phroute/phroute": "^2.1"
5
+    }
6
+}

+ 246
- 0
composer.lock View File

@@ -0,0 +1,246 @@
1
+{
2
+    "_readme": [
3
+        "This file locks the dependencies of your project to a known state",
4
+        "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5
+        "This file is @generated automatically"
6
+    ],
7
+    "content-hash": "a22413b51fe0e698666f819d4458e435",
8
+    "packages": [
9
+        {
10
+            "name": "phroute/phroute",
11
+            "version": "v2.1.0",
12
+            "source": {
13
+                "type": "git",
14
+                "url": "https://github.com/mrjgreen/phroute.git",
15
+                "reference": "dbe2b986f9ee1dd33dc956fcc35d1fa22e8e196c"
16
+            },
17
+            "dist": {
18
+                "type": "zip",
19
+                "url": "https://api.github.com/repos/mrjgreen/phroute/zipball/dbe2b986f9ee1dd33dc956fcc35d1fa22e8e196c",
20
+                "reference": "dbe2b986f9ee1dd33dc956fcc35d1fa22e8e196c",
21
+                "shasum": ""
22
+            },
23
+            "require": {
24
+                "php": ">=5.4.0"
25
+            },
26
+            "require-dev": {
27
+                "phpunit/phpunit": "*",
28
+                "satooshi/php-coveralls": "dev-master"
29
+            },
30
+            "type": "library",
31
+            "autoload": {
32
+                "psr-4": {
33
+                    "Phroute\\Phroute\\": "src/Phroute"
34
+                }
35
+            },
36
+            "notification-url": "https://packagist.org/downloads/",
37
+            "license": [
38
+                "BSD-3-Clause"
39
+            ],
40
+            "authors": [
41
+                {
42
+                    "name": "Joe Green",
43
+                    "email": "joe.green.0991@gmail.com"
44
+                }
45
+            ],
46
+            "description": "Fast, fully featured restful request router for PHP",
47
+            "keywords": [
48
+                "router",
49
+                "routing"
50
+            ],
51
+            "time": "2015-07-22T20:46:43+00:00"
52
+        },
53
+        {
54
+            "name": "symfony/polyfill-ctype",
55
+            "version": "v1.11.0",
56
+            "source": {
57
+                "type": "git",
58
+                "url": "https://github.com/symfony/polyfill-ctype.git",
59
+                "reference": "82ebae02209c21113908c229e9883c419720738a"
60
+            },
61
+            "dist": {
62
+                "type": "zip",
63
+                "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/82ebae02209c21113908c229e9883c419720738a",
64
+                "reference": "82ebae02209c21113908c229e9883c419720738a",
65
+                "shasum": ""
66
+            },
67
+            "require": {
68
+                "php": ">=5.3.3"
69
+            },
70
+            "suggest": {
71
+                "ext-ctype": "For best performance"
72
+            },
73
+            "type": "library",
74
+            "extra": {
75
+                "branch-alias": {
76
+                    "dev-master": "1.11-dev"
77
+                }
78
+            },
79
+            "autoload": {
80
+                "psr-4": {
81
+                    "Symfony\\Polyfill\\Ctype\\": ""
82
+                },
83
+                "files": [
84
+                    "bootstrap.php"
85
+                ]
86
+            },
87
+            "notification-url": "https://packagist.org/downloads/",
88
+            "license": [
89
+                "MIT"
90
+            ],
91
+            "authors": [
92
+                {
93
+                    "name": "Symfony Community",
94
+                    "homepage": "https://symfony.com/contributors"
95
+                },
96
+                {
97
+                    "name": "Gert de Pagter",
98
+                    "email": "BackEndTea@gmail.com"
99
+                }
100
+            ],
101
+            "description": "Symfony polyfill for ctype functions",
102
+            "homepage": "https://symfony.com",
103
+            "keywords": [
104
+                "compatibility",
105
+                "ctype",
106
+                "polyfill",
107
+                "portable"
108
+            ],
109
+            "time": "2019-02-06T07:57:58+00:00"
110
+        },
111
+        {
112
+            "name": "symfony/polyfill-mbstring",
113
+            "version": "v1.11.0",
114
+            "source": {
115
+                "type": "git",
116
+                "url": "https://github.com/symfony/polyfill-mbstring.git",
117
+                "reference": "fe5e94c604826c35a32fa832f35bd036b6799609"
118
+            },
119
+            "dist": {
120
+                "type": "zip",
121
+                "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/fe5e94c604826c35a32fa832f35bd036b6799609",
122
+                "reference": "fe5e94c604826c35a32fa832f35bd036b6799609",
123
+                "shasum": ""
124
+            },
125
+            "require": {
126
+                "php": ">=5.3.3"
127
+            },
128
+            "suggest": {
129
+                "ext-mbstring": "For best performance"
130
+            },
131
+            "type": "library",
132
+            "extra": {
133
+                "branch-alias": {
134
+                    "dev-master": "1.11-dev"
135
+                }
136
+            },
137
+            "autoload": {
138
+                "psr-4": {
139
+                    "Symfony\\Polyfill\\Mbstring\\": ""
140
+                },
141
+                "files": [
142
+                    "bootstrap.php"
143
+                ]
144
+            },
145
+            "notification-url": "https://packagist.org/downloads/",
146
+            "license": [
147
+                "MIT"
148
+            ],
149
+            "authors": [
150
+                {
151
+                    "name": "Nicolas Grekas",
152
+                    "email": "p@tchwork.com"
153
+                },
154
+                {
155
+                    "name": "Symfony Community",
156
+                    "homepage": "https://symfony.com/contributors"
157
+                }
158
+            ],
159
+            "description": "Symfony polyfill for the Mbstring extension",
160
+            "homepage": "https://symfony.com",
161
+            "keywords": [
162
+                "compatibility",
163
+                "mbstring",
164
+                "polyfill",
165
+                "portable",
166
+                "shim"
167
+            ],
168
+            "time": "2019-02-06T07:57:58+00:00"
169
+        },
170
+        {
171
+            "name": "twig/twig",
172
+            "version": "v2.10.0",
173
+            "source": {
174
+                "type": "git",
175
+                "url": "https://github.com/twigphp/Twig.git",
176
+                "reference": "5240e21982885b76629552d83b4ebb6d41ccde6b"
177
+            },
178
+            "dist": {
179
+                "type": "zip",
180
+                "url": "https://api.github.com/repos/twigphp/Twig/zipball/5240e21982885b76629552d83b4ebb6d41ccde6b",
181
+                "reference": "5240e21982885b76629552d83b4ebb6d41ccde6b",
182
+                "shasum": ""
183
+            },
184
+            "require": {
185
+                "php": "^7.0",
186
+                "symfony/polyfill-ctype": "^1.8",
187
+                "symfony/polyfill-mbstring": "^1.3"
188
+            },
189
+            "require-dev": {
190
+                "psr/container": "^1.0",
191
+                "symfony/debug": "^2.7",
192
+                "symfony/phpunit-bridge": "^3.4.19|^4.1.8"
193
+            },
194
+            "type": "library",
195
+            "extra": {
196
+                "branch-alias": {
197
+                    "dev-master": "2.10-dev"
198
+                }
199
+            },
200
+            "autoload": {
201
+                "psr-0": {
202
+                    "Twig_": "lib/"
203
+                },
204
+                "psr-4": {
205
+                    "Twig\\": "src/"
206
+                }
207
+            },
208
+            "notification-url": "https://packagist.org/downloads/",
209
+            "license": [
210
+                "BSD-3-Clause"
211
+            ],
212
+            "authors": [
213
+                {
214
+                    "name": "Fabien Potencier",
215
+                    "email": "fabien@symfony.com",
216
+                    "homepage": "http://fabien.potencier.org",
217
+                    "role": "Lead Developer"
218
+                },
219
+                {
220
+                    "name": "Armin Ronacher",
221
+                    "email": "armin.ronacher@active-4.com",
222
+                    "role": "Project Founder"
223
+                },
224
+                {
225
+                    "name": "Twig Team",
226
+                    "homepage": "https://twig.symfony.com/contributors",
227
+                    "role": "Contributors"
228
+                }
229
+            ],
230
+            "description": "Twig, the flexible, fast, and secure template language for PHP",
231
+            "homepage": "https://twig.symfony.com",
232
+            "keywords": [
233
+                "templating"
234
+            ],
235
+            "time": "2019-05-14T12:03:52+00:00"
236
+        }
237
+    ],
238
+    "packages-dev": [],
239
+    "aliases": [],
240
+    "minimum-stability": "stable",
241
+    "stability-flags": [],
242
+    "prefer-stable": false,
243
+    "prefer-lowest": false,
244
+    "platform": [],
245
+    "platform-dev": []
246
+}

+ 5
- 0
index.php View File

@@ -0,0 +1,5 @@
1
+<?php
2
+if(!defined('SATOKO_ROOT'))
3
+    define('SATOKO_ROOT', __DIR__ . '/');
4
+
5
+require_once SATOKO_ROOT . 'vendor/autoload.php';

+ 4
- 0
public/index.php View File

@@ -0,0 +1,4 @@
1
+<?php
2
+define('SATOKO_ROOT', __DIR__ . '/../');
3
+
4
+require_once SATOKO_ROOT . 'index.php';