-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
125 lines (113 loc) · 4.43 KB
/
index.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>reveal.js</title>
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/black.css">
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="lib/css/monokai.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
</head>
<body>
<div class="reveal">
<div class="slides">
<section data-markdown="slides/intro.md" data-charset="utf-8">
</section>
<section data-background="rgb(151, 229, 216)">
<section data-markdown="slides/http-requests.md" data-charset="utf-8">
</section>
<section>
<div data-svg-fragment="slides/images/application.svg#[*|label=Canvas]" style="background-color: white">
<a class="fragment" title="[*|label=Client]"></a>
<a class="fragment" title="[*|label=Request]"></a>
<a class="fragment" title="[*|label=Response]"></a>
<a class="fragment" title="[*|label=PSR]"></a>
</div>
<aside class="notes" data-markdown>
* Application wants to send a request to a service.
* The service retrieves some information.
* The application gets that information returned in a response.
* A HTTP client orchestrates that.
</aside>
</section>
</section>
<section data-background="#256d4e" data-background-image="slides/images/php-fig-home-banner-bg.jpg" data-background-opacity="0.5">
<section data-markdown="slides/psr-fig.md" data-charset="utf-8">
</section>
</section>
<section data-background="rgb(155, 4, 22)">
<section data-markdown="slides/psr-18.md" data-charset="utf-8">
</section>
<section>
<div data-svg-fragment="slides/images/application-psr-18.svg#[*|label=Canvas]" style="background-color: white">
<a class="fragment" title="[*|label=PSR-17a]"></a>
<a class="fragment" title="[*|label=PSR-17b]"></a>
<a class="fragment" title="[*|label=PSR-17c]"></a>
</div>
<aside class="notes" data-markdown>
* So, you write a package that sends requests and receives responses.
* The package has a client injected.
* It now needs to create PSR-7 requests,
* A factory can do that, and such a factory is a PSR - PSR-17.
</aside>
</section>
</section>
<section data-background="rgb(65, 177, 242)">
<section>
<div data-svg-fragment="slides/images/psr-7-interface-relationships.svg#[*|label=Messages]" style="background-color: white">
<a class="fragment" title="[*|label=Support]"></a>
</div>
<aside class="notes" data-markdown>
* These are interfaces
* Message is not used directly; it provides common methods
* Request is constructed by your app/package to send
* Request is constructed by the client on receipt
* ServerRequest is constructed by the framework on inbound request
</aside>
</section>
<section data-markdown="slides/psr-7.md" data-charset="utf-8">
</section>
</section>
<section data-background="rgb(158, 155, 7)">
<section data-markdown="slides/discovery.md" data-charset="utf-8">
</section>
</section>
<section data-background="rgb(104, 16, 46)">
<section data-markdown="slides/summary.md" data-charset="utf-8">
</section>
</section>
</div>
</div>
<script src="js/reveal.js"></script>
<script>
// More info about config & dependencies:
// - https://github.com/hakimel/reveal.js#configuration
// - https://github.com/hakimel/reveal.js#dependencies
Reveal.initialize({
dependencies: [
{ src: 'plugin/markdown/marked.js' },
{ src: 'plugin/markdown/markdown.js' },
{ src: 'plugin/notes/notes.js', async: true },
{ src: 'plugin/highlight/highlight.js', async: true },
{ src: 'plugin/d3/reveal-svg-fragment.js',
condition: function() {
return !!document.querySelector( '[data-svg-fragment]' );
},
selector: "title",
d3: "plugin/d3/d3.min.js"
}
]
});
</script>
</body>
</html>