-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-yii-1-with-composer-d8ee634e3f3e.html
485 lines (410 loc) · 23.1 KB
/
build-yii-1-with-composer-d8ee634e3f3e.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="" />
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,400;0,700;1,400&family=Source+Sans+Pro:ital,wght@0,300;0,400;0,700;1,400&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="./theme/stylesheet/style.min.css">
<link id="pygments-light-theme" rel="stylesheet" type="text/css"
href="./theme/pygments/github.min.css">
<link rel="stylesheet" type="text/css" href="./theme/font-awesome/css/fontawesome.css">
<link rel="stylesheet" type="text/css" href="./theme/font-awesome/css/brands.css">
<link rel="stylesheet" type="text/css" href="./theme/font-awesome/css/solid.css">
<link href="https://shanedowling.com/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Shane Dowling Atom">
<link href="https://shanedowling.com/feeds/all.rss.xml" type="application/rss+xml" rel="alternate" title="Shane Dowling RSS">
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'G-Z9P3V6D0SV', 'auto');
ga('send', 'pageview');
</script>
<meta name="author" content="Shane Dowling" />
<meta name="description" content="While we're looking forward to Yii 2 coming alive, all of the posts on please do not use it for production**. So it might be a little while before we have in-built composer awesomeness with Yii. The guide online on integrating composer with yii does not seem particularly straight-forward and …" />
<meta name="keywords" content="">
<meta property="og:site_name" content="Shane Dowling"/>
<meta property="og:title" content="Build Yii 1.* with composer"/>
<meta property="og:description" content="While we're looking forward to Yii 2 coming alive, all of the posts on please do not use it for production**. So it might be a little while before we have in-built composer awesomeness with Yii. The guide online on integrating composer with yii does not seem particularly straight-forward and …"/>
<meta property="og:locale" content="en_US"/>
<meta property="og:url" content="./build-yii-1-with-composer-d8ee634e3f3e.html"/>
<meta property="og:type" content="article"/>
<meta property="article:published_time" content="2014-04-08 00:00:00+00:00"/>
<meta property="article:modified_time" content=""/>
<meta property="article:author" content="./author/shane-dowling.html">
<meta property="article:section" content="Tech"/>
<meta property="og:image" content="/images/logo.png">
<title>Shane Dowling – Build Yii 1.* with composer</title>
</head>
<body class="light-theme">
<aside>
<div>
<a href="./">
<img src="/images/logo.png" alt="Shane Dowling" title="Shane Dowling">
</a>
<h1>
<a href="./">Shane Dowling</a>
</h1>
<p>Platform Engineering Manager</p>
<nav>
<ul class="list">
<li>
<a target="_self"
href="./pages/contact.html#contact">
Contact
</a>
</li>
<li>
<a target="_self"
href="./pages/now-page.html#now-page">
Now Page
</a>
</li>
<li>
<a target="_self"
href="./pages/statuslog.html#statuslog">
Statuslog
</a>
</li>
<li>
<a target="_self" href="https://hybridcloudshow.com/" >podcast</a>
</li>
<li>
<a target="_self" href="https://pemonthly.com/" >newsletter</a>
</li>
</ul>
</nav>
<ul class="social">
<li>
<a class="sc-github"
href="http://github.com/shano"
target="_blank">
<i class="fa-brands fa-github"></i>
</a>
</li>
<li>
<a class="sc-mastodon"
rel="me" href="http://social.lol/@sed"
target="_blank">
<i class="fa-brands fa-mastodon"></i>
</a>
</li>
<li>
<a class="sc-linkedin"
href="https://www.linkedin.com/in/shanedow/"
target="_blank">
<i class="fa-brands fa-linkedin"></i>
</a>
</li>
</ul>
</div>
</aside>
<main>
<article class="single">
<header>
<h1 id="build-yii-1-with-composer-d8ee634e3f3e">Build Yii 1.* with composer</h1>
<p>
Posted on Tue 08 April 2014 in <a href="./category/tech.html">Tech</a>
</p>
</header>
<div>
<p><img alt="" src="images/1__l9C5aZ3qEUjpuOr__ZRZtbw.png"></p>
<p>While we're looking forward to Yii 2 coming alive, all of the posts on
please do not use it for production**. So it might be a little while
before we have in-built composer awesomeness with Yii. <a href="http://www.yiiframework.com/wiki/392/creating-yii-applications-with-composer/">The guide
online</a> on integrating composer with yii does not seem particularly
straight-forward and misses out on a lot of steps, hence this post. You
basically need to have the right folder structure or things will start
to break. This guide relies on some of phundaments packages to get
things up and running, as the official yii composer project doesn't work
anymore.</p>
<ul>
<li>Create the root folder my_yii_install.</li>
<li>mkdir -p my_yii_install/protected/config</li>
<li>In my_yii_install/protected/ <a href="https://getcomposer.org/download/">download the composer.phar</a> and create a composer.json like so.</li>
</ul>
<div class="highlight"><pre><span></span><code><span class="p">{</span>
<span class="w"> </span><span class="nt">"repositories"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span>
<span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="nt">"type"</span><span class="p">:</span><span class="s2">"composer"</span><span class="p">,</span>
<span class="w"> </span><span class="nt">"url"</span><span class="p">:</span><span class="w"> </span><span class="s2">"http://packages.phundament.com"</span>
<span class="w"> </span><span class="p">}</span>
<span class="w"> </span><span class="p">],</span>
<span class="w"> </span><span class="nt">"require"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="nt">"php"</span><span class="p">:</span><span class="w"> </span><span class="s2">">=5.3.2"</span><span class="p">,</span>
<span class="w"> </span><span class="nt">"yiisoft/yii"</span><span class="p">:</span><span class="w"> </span><span class="s2">"1.1.*"</span><span class="p">,</span>
<span class="w"> </span><span class="nt">"yiiext/migrate-command"</span><span class="p">:</span><span class="w"> </span><span class="s2">"0.7.*"</span>
<span class="w"> </span><span class="p">},</span>
<span class="w"> </span><span class="nt">"config"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="nt">"bin-dir"</span><span class="p">:</span><span class="w"> </span><span class="s2">"bin/"</span>
<span class="w"> </span><span class="p">},</span>
<span class="w"> </span><span class="nt">"autoload"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="nt">"psr-0"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="nt">"config"</span><span class="p">:</span><span class="w"> </span><span class="s2">"./"</span>
<span class="w"> </span><span class="p">}</span>
<span class="w"> </span><span class="p">},</span>
<span class="w"> </span><span class="nt">"scripts"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="nt">"pre-install-cmd"</span><span class="p">:</span><span class="w"> </span><span class="s2">"config\\\\ComposerCallback::preInstall"</span><span class="p">,</span>
<span class="w"> </span><span class="nt">"post-install-cmd"</span><span class="p">:</span><span class="w"> </span><span class="s2">"config\\\\ComposerCallback::postInstall"</span><span class="p">,</span>
<span class="w"> </span><span class="nt">"pre-update-cmd"</span><span class="p">:</span><span class="w"> </span><span class="s2">"config\\\\ComposerCallback::preUpdate"</span><span class="p">,</span>
<span class="w"> </span><span class="nt">"post-update-cmd"</span><span class="p">:</span><span class="w"> </span><span class="s2">"config\\\\ComposerCallback::postUpdate"</span><span class="p">,</span>
<span class="w"> </span><span class="nt">"post-package-install"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="s2">"config\\\\ComposerCallback::postPackageInstall"</span><span class="p">],</span>
<span class="w"> </span><span class="nt">"post-package-update"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="s2">"config\\\\ComposerCallback::postPackageUpdate"</span><span class="p">]</span>
<span class="w"> </span><span class="p">}</span>
<span class="w"> </span><span class="p">}</span>
</code></pre></div>
<ul>
<li>In my_yii_install/config add console.php</li>
</ul>
<div class="highlight"><pre><span></span><code><span class="x">return array(</span>
<span class="x"> 'aliases' => array(</span>
<span class="x"> 'vendor' => 'application.vendor',</span>
<span class="x"> ),</span>
<span class="x"> 'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR .'..',</span>
<span class="x"> 'name' => 'My Awesome Yii Site',</span>
<span class="x"> 'components' => array(</span>
<span class="x"> 'db' => array(</span>
<span class="x"> // MySQL</span>
<span class="x"> 'connectionString' => 'mysql:host=localhost;dbname=my_yii_database',</span>
<span class="x"> 'emulatePrepare' => true,</span>
<span class="x"> 'username' => 'root',</span>
<span class="x"> 'password' => 'root',</span>
<span class="x"> 'charset' => 'utf8',</span>
<span class="x"> ),</span>
<span class="x"> ),</span>
<span class="x"> 'params' => array(</span>
<span class="x"> 'composer.callbacks' => array(</span>
<span class="x"> // args for Yii command runner</span>
<span class="x"> 'yiisoft/yii-install' => array('yiic', 'webapp', dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'),</span>
<span class="x"> 'post-update' => array('yiic', 'migrate'),</span>
<span class="x"> 'post-install' => array('yiic', 'migrate'),</span>
<span class="x"> ),</span>
<span class="x"> ),</span>
<span class="x"> );</span>
</code></pre></div>
<ul>
<li>Now you'll need to add a file like the below to actually handle the new composer hooks you've created. This will basically run migrations once your dependencies have installed.</li>
</ul>
<p>This is blantantly taken from phundaments <a href="https://github.com/phundament/app/blob/yii-webapp/protected/config/ComposerCallback.php">ComposerCallback</a>.
I just thought I'd copy it here for completeness.</p>
<p>ComposerCallback.php</p>
<div class="highlight"><pre><span></span><code><span class="x">/**</span>
<span class="x"> * Class file</span>
<span class="x"> *“</span>
<span class="x"> * @author Tobias Munk</span>
<span class="x"> * @link [http://www.phundament.com/](http://www.phundament.com/)</span>
<span class="x"> * @copyright Copyright © 2012 diemeisterei GmbH</span>
<span class="x"> * @license [http://www.phundament.com/license](http://www.phundament.com/license)</span>
<span class="x"> */</span>
<span class="x">namespace config;</span>
<span class="x"> use Composer\\Script\\Event;</span>
<span class="x">/**</span>
<span class="x"> * ComposerCallback provides composer hooks</span>
<span class="x"> *</span>
<span class="x"> * This setup class triggers \`./yiic migrate\` at post-install and post-update.</span>
<span class="x"> * For a package the class triggers \`./yiic -\` at post-package-install and</span>
<span class="x"> * post-package-update.</span>
<span class="x"> * See composer manual (http://getcomposer.org/doc/articles/scripts.md)</span>
<span class="x"> *</span>
<span class="x"> * Usage example</span>
<span class="x"> *</span>
<span class="x"> * config.php</span>
<span class="x"> * 'params' => array(</span>
<span class="x"> * 'composer.callbacks' => array(</span>
<span class="x"> * 'post-update' => array('yiic', 'migrate'),</span>
<span class="x"> * 'post-install' => array('yiic', 'migrate'),</span>
<span class="x"> * 'yiisoft/yii-install' => array('yiic', 'webapp', realpath(dirname(__FILE__))),</span>
<span class="x"> * ),</span>
<span class="x"> * )</span>
<span class="x"> * );</span>
</code></pre></div>
<ul>
<li>composer.json</li>
</ul>
<div class="highlight"><pre><span></span><code><span class="w"> </span><span class="nt">"scripts"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="nt">"pre-install-cmd"</span><span class="p">:</span><span class="w"> </span><span class="s2">"config\\\\ComposerCallback::preInstall"</span><span class="p">,</span>
<span class="w"> </span><span class="nt">"post-install-cmd"</span><span class="p">:</span><span class="w"> </span><span class="s2">"config\\\\ComposerCallback::postInstall"</span><span class="p">,</span>
<span class="w"> </span><span class="nt">"pre-update-cmd"</span><span class="p">:</span><span class="w"> </span><span class="s2">"config\\\\ComposerCallback::preUpdate"</span><span class="p">,</span>
<span class="w"> </span><span class="nt">"post-update-cmd"</span><span class="p">:</span><span class="w"> </span><span class="s2">"config\\\\ComposerCallback::postUpdate"</span><span class="p">,</span>
<span class="w"> </span><span class="nt">"post-package-install"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span>
<span class="w"> </span><span class="s2">"config\\\\ComposerCallback::postPackageInstall"</span>
<span class="w"> </span><span class="p">],</span>
<span class="w"> </span><span class="nt">"post-package-update"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span>
<span class="w"> </span><span class="s2">"config\\\\ComposerCallback::postPackageUpdate"</span>
<span class="w"> </span><span class="p">]</span>
<span class="w"> </span><span class="p">}</span>
</code></pre></div>
<div class="highlight"><pre><span></span><code><span class="x">*</span>
<span class="x"> *</span>
<span class="x"> * @author Tobias Munk</span>
<span class="x"> * @package phundament.app</span>
<span class="x"> * @since 0.7.1</span>
<span class="x"> */</span>
<span class="x">defined('YII_PATH') or define('YII_PATH', dirname(__FILE__).'/../vendor/yiisoft/yii/framework');</span>
<span class="x"> defined('CONSOLE_CONFIG') or define('CONSOLE_CONFIG', dirname(__FILE__).'/console.php');</span>
<span class="x">class ComposerCallback</span>
<span class="x"> {</span>
<span class="x"> /**</span>
<span class="x"> * Displays welcome message</span>
<span class="x"> * @static</span>
<span class="x"> * @param ComposerScriptEvent $event</span>
<span class="x"> */</span>
<span class="x"> public static function preInstall(Event $event)</span>
<span class="x"> {</span>
<span class="x"> $composer = $event->getComposer();</span>
<span class="x"> // do stuff</span>
<span class="x"> echo "Phundament 3 Installernn";</span>
<span class="x"> echo " * download packages specified in composer.json</span>
<span class="x"> * trigger composer callbacksnn";</span>
<span class="x"> if (self::confirm("Start Installation?")) {</span>
<span class="x"> self::runHook('pre-install');</span>
<span class="x"> } else {</span>
<span class="x"> exit("Installation aborted.n");</span>
<span class="x"> }</span>
<span class="x"> }</span>
<span class="x">/**</span>
<span class="x"> * Executes ./yiic migrate</span>
<span class="x"> * @static</span>
<span class="x"> * @param ComposerScriptEvent $event</span>
<span class="x"> */</span>
<span class="x"> public static function postInstall(Event $event)</span>
<span class="x"> {</span>
<span class="x"> self::runHook('post-install');</span>
<span class="x"> echo "nnInstallation completed.nnThank you for choosing Phundament 3!nn";</span>
<span class="x"> }</span>
<span class="x">/**</span>
<span class="x"> * Displays welcome message</span>
<span class="x"> *</span>
<span class="x"> * @static</span>
<span class="x"> * @param ComposerScriptEvent $event</span>
<span class="x"> */</span>
<span class="x"> public static function preUpdate(Event $event)</span>
<span class="x"> {</span>
<span class="x"> echo "Welcome to Phundament Installation 3 via composernnUpdating your application to the lastest available packages…n";</span>
<span class="x"> self::runHook('pre-update');</span>
<span class="x"> }</span>
<span class="x">/**</span>
<span class="x"> * Executes ./yiic migrate</span>
<span class="x"> *</span>
<span class="x"> * @static</span>
<span class="x"> * @param ComposerScriptEvent $event</span>
<span class="x"> */</span>
<span class="x"> public static function postUpdate(Event $event)</span>
<span class="x"> {</span>
<span class="x"> self::runHook('post-update');</span>
<span class="x"> echo "nnUpdate completed.nn";</span>
<span class="x"> }</span>
<span class="x">/**</span>
<span class="x"> * Executes ./yiic -</span>
<span class="x"> *</span>
<span class="x"> * @static</span>
<span class="x"> * @param ComposerScriptEvent $event</span>
<span class="x"> */</span>
<span class="x"> public static function postPackageInstall(Event $event)</span>
<span class="x"> {</span>
<span class="x"> $installedPackage = $event->getOperation()->getPackage();</span>
<span class="x"> $hookName = $installedPackage->getPrettyName().'-install';</span>
<span class="x"> self::runHook($hookName);</span>
<span class="x"> }</span>
<span class="x">/**</span>
<span class="x"> * Executes ./yiic -</span>
<span class="x"> *</span>
<span class="x"> * @static</span>
<span class="x"> * @param ComposerScriptEvent $event</span>
<span class="x"> */</span>
<span class="x"> public static function postPackageUpdate(Event $event)</span>
<span class="x"> {</span>
<span class="x"> $installedPackage = $event->getOperation()->getTargetPackage();</span>
<span class="x"> $commandName = $installedPackage->getPrettyName().'-update';</span>
<span class="x"> self::runHook($commandName);</span>
<span class="x"> }</span>
<span class="x">/**</span>
<span class="x"> * Asks user to confirm by typing y or n.</span>
<span class="x"> *</span>
<span class="x"> * Credits to Yii CConsoleCommand</span>
<span class="x"> *</span>
<span class="x"> * @param string $message to echo out before waiting for user input</span>
<span class="x"> * @return bool if user confirmed</span>
<span class="x"> */</span>
<span class="x"> public static function confirm($message)</span>
<span class="x"> {</span>
<span class="x"> echo $message . ' [yes|no] ';</span>
<span class="x"> return !strncasecmp(trim(fgets(STDIN)), 'y', 1);</span>
<span class="x"> }</span>
<span class="x">/**</span>
<span class="x"> * Runs Yii command, if available (defined in config/console.php)</span>
<span class="x"> */</span>
<span class="x"> private static function runHook($name){</span>
<span class="x"> $app = self::getYiiApplication();</span>
<span class="x"> if ($app === null) return;</span>
<span class="x">if (isset($app->params['composer.callbacks'][$name])) {</span>
<span class="x"> $args = $app->params['composer.callbacks'][$name];</span>
<span class="x"> $app->commandRunner->addCommands(Yii::getPathOfAlias('system.cli.commands'));</span>
<span class="x"> $app->commandRunner->run($args);</span>
<span class="x"> }</span>
<span class="x"> }</span>
<span class="x">/**</span>
<span class="x"> * Creates console application, if Yii is available</span>
<span class="x"> */</span>
<span class="x"> private static function getYiiApplication()</span>
<span class="x"> {</span>
<span class="x"> if (!is_file(YII_PATH.'/yii.php'))</span>
<span class="x"> {</span>
<span class="x"> return null;</span>
<span class="x"> }</span>
<span class="x">require_once(YII_PATH.'/yii.php');</span>
<span class="x"> spl_autoload_register(array('YiiBase', 'autoload'));</span>
<span class="x">if (Yii::app() === null) {</span>
<span class="x"> if (is_file(CONSOLE_CONFIG)) {</span>
<span class="x"> $app = Yii::createConsoleApplication(CONSOLE_CONFIG);</span>
<span class="x"> } else {</span>
<span class="x"> throw new Exception("File from CONSOLE_CONFIG not found");</span>
<span class="x"> }</span>
<span class="x"> } else {</span>
<span class="x"> $app = Yii::app();</span>
<span class="x"> }</span>
<span class="x"> return $app;</span>
<span class="x"> }</span>
<span class="x">}</span>
</code></pre></div>
<ul>
<li>Now you should be able to run</li>
</ul>
<div class="highlight"><pre><span></span><code>php<span class="w"> </span>composer.phar<span class="w"> </span>install
</code></pre></div>
<p>and it should ask do you want to setup your yii project and all of the
required folders, which is pretty awesome. The only other thing you
might want to do is add more dependencies. Say you have a library you
wish to add. Add the entry into composer.json run the update(which
should call any migrations needed automatically), then you need to add
this line to your index.php.</p>
<div class="highlight"><pre><span></span><code><span class="x">require_once(dirname(__FILE__).'/protected/vendor/autoload.php');</span>
</code></pre></div>
<p>And should be be good to access composers namespaces libraries. Very
cool!</p>
</div>
<div class="tag-cloud">
<p>
</p>
</div>
</article>
<footer>
<p>© </p>
<p>
Built with <a href="http://getpelican.com" target="_blank">Pelican</a> using <a href="http://bit.ly/flex-pelican" target="_blank">Flex</a> theme
</p></footer> </main>
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "Blog",
"name": " Shane Dowling ",
"url" : ".",
"image": "/images/logo.png",
"description": ""
}
</script>
</body>
</html>