-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathintroduction-symfony.html
More file actions
174 lines (172 loc) · 10.1 KB
/
introduction-symfony.html
File metadata and controls
174 lines (172 loc) · 10.1 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Intro to PHPSchool Haarlem</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<link rel="stylesheet" href="assets/css/reveal.css">
<link rel="stylesheet" href="assets/css/zenburn.css">
<link rel="stylesheet" href="assets/css/phpschool.css">
<script src="assets/js/reveal.js"></script>
</head>
<body>
<div class="reveal">
<div class="slides">
<section data-transition="slide-in fade-out">
<svg class="svg-icon"><svg id="svg-logo" viewBox="0 0 171.3 167.4" width="100%" height="100%">
<path d="M120.7 97.8c4.9 0 8.9-4.1 8.9-9.4 0-5.2-4-9.1-8.9-9.1s-8.9 3.9-8.9 9.1c0 5.3 3.9 9.4 8.9 9.4zM40.8 49.9c2 0 3.5-.3 4.9-.9 2.8-1.2 4.4-4 4.4-7.8 0-3.5-1.4-6.2-3.9-7.5-1.4-.7-3.2-1.1-5.3-1.1h-8.2v17.2h8.1v.1zM134.2 49.9c2 0 3.5-.3 4.9-.9 2.8-1.2 4.4-4 4.4-7.8 0-3.5-1.4-6.2-3.9-7.5-1.4-.7-3.2-1.1-5.3-1.1H126v17.2h8.2v.1z"></path>
<path d="M0 0v125.7l85.7 41.7 85.6-41.7V0H0zm167.5 122l-81.8 39.8-.4-.2L3.8 122V4.7h163.7V122z"></path>
<path d="M165.6 120.7V6.7H5.8v114l79.9 38.8 79.9-38.8zM92 127.1c-2.1 0-2.8-1.8-2.8-4s.7-4 2.8-4 2.7 1.8 2.7 4-.7 4-2.7 4zm8.4-.2h-4.5v-.9h1.7v-5-.5s-.1.2-.4.5l-.7.7-.7-.7 1.9-1.8h1v6.8h1.7v.9zm3.1.3c-1.6 0-2.4-1.1-2.4-1.1l.7-.9s.6.9 1.8.9c1 0 1.7-.7 1.7-1.6 0-1-.8-1.6-1.8-1.6-.9 0-1.5.4-1.5.4l-.5-.2.3-3.2c0-.5.2-.7.7-.7h2.7c.5 0 .7.2.7.7v1h-1v-.5c0-.2-.1-.2-.2-.2H103c-.2 0-.2.1-.2.2l-.2 1.4c0 .2-.1.4-.1.4s.4-.2 1-.2c1.7 0 2.8 1.1 2.8 2.6 0 1.4-1.1 2.6-2.8 2.6zm10.8-60.6h5.5V32.3h-5.5v-4.8h20.5c2.7 0 5.3.2 7.5 1.2 4.5 1.9 7.5 6.6 7.5 12.4 0 6.2-3.2 11.1-8.3 12.9-2.1.7-4.2.9-6.6.9H126v11.6h5.5v4.8h-17.2v-4.7zm34.5 30.9v1.9h-12.2V77.6h2.1v19.9h10.1zm-28.1-20.3c6.2 0 11.1 4.9 11.1 11.1 0 6.4-4.9 11.4-11.1 11.4s-11.1-5-11.1-11.4c0-6.2 4.9-11.1 11.1-11.1zM61.6 66.6h5.5V32.3h-5.5v-4.8h17.2v4.8h-5.5V47H96V32.3h-5.5v-4.8h17.2v4.8h-5.5v34.3h5.5v4.8H90.5v-4.8H96V52.1H73.3v14.5h5.5v4.8H61.6v-4.8zm44.6 21.7c0 6.4-4.9 11.4-11.1 11.4-6.2 0-11.1-5-11.1-11.4 0-6.2 5-11.1 11.1-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.5h1v1zm2.9.7c-1.5 0-2.2-1-2.2-1l.4-.6s.7.8 1.7.8c.5 0 1-.2 1-.7 0-1-3-.9-3-2.7 0-1.1.9-1.6 2.1-1.6.7 0 1.8.2 1.8 1.1v.5h-1v-.3c0-.3-.5-.5-.8-.5-.6 0-1 .2-1 .7 0 1.1 3 .8 3 2.7 0 1-.9 1.6-2 1.6zm5.8 0h-.4c-.7 0-2.1-.2-2.1-2.1v-2.7h-.7v-.9h.7v-1.5h1v1.5h1.3v.9h-1.3v2.6c0 1.1.8 1.3 1.2 1.3h.3v.9zm2.7 11.1l2.7-.4 1.3-2.5 1.2 2.5 2.8.4-2 1.9.4 2.8-2.4-1.3-2.5 1.3.5-2.8-2-1.9z"></path>
<path d="M86.2 88.4c.1 5.3 4 9.4 8.9 9.4s8.9-4.1 8.9-9.4c0-5.2-4-9.1-8.9-9.1s-8.9 3.9-8.9 9.1zM92 120.1c-1.3 0-1.6 1.3-1.6 3s.4 3 1.6 3 1.6-1.4 1.6-3c0-1.7-.4-3-1.6-3z"></path>
</svg></svg>
<h3>Welcome to PHPSchool Haarlem</h3>
</section>
<section data-transition="slide-in fade-out" data-autoslide="60000">
<h2>Schedule</h2>
<table>
<tbody>
<tr>
<td>18:30</td>
<td>Doors open</td>
</tr>
<tr>
<td>19:00</td>
<td>Food</td>
</tr>
<tr>
<td>19:15</td>
<td>Introduction to Symfony</td>
</tr>
<tr>
<td>19:45</td>
<td>Hack time</td>
</tr>
<tr>
<td>21:00</td>
<td>Closing</td>
</tr>
</tbody>
</table>
</section>
<!--Symfony part-->
<section>
<section data-transition="slide-in fade-out" data-autoslide="2000">
<h2>Why?</h2>
</section>
<section data-transition="slide-in fade-out" data-autoslide="2000">
<h2>Why do we need a framework…</h2>
<ul>
<li class="fragment">Faster development, simplifies the development</li>
<li class="fragment">Not having to reinvent the wheel</li>
<li class="fragment">Community supported</li>
</ul>
</section>
<section data-transition="slide-in fade-out" data-autoslide="2000">
<h2>Why Symfony?</h2>
<p class="fragment">Stability, Sustainability and Support</p>
<p class="fragment">Comfort and easy to debug</p>
</section>
</section>
<section>
<section data-transition="slide-in fade-out" data-autoslide="2000">
<h2>Introduction to symfony</h2>
</section>
<section data-transition="slide-in fade-out" data-autoslide="2000">
<h2>Introduction to symfony</h2>
<pre>
<code class="hljs">
phpschool/
├─ .env
├─ .env.dist
├─ bin/console
├─ composer.json
├─ composer.lock
├─ config/
├─ public/index.php
├─ src/
├─ symfony.lock
├─ var/
└─ vendor/
</code>
</pre>
</section>
<section data-transition="slide-in fade-out" data-autoslide="2000">
<h2>Introduction to symfony</h2>
<p>Creating a clean new symfony project</p>
<code class="hljs">
$ composer create-project symfony/skeleton phpschool
</code>
<p>Including packages</p>
<pre>
<code class="hljs">
$ composer require server --dev
$ composer require profiler --dev
$ composer require annotation
$ composer require twig
$ composer require logger
</code>
</pre>
<p>Or install a new symfony project basic on website needs</p>
<code class="hljs">
$ composer create-project symfony/skeleton phpschool
</code>
</section>
<section data-transition="slide-in fade-out" data-autoslide="2000">
<h2>Why Symfony?</h2>
<p class="fragment">Stability, Sustainability and Support</p>
<p class="fragment">Comfort and easy to debug</p>
</section>
<section data-transition="slide-in fade-out" data-autoslide="2000">
<h2>Why Symfony?</h2>
<p class="fragment">Stability, Sustainability and Support</p>
</section>
</section>
<!--Get ready to start-->
<section>
<section data-transition="slide-in fade-out" data-autoslide="2000">
<h2>Before we get started…</h2>
<p class="fragment" data-autoslide="6000">Make sure you’re well prepared and have <code>PHP7.1</code> and <code>composer</code> as well as a text editor installed on you computer</p>
</section>
<section data-transition="slide-in fade-out" data-autoslide="2000">
<h2>Installing a text editor</h2>
<p class="fragment" data-autoslide="6000">Any text editor will do, but we are using Sublime or PHPStorm.</p>
</section>
</section>
</div>
</div>
<script src="assets/js/head.min.js"></script>
<script src="assets/js/reveal.js"></script>
<script>
// Full list of configuration options available at:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: false,
history: false,
center: true,
loop: true,
hideAddressBar: true,
autoSlide: false,
transition: 'slide', // none/fade/slide/convex/concave/zoom
autoSlide: 8000,
// autoSlideStoppable: false,
parallaxBackgroundImage: 'assets/img/test-bg.png',
parallaxBackgroundSize: '450px',
parallaxBackgroundHorizontal: 200,
parallaxBackgroundVertical: 200,
keyboard: {
32: 'toggleAutoSlide'
},
// Optional reveal.js plugins
dependencies: [
{ src: 'assets/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'assets/js/lugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'assets/js/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'assets/js/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'assets/js/plugin/zoom-js/zoom.js', async: true },
{ src: 'assets/js/plugin/notes/notes.js', async: true }
]
});
</script>
</body>
</html>