-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathindex.html
829 lines (744 loc) · 66.4 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
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
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>ReactPHP: Event-driven, non-blocking I/O with PHP - ReactPHP</title>
<meta name="description" content="Event-driven, non-blocking I/O with PHP.">
<link rel="apple-touch-icon" sizes="180x180" href="https://reactphp.org/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://reactphp.org/favicon-32x32.png">
<link rel="manifest" href="https://reactphp.org/manifest.json">
<link rel="mask-icon" href="https://reactphp.org/safari-pinned-tab.svg" color="#4f5b93">
<meta name="apple-mobile-web-app-title" content="ReactPHP">
<meta name="application-name" content="ReactPHP">
<meta name="theme-color" content="#f4f3f1">
<meta name="msapplication-config" content="https://reactphp.org/browserconfig.xml" />
<meta property="og:image" content="https://reactphp.org/og-image.png">
<link rel="preload" href="assets/sourcesanspro-regular.f84b2bd4.woff" as="font" type="font/woff" crossorigin>
<link rel="preload" href="assets/sourcesanspro-bold.cb7d3610.woff" as="font" type="font/woff" crossorigin>
<script>window.__assets = 'assets/';</script>
<script>!function(){"use strict";var e,t,n,r,o,i={},u={};function a(e){var t=u[e];if(void 0!==t)return t.exports;var n=u[e]={exports:{}};return i[e].call(n.exports,n,n.exports,a),n.exports}a.m=i,e=[],a.O=function(t,n,r,o){if(!n){var i=1/0;for(l=0;l<e.length;l++){n=e[l][0],r=e[l][1],o=e[l][2];for(var u=!0,f=0;f<n.length;f++)(!1&o||i>=o)&&Object.keys(a.O).every((function(e){return a.O[e](n[f])}))?n.splice(f--,1):(u=!1,o<i&&(i=o));if(u){e.splice(l--,1);var c=r();void 0!==c&&(t=c)}}return t}o=o||0;for(var l=e.length;l>0&&e[l-1][2]>o;l--)e[l]=e[l-1];e[l]=[n,r,o]},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce((function(t,n){return a.f[n](e,t),t}),[]))},a.u=function(e){return e+"."+{67:"ab055693",139:"820be3d5",261:"bd162b4a",553:"da065a6b"}[e]+".js"},a.miniCssF=function(e){return e+"."+{67:"4ae9feba",139:"3ced3f7b",553:"90d4e0e8"}[e]+".css"},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t={},n="reactphp-website:",a.l=function(e,r,o,i){if(t[e])t[e].push(r);else{var u,f;if(void 0!==o)for(var c=document.getElementsByTagName("script"),l=0;l<c.length;l++){var s=c[l];if(s.getAttribute("src")==e||s.getAttribute("data-webpack")==n+o){u=s;break}}u||(f=!0,(u=document.createElement("script")).charset="utf-8",u.timeout=120,a.nc&&u.setAttribute("nonce",a.nc),u.setAttribute("data-webpack",n+o),u.src=e),t[e]=[r];var d=function(n,r){u.onerror=u.onload=null,clearTimeout(p);var o=t[e];if(delete t[e],u.parentNode&&u.parentNode.removeChild(u),o&&o.forEach((function(e){return e(r)})),n)return n(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=d.bind(null,u.onerror),u.onload=d.bind(null,u.onload),f&&document.head.appendChild(u)}},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.p="",r=function(e){return new Promise((function(t,n){var r=a.miniCssF(e),o=a.p+r;if(function(e,t){for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var o=(u=n[r]).getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(o===e||o===t))return u}var i=document.getElementsByTagName("style");for(r=0;r<i.length;r++){var u;if((o=(u=i[r]).getAttribute("data-href"))===e||o===t)return u}}(r,o))return t();!function(e,t,n,r){var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",o.onerror=o.onload=function(i){if(o.onerror=o.onload=null,"load"===i.type)n();else{var u=i&&("load"===i.type?"missing":i.type),a=i&&i.target&&i.target.href||t,f=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");f.code="CSS_CHUNK_LOAD_FAILED",f.type=u,f.request=a,o.parentNode.removeChild(o),r(f)}},o.href=t,document.head.appendChild(o)}(e,o,t,n)}))},o={666:0},a.f.miniCss=function(e,t){o[e]?t.push(o[e]):0!==o[e]&&{67:1,139:1,553:1}[e]&&t.push(o[e]=r(e).then((function(){o[e]=0}),(function(t){throw delete o[e],t})))},function(){var e={666:0};a.f.j=function(t,n){var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else if(666!=t){var o=new Promise((function(n,o){r=e[t]=[n,o]}));n.push(r[2]=o);var i=a.p+a.u(t),u=new Error;a.l(i,(function(n){if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;u.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",u.name="ChunkLoadError",u.type=o,u.request=i,r[1](u)}}),"chunk-"+t,t)}else e[t]=0},a.O.j=function(t){return 0===e[t]};var t=function(t,n){var r,o,i=n[0],u=n[1],f=n[2],c=0;if(i.some((function(t){return 0!==e[t]}))){for(r in u)a.o(u,r)&&(a.m[r]=u[r]);if(f)var l=f(a)}for(t&&t(n);c<i.length;c++)o=i[c],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.O(l)},n=self.webpackChunkreactphp_website=self.webpackChunkreactphp_website||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}()}();</script>
<style>@font-face{font-display:swap;font-family:Source Sans Pro;font-style:normal;font-weight:400;src:local("Source Sans Pro Regular"),local("SourceSansPro-Regular"),url(assets/sourcesanspro-regular.f84b2bd4.woff) format("woff")}@font-face{font-display:swap;font-family:Source Sans Pro;font-style:normal;font-weight:700;src:local("Source Sans Pro Bold"),local("SourceSansPro-Bold"),url(assets/sourcesanspro-bold.cb7d3610.woff) format("woff")}@font-face{font-family:icons;font-style:normal;font-weight:400;src:url(assets/icons.f41c5641.ttf?ae19fi) format("truetype"),url(assets/icons.cf61dfff.woff?ae19fi) format("woff"),url(assets/icons.b4abbede.svg?ae19fi#icons) format("svg")}[class*=" icon-"],[class^=icon-]{speak:none;-webkit-font-feature-settings:normal;font-feature-settings:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:icons!important;font-style:normal;font-variant:normal;font-weight:400;line-height:1;text-transform:none}.icon-hash:before{content:"\e900"}.icon-twitter:before{content:"\e901"}.icon-github:before{content:"\e902"}.icon-blog:before{content:"\e905"}.icon-earth:before{content:"\e903"}.icon-link:before{content:"\e906"}.icon-youtube:before{content:"\e904"}.icon-book:before{content:"\f007"}.icon-calendar:before{content:"\f068"}.icon-chevron-down:before{content:"\f0a3"}.icon-chevron-up:before{content:"\f0a2"}.icon-law:before{content:"\f0d8"}.icon-search:before{content:"\f02e"}.icon-x:before{content:"\f081"}.icon-feed:before{content:"\ea9b"}[class*=" icon-"],[class^=icon-]{vertical-align:-8%}html{-webkit-box-sizing:border-box;box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:16px;line-height:1.6}@media (max-width:768px){html{font-size:18px}}*,:after,:before{-webkit-box-sizing:inherit;box-sizing:inherit}body{background-color:#fff;color:#584b4f;color:var(--color-base);margin:0}a{color:#4f5b93;color:var(--color-key)}a:hover{color:#a2aacd;color:var(--color-key-light);text-decoration:underline}blockquote{background-color:#f4f3f1;background-color:var(--color-background-lighter);border-left:4px solid #4f5b93;border-left:4px solid var(--color-key);border-radius:4px;-webkit-box-shadow:0 1px 0 0 rgba(0,0,0,.1);box-shadow:0 1px 0 0 rgba(0,0,0,.1);-webkit-box-shadow:var(--box-shadow-lighter);box-shadow:var(--box-shadow-lighter);font-size:.875rem;padding:16px 16px 16px 24px;position:relative}blockquote:before{background:#4f5b93;background:var(--color-key);border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;content:"i";display:block;font-size:12px;font-weight:700;height:24px;left:-14px;line-height:24px;padding:0 4px;position:absolute;text-align:center;top:12px;width:24px}blockquote :last-child{margin-bottom:0}blockquote,fieldset,form,h1,h2,h3,h4,h5,h6,hr,ol,p,ul{margin:0 0 16px}ul ul{margin-bottom:0}hr{border:0;border-bottom:1px dashed #eae8e3;border-bottom:1px dashed var(--color-background-light);clear:both;height:0;padding:0}h1,h2,h3,h4,h5,h6{-webkit-font-smoothing:antialiased;color:#584b4f;color:var(--color-base);font-family:Source Sans Pro,Helvetica Neue,Arial,sans-serif;font-weight:700;line-height:1}h1 a,h1 a:hover,h2 a,h2 a:hover,h3 a,h3 a:hover,h4 a,h4 a:hover,h5 a,h5 a:hover,h6 a,h6 a:hover{text-decoration:none}h1{font-size:2.5rem;letter-spacing:-1px;margin-bottom:32px}h1,h1 a,h1 a:hover{color:#4f5b93;color:var(--color-key)}h1:not(:first-child){margin-top:32px}h2{font-size:2rem;margin-bottom:32px}h2,h2 a,h2 a:hover{color:#4f5b93;color:var(--color-key)}h2:not(:first-child){margin-top:32px}h3{font-size:1.5rem;margin-bottom:24px}h3,h3 a,h3 a:hover{color:#584b4f;color:var(--color-base)}h3:not(:first-child){margin-top:24px}h4{font-size:1.25rem}h4,h4 a,h4 a:hover{color:#4f5b93;color:var(--color-key)}h4:not(:first-child){margin-top:24px}@media (max-width:768px){h1{font-size:2rem}h2{font-size:1.75rem;margin-bottom:32px}}.container{padding:32px}@media (max-width:768px){.container{padding:16px}}.wrapper{margin:auto;max-width:1600px}.wrapper--medium{max-width:1280px}.wrapper--small{margin:auto;max-width:960px}.wrapper--narrow{max-width:640px}.main{width:calc(98% - 400px)}.main,.sidebar{margin-bottom:32px}.sidebar{width:calc(400px - 2%)}@media (max-width:1024px){.main,.sidebar{margin-top:16px;width:auto}}.visually-hidden{clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;position:absolute!important;width:1px}.grid{-ms-flex-pack:center;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;justify-content:center;margin-left:-2%;width:102%}.grid>*{margin-left:2%;max-width:100%}.grid--4cols>*{-ms-flex-preferred-size:23%;flex-basis:23%}.grid--3cols>*{-ms-flex-preferred-size:31.33%;flex-basis:31.33%}.grid--2cols>*{-ms-flex-preferred-size:48%;flex-basis:48%}@media (max-width:768px){.grid{-ms-flex-direction:column;flex-direction:column}.grid,.grid>*{margin-left:0;width:100%}.grid>*{-ms-flex:0 0 auto;flex:0 0 auto}}.center{text-align:center}.center h1,.center h2,.center h3,.center h4,.center h5,.center h6,.hamburger{display:inline-block}.hamburger{background-color:transparent;border:0;color:inherit;cursor:pointer;font:inherit;height:48px;margin:0;outline:none;overflow:visible;padding:14px 12px;text-transform:none}.hamburger__box{display:inline-block;height:16px;position:relative;width:24px}.hamburger__inner{display:block;margin-top:-2px;top:50%}.hamburger__inner,.hamburger__inner:after,.hamburger__inner:before{background-color:#584b4f;background-color:var(--color-base);border-radius:2px;height:3px;position:absolute;-webkit-transition-duration:.15s;-o-transition-duration:.15s;transition-duration:.15s;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;-o-transition-property:transform;transition-property:transform;transition-property:transform,-webkit-transform;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;width:24px}.hamburger__inner:after,.hamburger__inner:before{content:"";display:block}.hamburger__inner:before{top:-6px}.hamburger__inner:after{bottom:-6px}.header{background:#fefefe;-webkit-box-shadow:0 1px 0 0 rgba(0,0,0,.08);box-shadow:0 1px 0 0 rgba(0,0,0,.08);-webkit-box-shadow:var(--box-shadow-lightest);box-shadow:var(--box-shadow-lightest);padding:0 32px;width:100%}@media (max-width:768px){.header{padding:0 16px}}.header__container{-ms-flex-align:center;-ms-flex-pack:justify;align-items:center;display:-ms-flexbox;display:flex;justify-content:space-between;position:relative;width:100%}.header__logo{display:block;line-height:1;padding:16px 0}.header__logo svg{display:block;height:18px;width:120px}.header__search{margin:0;position:absolute;right:48px;top:7px;z-index:799}.header__search input{width:400px}@media (max-width:768px){.header__search input{width:calc(100vw - 94px)}}.header__menu{position:absolute;right:-12px;top:0;z-index:800}.footer{background:#584b4f;background:var(--color-base);padding:32px;text-align:center;text-shadow:1px 1px 0 rgba(0,0,0,.125)}.footer .links a{color:#eae8e3;color:var(--color-background-light);text-decoration:none}.footer .links a:hover{color:#9ad8bb;color:var(--color-green-light);text-decoration:none}.iframe{height:0;overflow:hidden;padding-bottom:56.25%;position:relative;width:100%}.iframe iframe{height:100%;left:0;position:absolute;top:0;width:100%}.links{margin:0;padding:0}.links li{display:inline-block;margin:0 8px;text-decoration:none}.links li:first-child{margin-left:0}.links li:last-child{margin-right:0}.links a{display:block}.box,.links a,.links a:hover{text-decoration:none}.box{background:#f4f3f1;background:var(--color-background-lighter);border-radius:4px;-webkit-box-shadow:0 1px 0 0 rgba(0,0,0,.1);box-shadow:0 1px 0 0 rgba(0,0,0,.1);-webkit-box-shadow:var(--box-shadow-lighter);box-shadow:var(--box-shadow-lighter);color:inherit;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-bottom:24px;margin-top:0;overflow:auto;padding:24px;text-align:left;vertical-align:top}.box:hover{background:#eae8e3;background:var(--color-background-light);-webkit-box-shadow:0 1px 0 0 rgba(0,0,0,.15);box-shadow:0 1px 0 0 rgba(0,0,0,.15);-webkit-box-shadow:var(--box-shadow-light);box-shadow:var(--box-shadow-light);text-decoration:none}.box h1,.box h2,.box h3,.box h4,.box h5,.box h6,.box hr,.box ol,.box p,.box ul{margin-bottom:8px}.box h1,.box h2,.box h3,.box h4,.box h5,.box h6{color:#584b4f;color:var(--color-base)}.box :first-child{margin-top:0}.box :last-child{margin-bottom:0}.box__content{-ms-flex-positive:1;color:#584b4f;color:var(--color-base);flex-grow:1;text-decoration:none}.box__content p{font-size:.875rem}.box__content:hover{color:#584b4f;color:var(--color-base);text-decoration:none}.box__content:not(:last-child){margin-bottom:16px}.box__link{display:block;font-size:.75rem;text-decoration:none}.box__link,.box__link [class*=icon]{color:#4f5b93;color:var(--color-key)}.box__link:hover{color:#a2aacd;color:var(--color-key-light);text-decoration:none}code,pre,tt{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}code,tt{background-color:rgba(0,0,0,.05);border-radius:4px;font-size:.75rem;margin:0;padding:.3rem .45rem}code br,tt br{display:none}del code{text-decoration:inherit}pre{word-wrap:normal;font-size:.875rem;line-height:1.45;text-align:left}@media (max-width:768px){pre{font-size:.75rem}}pre>code{background:transparent;border:0;font-size:100%;margin:0;padding:0;white-space:pre;word-break:normal}.highlight{margin-bottom:16px}.highlight pre{margin-bottom:0;word-break:normal}.highlight pre,pre{background-color:#f9f9f8;background-color:var(--color-background-lightest);border-radius:4px;-webkit-box-shadow:0 1px 0 0 rgba(0,0,0,.08);box-shadow:0 1px 0 0 rgba(0,0,0,.08);-webkit-box-shadow:var(--box-shadow-lightest);box-shadow:var(--box-shadow-lightest);color:#584b4f;color:var(--color-base);overflow:auto;padding:16px 16px 14px;text-shadow:none!important}pre code,pre tt{word-wrap:normal;background-color:transparent;border:0;display:inline;line-height:inherit;margin:0;max-width:none;overflow:visible;padding:0}pre code:after,pre code:before,pre tt:after,pre tt:before{content:normal}.pl-c{color:#969896}.pl-c1,.pl-s .pl-v{color:#0086b3}.pl-e,.pl-en{color:#795da3}.pl-s .pl-s1,.pl-smi{color:#444}.pl-ent{color:#63a35c}.pl-k{color:#a71d5d}.pl-pds,.pl-s,.pl-s .pl-pse .pl-s1,.pl-sr,.pl-sr .pl-cce,.pl-sr .pl-sra,.pl-sr .pl-sre{color:#183691}.pl-smw,.pl-v{color:#ed6a43}.pl-bu{color:#b52a1d}.pl-c2,.pl-ii{background-color:#b52a1d;color:#f8f8f8}.pl-c2:before{content:"^M"}.pl-sr .pl-cce{color:#63a35c;font-weight:700}.pl-ml{color:#693a17}.pl-mh,.pl-mh .pl-en,.pl-ms{color:#1d3e81;font-weight:700}.pl-mq{color:teal}.pl-mi{color:#333;font-style:italic}.pl-mb{color:#333;font-weight:700}.pl-md{background-color:#ffecec;color:#bd2c00}.pl-mi1{background-color:#eaffea;color:#55a532}.pl-mc{background-color:#ffe3b4;color:#ef9700}.pl-mi2{background-color:grey;color:#d8d8d8}.pl-mdr{color:#795da3;font-weight:700}.pl-mo{color:#1d3e81}.pl-ba{color:#595e62}.pl-sg{color:silver}.pl-corl{color:#183691;text-decoration:underline}.anchor{display:block;float:left;padding-right:2px;position:absolute;text-decoration:none!important;-webkit-transform:translateX(-100%);transform:translateX(-100%)}.anchor:focus{outline:none}.anchor>*{visibility:hidden}:hover>.anchor>*{visibility:visible}.anchor>:before{color:#a2aacd;color:var(--color-key-light);content:"#";font-weight:400!important}.anchor--disable .anchor>*,.anchor.anchor--disable>*{visibility:hidden!important}.searchbox{width:100%}.searchbox,.searchbox:focus{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#eae8e3 url(assets/search.17d09555.svg) no-repeat 10px;background:var(--color-background-light) url(assets/search.17d09555.svg) no-repeat 10px center;background-size:16px 16px;border:0;border-radius:4px;-webkit-box-shadow:0 1px 0 0 rgba(0,0,0,.15);box-shadow:0 1px 0 0 rgba(0,0,0,.15);-webkit-box-shadow:var(--box-shadow-light);box-shadow:var(--box-shadow-light);color:#584b4f;color:var(--color-base);font-size:.875rem;line-height:24px;outline:none;padding:6px 8px 6px 32px;-webkit-transition:width .35s cubic-bezier(.23,1,.32,1);-o-transition:width .35s cubic-bezier(.23,1,.32,1);transition:width .35s cubic-bezier(.23,1,.32,1)}.searchbox::-webkit-input-placeholder{color:#afa1a5;color:var(--color-base-light)}.searchbox:-moz-placeholder,.searchbox::-moz-placeholder{color:#afa1a5;color:var(--color-base-light)}.searchbox::-moz-placeholder{opacity:1}.searchbox:-ms-input-placeholder{color:#afa1a5;color:var(--color-base-light)}.searchbox:focus{background-color:#f4f3f1!important;background-color:var(--color-background-lighter)!important;-webkit-box-shadow:0 1px 0 0 rgba(0,0,0,.1);box-shadow:0 1px 0 0 rgba(0,0,0,.1);-webkit-box-shadow:var(--box-shadow-lighter);box-shadow:var(--box-shadow-lighter)}.searchbox--collapsed:not(:focus){background-color:transparent;border:0;-webkit-box-shadow:none;box-shadow:none;cursor:pointer;margin-right:-12px;width:32px!important}.searchbox--collapsed:not(:focus)::-webkit-search-cancel-button,.searchbox--collapsed:not(:focus)::-webkit-search-decoration{display:none}.searchbox--collapsed:not(:focus)::-webkit-search-results-button,.searchbox--collapsed:not(:focus)::-webkit-search-results-decoration{display:none}.searchbox--collapsed:not(:focus)::-ms-clear{display:none}.searchbox--large,.searchbox--large:focus{padding:8px 12px 8px 40px}.alert{background-color:#f4f3f1;background-color:var(--color-background-lighter);border-left:4px solid #ba3525;border-left:4px solid var(--color-red);border-radius:4px;-webkit-box-shadow:0 1px 0 0 rgba(0,0,0,.1);box-shadow:0 1px 0 0 rgba(0,0,0,.1);-webkit-box-shadow:var(--box-shadow-lighter);box-shadow:var(--box-shadow-lighter);font-size:.9em;padding:16px 16px 16px 24px;position:relative}.alert:before{background:#ba3525;background:var(--color-red);border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;content:"!";display:block;font-size:12px;font-weight:700;height:24px;left:-14px;line-height:22px;padding:0 4px;position:absolute;text-align:center;top:12px;width:24px}.alert a{color:#ba3525;color:var(--color-red)}.alert :last-child{margin-bottom:0}.toc{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;list-style:none;margin-left:-4px;padding:0}.toc li{margin:4px}.toc a{background-color:#584b4f;background-color:var(--color-base);border-radius:4px;-webkit-box-shadow:0 1px 0 0 rgba(0,0,0,.1);box-shadow:0 1px 0 0 rgba(0,0,0,.1);-webkit-box-shadow:var(--box-shadow-lighter);box-shadow:var(--box-shadow-lighter);display:-ms-flexbox;display:flex;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-weight:bolder;letter-spacing:normal;padding:.25rem 1rem .15rem}.toc a,.toc a:hover{color:#fff;text-decoration:none}@media (max-width:768px){.toc{font-size:.85rem}}.welcome__intro{background-image:-o-radial-gradient(center,ellipse,#fff 0,#eae8e3 100%);background-image:radial-gradient(ellipse at center,#fff 0,#eae8e3 100%);background-image:-o-radial-gradient(center,ellipse,#fff 0,var(--color-background-light) 100%);background-image:radial-gradient(ellipse at center,#fff 0,var(--color-background-light) 100%);background-position:50% 0;background-size:auto 100%;border-bottom:1px dashed #eae8e3;border-bottom:1px dashed var(--color-background-light);padding:16px 0 136px}.welcome__intro h1{color:#4f5b93;color:var(--color-key);font-size:2rem;margin-bottom:16px}.welcome__logo{display:block;margin:0 auto;max-width:320px}.welcome__logo svg{display:block;height:240px}.welcome__content{display:block;max-width:calc(98% - 320px);padding-top:16px}.welcome__example{display:block;margin:-160px auto auto;max-width:850px}.welcome__example .highlight pre{background:#fff;-webkit-box-shadow:0 0 16px #d6d1c8;box-shadow:0 0 16px #d6d1c8;-webkit-box-shadow:0 0 16px var(--color-background);box-shadow:0 0 16px var(--color-background);padding:32px}.welcome__intro .links a{color:#584b4f;color:var(--color-base);text-decoration:none}.welcome__intro .links a:hover{color:#4f5b93;color:var(--color-key);text-decoration:none}.welcome__team img{border-radius:50%;display:inline-block;max-width:190px}.welcome__team h3{display:block;margin:.2em 0}.welcome__team div.grid>*{margin-bottom:1em}@media (max-width:768px){.welcome__content{max-width:100%;padding:32px 16px 16px}.welcome__logo svg{height:160px}.welcome__intro h1{color:#4f5b93;color:var(--color-key);font-size:1.75rem;margin-bottom:16px;text-align:center}.welcome__intro .links{text-align:center}}.off-canvas-menu{pointer-events:none;position:fixed;right:0;top:0}.off-canvas-menu__content{-webkit-transform:translate3d(105%,0,0);transform:translate3d(105%,0,0)}.component-info{background-color:#f4f3f1;background-color:var(--color-background-lighter);border-radius:4px;bottom:16px;-webkit-box-shadow:0 1px 0 0 rgba(0,0,0,.1);box-shadow:0 1px 0 0 rgba(0,0,0,.1);-webkit-box-shadow:var(--box-shadow-lighter);box-shadow:var(--box-shadow-lighter);font-size:.875rem;padding:24px;position:sticky;top:16px}.component-info,.component-info a,.component-info a [class*=icon]{color:#584b4f;color:var(--color-base)}.component-info a:hover{color:#afa1a5;color:var(--color-base-light);text-decoration:none}.component-info pre{font-size:.75rem;line-height:1}.component-info__title{-ms-flex-align:center;align-items:center;color:#584b4f;color:var(--color-base);display:-ms-flexbox;display:flex;font-size:1.5rem;line-height:1rem;margin-bottom:1rem}.component-info__title a{text-decoration:none}.component-info__title>:not(:last-child){margin-right:8px}.component-info__subtitle{color:#afa1a5;color:var(--color-base-light);font-size:.875rem;font-weight:700;letter-spacing:.1em;line-height:.875rem;margin-bottom:.875rem;text-transform:uppercase}.component-info__info{-ms-flex-pack:start;display:-ms-flexbox;display:flex;-ms-flex-flow:row;flex-flow:row;justify-content:flex-start;list-style:none;padding:0}.component-info__info li{margin-right:16px}.component-info__info li:last-child{margin-right:0}.component-info__info a{font-size:.75rem;text-decoration:none;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.component-info__contributors{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;list-style:none;padding:0}.component-info__contributors li{margin:0;padding:0 4px 4px 0}.component-info__contributors img{border-radius:2px;display:block;height:auto;width:40px}.component-info__contributors img,.component-info__participation{-webkit-box-shadow:0 1px 0 0 rgba(0,0,0,.1);box-shadow:0 1px 0 0 rgba(0,0,0,.1);-webkit-box-shadow:var(--box-shadow-lighter);box-shadow:var(--box-shadow-lighter)}.component-info__participation{background-color:#f9f9f8;background-color:var(--color-background-lightest);border-radius:4px;padding:8px;text-align:center}.component-info__participation svg{display:block;height:auto!important;margin:auto;max-width:100%}:root{--color-key:#4f5b93;--color-key-light:#a2aacd;--color-base:#584b4f;--color-base-light:#afa1a5;--color-green:#40a977;--color-green-light:#9ad8bb;--color-red:#ba3525;--color-red-light:#e79187;--color-background:#d6d1c8;--color-background-light:#eae8e3;--color-background-lighter:#f4f3f1;--color-background-lightest:#f9f9f8;--box-shadow-light:0 1px 0 0 rgba(0,0,0,.15);--box-shadow-lighter:0 1px 0 0 rgba(0,0,0,.1);--box-shadow-lightest:0 1px 0 0 rgba(0,0,0,.08)}.version-selector{color:#fff;font-size:.875rem;position:relative}.version-selector :last-child{margin-bottom:0}.version-selector__button,.version-selector__version{-webkit-appearance:none;background-color:#584b4f;background-color:var(--color-base);border:0;border-radius:4px;-webkit-box-shadow:none;box-shadow:none;-webkit-box-shadow:0 1px 0 0 rgba(0,0,0,.1);box-shadow:0 1px 0 0 rgba(0,0,0,.1);-webkit-box-shadow:var(--box-shadow-lighter);box-shadow:var(--box-shadow-lighter);color:#fff;cursor:pointer;display:-ms-flexbox;display:flex;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:.75rem;font-weight:bolder;letter-spacing:normal;margin:0;outline:none;overflow:visible;padding:.25rem .4rem .2rem;text-decoration:none;text-shadow:none;text-transform:none}.version-selector__button{position:relative}.version-selector__button [class=icon-chevron-down]{display:inline-block;margin-left:4px}.version-selector__button [class=icon-chevron-up]{display:none;margin-left:4px}.version-selector__version{background-color:hsla(0,0%,100%,.33);border:1px solid transparent;color:#fff!important;text-decoration:none}.version-selector__version:hover{background-color:hsla(0,0%,100%,.11);border:1px solid hsla(0,0%,100%,.22)}.version-selector__button--dev,.version-selector__version--dev,.version-selector__version--dev:hover{background-color:#ba3525;background-color:var(--color-red)}.version-selector__button--latest,.version-selector__version--latest,.version-selector__version--latest:hover{background-color:#40a977;background-color:var(--color-green)}.version-selector__panel{position:fixed;top:-20000em;visibility:hidden}</style>
<script async src="assets/main.93d54642.js"></script>
</head>
<body>
<header class="header">
<div class="header__container">
<div class="header__menu">
<button class="hamburger" data-ctrly="off-canvas-menu" data-off-canvas-menu-control>
<div class="hamburger__box">
<div class="hamburger__inner">
<span class="visually-hidden">Menu</span>
</div>
</div>
</button>
</div>
<nav id="off-canvas-menu" class="off-canvas-menu" aria-hidden="true" tabindex="0">
<div class="off-canvas-menu__content">
<button aria-label="Close menu" class="off-canvas-menu__close" data-ctrly="off-canvas-menu" data-off-canvas-menu-control>
<i class="icon-x" aria-hidden="true"></i>
</button>
<section class="off-canvas-menu__section">
<a class="off-canvas-menu__section-top" href="./">Home</a>
</section>
<section class="off-canvas-menu__section">
<a class="off-canvas-menu__section-top" href="changelog.html">Changelog</a>
</section>
<section class="off-canvas-menu__section">
<h3 class="off-canvas-menu__section-header">Core Components</h3>
<ul class="off-canvas-menu__list">
<li>
<a class="off-canvas-menu__link" href="event-loop/">
EventLoop
<span class="off-canvas-menu__version">
v1.5.0
</span>
</a>
</li>
<li>
<a class="off-canvas-menu__link" href="stream/">
Stream
<span class="off-canvas-menu__version">
v1.4.0
</span>
</a>
</li>
<li>
<a class="off-canvas-menu__link" href="promise/">
Promise
<span class="off-canvas-menu__version">
v3.2.0
</span>
</a>
</li>
<li>
<a class="off-canvas-menu__link" href="async/">
Async
<span class="off-canvas-menu__version">
v4.3.0
</span>
</a>
</li>
</ul>
</section>
<section class="off-canvas-menu__section">
<h3 class="off-canvas-menu__section-header">Network Components</h3>
<ul class="off-canvas-menu__list">
<li>
<a class="off-canvas-menu__link" href="socket/">
Socket
<span class="off-canvas-menu__version">
v1.16.0
</span>
</a>
</li>
<li>
<a class="off-canvas-menu__link" href="datagram/">
Datagram
<span class="off-canvas-menu__version">
v1.10.0
</span>
</a>
</li>
<li>
<a class="off-canvas-menu__link" href="http/">
HTTP
<span class="off-canvas-menu__version">
v1.11.0
</span>
</a>
</li>
<li>
<a class="off-canvas-menu__link" href="dns/">
DNS
<span class="off-canvas-menu__version">
v1.13.0
</span>
</a>
</li>
</ul>
</section>
<section class="off-canvas-menu__section">
<h3 class="off-canvas-menu__section-header">Utility Components</h3>
<ul class="off-canvas-menu__list">
<li>
<a class="off-canvas-menu__link" href="cache/">
Cache
<span class="off-canvas-menu__version">
v1.2.0
</span>
</a>
</li>
<li>
<a class="off-canvas-menu__link" href="child-process/">
ChildProcess
<span class="off-canvas-menu__version">
v0.6.6
</span>
</a>
</li>
<li>
<a class="off-canvas-menu__link" href="promise-timer/">
PromiseTimer
<span class="off-canvas-menu__version">
v1.11.0
</span>
</a>
</li>
<li>
<a class="off-canvas-menu__link" href="promise-stream/">
PromiseStream
<span class="off-canvas-menu__version">
v1.7.0
</span>
</a>
</li>
</ul>
</section>
<section class="off-canvas-menu__section">
<h3 class="off-canvas-menu__section-header">Legacy Components</h3>
<ul class="off-canvas-menu__list">
<li>
<a class="off-canvas-menu__link" href="http-client/">
HttpClient
<span class="off-canvas-menu__version">
v0.5.11
</span>
</a>
</li>
<li>
<a class="off-canvas-menu__link" href="socket-client/">
SocketClient
<span class="off-canvas-menu__version">
v0.7.0
</span>
</a>
</li>
</ul>
</section>
</div>
</nav>
</div>
</header>
<header class="welcome anchor--disable">
<div class="welcome__intro">
<div class="container">
<div class="wrapper wrapper--small">
<div class="grid">
<div class="welcome__logo">
<svg xmlns="http://www.w3.org/2000/svg" width="320" height="476.037" viewBox="0 0 320 476.037"><path fill="#584b4f" d="M320 406.195l-86.506-155.403c-2.67 1.365-5.377 2.67-8.123 3.908-22.3 10.07-53.39 12.457-69.61 12.995l72.393 138.5H320z"/><path fill="#4F5B93" d="M255.323 36.793C231.543 12.263 199.5 0 159.193 0h-67.32C58.783 0 35.197 6.942 21.13 20.82 7.055 34.71.022 56.86.022 87.285v318.91h79.3V106.68c0-23.957 11.783-35.94 35.37-35.94h39.364c17.49 0 31.47 5.33 41.932 15.972 10.457 10.652 15.688 24.63 15.688 41.935 0 17.31-5.42 31.763-16.257 43.356-10.844 11.604-24.633 17.398-41.365 17.398h-16.168v-14.664L92.395 222.44l45.493 47.703v-14.54c8.476.042 50.736-.412 78.925-13.144 20.28-9.155 38.51-21.393 52.77-41.36s21.395-43.646 21.395-71.028c0-37.656-11.894-68.744-35.655-93.28z"/><path d="M30.717 452.275c1.628-2.276 2.442-4.976 2.442-8.096 0-4.294-1.36-7.835-4.068-10.63-2.71-2.8-6.36-4.197-10.953-4.197h-7.674c-3.772 0-6.458.794-8.063 2.377C.803 433.31 0 435.838 0 439.306v36.342h9.038v-17.165h6.5l9.037 17.165h10.47l-10.34-18.66c2.383-.865 4.388-2.436 6.012-4.712zm-8.45-3.318c-1.235 1.323-2.808 1.98-4.712 1.98H9.038v-9.426c0-2.726 1.343-4.094 4.03-4.094h4.487c1.992 0 3.586.607 4.777 1.822 1.192 1.215 1.79 2.808 1.79 4.78 0 1.973-.62 3.623-1.855 4.94zm20.253 14.466c0 4.552 1.05 7.73 3.152 9.527 2.104 1.8 5.755 2.696 10.957 2.696h16.383v-8.062H57.28c-2.17 0-3.663-.346-4.488-1.04-.826-.692-1.235-1.95-1.235-3.77v-6.438h14.367l.652-8.062h-15.02v-10.86h21.458v-8.06H42.52v34.07zm57.7-33.285c-.714-.52-1.657-.783-2.828-.783-1.17 0-2.156.284-2.957.847-.803.563-1.53 1.583-2.18 3.057l-14.822 42.387h9.428l2.537-7.994h15.54l2.6 7.994h9.427l-14.824-42.39c-.565-1.564-1.205-2.6-1.92-3.12zm-8.55 29.906l5.722-18.335 5.463 18.333H91.67zm52.826 5.43c-1.15 1.67-3.23 2.5-6.242 2.5-3.015 0-5.233-.91-6.665-2.728-1.388-1.822-2.083-5.226-2.083-10.207v-4.035c0-1.774.045-3.184.13-4.223.176-3.254.78-5.55 1.823-6.895 1.473-1.905 3.727-2.86 6.762-2.86 2.6 0 4.51.65 5.722 1.95 1.212 1.303 2.06 3.23 2.535 5.787h8.45c0-5.114-1.55-9.028-4.648-11.735-3.1-2.71-7.12-4.065-12.06-4.065-3.383 0-6.265.562-8.647 1.693-6.068 2.77-9.103 9.64-9.103 20.607v3.9c0 13.917 5.917 20.87 17.75 20.87 5.374 0 9.535-1.583 12.482-4.747 2.95-3.162 4.418-7.694 4.418-13.59h-8.386c-.344 3.514-1.095 6.105-2.24 7.774zm14.598-36.12v8.062h12.353v38.23h9.037v-38.23h12.412v-8.062" fill="#584b4f"/><path d="M217.867 429.354h-17.945v46.292h9.043V460.82h8.902c4.853 0 8.608-1.33 11.276-3.996 2.67-2.666 4-6.577 4-11.733s-1.33-9.07-4-11.733c-2.668-2.667-6.424-4.002-11.276-4.002zm4.518 21.584c-1.147 1.172-2.803 1.76-4.976 1.76h-8.447v-15.282h8.445c4.462 0 6.696 2.56 6.696 7.675 0 2.73-.573 4.68-1.72 5.85zm43.725-2.01h-16.97v-19.574h-9.044v46.292h9.043v-18.72h16.97v18.72h9.034v-46.292h-9.036m48.404 4c-2.67-2.665-6.43-4-11.282-4h-17.944v46.29h9.042v-14.823h8.902c4.853 0 8.613-1.33 11.282-3.995s3.995-6.577 3.995-11.733-1.326-9.07-3.995-11.735zm-6.763 17.584c-1.15 1.172-2.81 1.76-4.977 1.76h-8.446v-15.282h8.446c4.462 0 6.702 2.56 6.702 7.675 0 2.73-.58 4.68-1.727 5.85z" fill="#4F5B93"/></svg>
</div>
<main class="welcome__content">
<h1>Event-driven, non-blocking I/O with PHP</h1>
<p>
ReactPHP is a low-level library for event-driven programming in PHP. At its core is an event loop, on top of which it provides low-level utilities, such as: Streams abstraction, async DNS resolver, network client/server, HTTP client/server and interaction with processes. Third-party libraries can use these components to create async network clients/servers and more.
</p>
<ul class="links">
<li><a href="https://github.com/reactphp"><i class="icon-github" aria-hidden="true"></i> GitHub</a></li>
<li><a href="https://twitter.com/reactphp"><i class="icon-twitter" aria-hidden="true"></i> Twitter</a></li>
<li><a href="https://gitter.im/reactphp/reactphp"><i class="icon-hash" aria-hidden="true"></i> Gitter</a></li>
</ul>
</main>
</div>
</div>
</div>
</div>
<div class="container">
<div class="wrapper wrapper--small">
<div class="welcome__example">
<div class="highlight highlight-text-html-php"><pre><span class="pl-ent"><?php</span>
<span class="pl-c">// $ composer require react/http react/socket # install example using Composer</span>
<span class="pl-c">// $ php example.php # run example on command line, requires no additional web server</span>
<span class="pl-k">require</span> <span class="pl-c1">__DIR__</span> . <span class="pl-s">'<span class="pl-s">/vendor/autoload.php</span>'</span>;
<span class="pl-s1"><span class="pl-c1">$</span>http</span> = <span class="pl-k">new</span> <span class="pl-v">React</span>\<span class="pl-v">Http</span>\<span class="pl-v">HttpServer</span>(<span class="pl-k">function</span> (<span class="pl-smi"><span class="pl-v">Psr</span>\<span class="pl-v">Http</span>\<span class="pl-v">Message</span>\<span class="pl-smi">ServerRequestInterface</span></span> <span class="pl-s1"><span class="pl-c1">$</span>request</span>) {
<span class="pl-k">return</span> <span class="pl-v">React</span>\<span class="pl-v">Http</span>\<span class="pl-v">Message</span>\Response::<span class="pl-en">plaintext</span>(
<span class="pl-s">"<span class="pl-s">Hello World!</span>\n"</span>
);
});
<span class="pl-s1"><span class="pl-c1">$</span>socket</span> = <span class="pl-k">new</span> <span class="pl-v">React</span>\<span class="pl-v">Socket</span>\<span class="pl-v">SocketServer</span>(<span class="pl-s">'<span class="pl-s">127.0.0.1:8080</span>'</span>);
<span class="pl-s1"><span class="pl-c1">$</span>http</span>-><span class="pl-en">listen</span>(<span class="pl-s1"><span class="pl-c1">$</span>socket</span>);
<span class="pl-k">echo</span> <span class="pl-s">"<span class="pl-s">Server running at http://127.0.0.1:8080</span>"</span> . <span class="pl-c1">PHP_EOL</span>;</pre></div>
<p class="center">This simple web server written in ReactPHP responds with "Hello World!" for every request.</p>
</div>
</div>
</div>
</header>
<hr>
<div class="container">
<div class="wrapper wrapper--small">
<div class="grid grid--2cols">
<div>
<p>
ReactPHP is production ready and battle-tested with millions of installations from all kinds of projects around the world.
</p>
<p>
Its event-driven architecture makes it a perfect fit for efficient network servers and clients handling hundreds or thousands of concurrent connections, long-running applications and many other forms of cooperative multitasking with non-blocking I/O operations.
</p>
<p>
What makes ReactPHP special is its vivid ecosystem with hundreds of third-party libraries allowing you to integrate with many existing systems, such as common network services, database systems and other third-party APIs.
</p>
<p>
ReactPHP is non-blocking by default. Use workers for blocking I/O.
</p>
<p>
The event loop is based on the reactor pattern (hence the name) and strongly inspired by libraries such as EventMachine (Ruby), Twisted (Python) and Node.js (V8).
</p>
</div>
<ul>
<li><strong>Production ready</strong> and battle-tested.</li>
<li><strong>Rock-solid</strong> with stable long-term support (LTS) releases.</li>
<li><strong>Requires no extensions</strong> and runs on any platform - no excuses!</li>
<li>Takes advantage of <strong>optional extensions</strong> to get better performance when available.</li>
<li><strong>Supports latest version of PHP 8+ and PHP 7+</strong> for best performance and support.</li>
<li>Still <strong>supports legacy PHP 5.3+ and HHVM</strong> for maximum compatibility.</li>
<li><strong>Well designed</strong> and <strong>reusable components</strong>.</li>
<li><strong>Decoupled parts</strong> so they can be replaced by alternate implementations.</li>
<li>Carefully <strong>tested</strong> (unit & functional).</li>
<li>Promotes <strong>standard PSRs</strong> where possible for maximum interoperability.</li>
<li>Aims to be <strong>technology neutral</strong>, so you can use your preferred application stack.</li>
<li>Small <strong>core team of professionals</strong> supported by <strong>large network</strong> of outside contributors.</li>
</ul>
</div>
</div>
</div>
<hr>
<div class="container center">
<div class="wrapper wrapper--narrow">
<form>
<input type="search" class="searchbox searchbox--large" data-docsearch placeholder="Search documentation...">
</form>
</div>
</div>
<hr>
<div class="container center">
<div class="wrapper wrapper--small">
<h2>
<a id="core-components" class="anchor" href="#core-components" aria-hidden="true">
<span aria-hidden="true" class="octicon octicon-link"></span>
</a>
Core Components
</h2>
<div class="grid grid--2cols">
<a href="event-loop/" class="box">
<div class="box__content">
<h3>EventLoop</h3>
<p>ReactPHP's core reactor event loop that libraries can use for evented I/O.</p>
</div>
<p class="box__link">
<i class="icon-book" aria-hidden="true"></i>
Read the documentation
</p>
</a>
<a href="stream/" class="box">
<div class="box__content">
<h3>Stream</h3>
<p>Event-driven readable and writable streams for non-blocking I/O in ReactPHP.</p>
</div>
<p class="box__link">
<i class="icon-book" aria-hidden="true"></i>
Read the documentation
</p>
</a>
<a href="promise/" class="box">
<div class="box__content">
<h3>Promise</h3>
<p>Promises/A implementation for PHP.</p>
</div>
<p class="box__link">
<i class="icon-book" aria-hidden="true"></i>
Read the documentation
</p>
</a>
<a href="async/" class="box">
<div class="box__content">
<h3>Async</h3>
<p>Async utilities and fibers for ReactPHP.</p>
</div>
<p class="box__link">
<i class="icon-book" aria-hidden="true"></i>
Read the documentation
</p>
</a>
</div>
</div>
</div>
<div class="container center">
<div class="wrapper wrapper--small">
<h2>
<a id="network-components" class="anchor" href="#network-components" aria-hidden="true">
<span aria-hidden="true" class="octicon octicon-link"></span>
</a>
Network Components
</h2>
<div class="grid grid--2cols">
<a href="socket/" class="box">
<div class="box__content">
<h3>Socket</h3>
<p>Async, streaming plaintext TCP/IP and secure TLS socket server and client connections for ReactPHP.</p>
</div>
<p class="box__link">
<i class="icon-book" aria-hidden="true"></i>
Read the documentation
</p>
</a>
<a href="datagram/" class="box">
<div class="box__content">
<h3>Datagram</h3>
<p>Event-driven UDP client and server sockets for ReactPHP.</p>
</div>
<p class="box__link">
<i class="icon-book" aria-hidden="true"></i>
Read the documentation
</p>
</a>
<a href="http/" class="box">
<div class="box__content">
<h3>HTTP</h3>
<p>Event-driven, streaming HTTP client and server implementation for ReactPHP.</p>
</div>
<p class="box__link">
<i class="icon-book" aria-hidden="true"></i>
Read the documentation
</p>
</a>
<a href="dns/" class="box">
<div class="box__content">
<h3>DNS</h3>
<p>Async DNS resolver for ReactPHP.</p>
</div>
<p class="box__link">
<i class="icon-book" aria-hidden="true"></i>
Read the documentation
</p>
</a>
</div>
</div>
</div>
<div class="container center">
<div class="wrapper wrapper--small">
<h2>
<a id="utility-components" class="anchor" href="#utility-components" aria-hidden="true">
<span aria-hidden="true" class="octicon octicon-link"></span>
</a>
Utility Components
</h2>
<div class="grid grid--2cols">
<a href="cache/" class="box">
<div class="box__content">
<h3>Cache</h3>
<p>Async, Promise-based cache interface for ReactPHP.</p>
</div>
<p class="box__link">
<i class="icon-book" aria-hidden="true"></i>
Read the documentation
</p>
</a>
<a href="child-process/" class="box">
<div class="box__content">
<h3>ChildProcess</h3>
<p>Event-driven library for executing child processes with ReactPHP.</p>
</div>
<p class="box__link">
<i class="icon-book" aria-hidden="true"></i>
Read the documentation
</p>
</a>
<a href="promise-timer/" class="box">
<div class="box__content">
<h3>PromiseTimer</h3>
<p>A trivial implementation of timeouts for Promises, built on top of ReactPHP.</p>
</div>
<p class="box__link">
<i class="icon-book" aria-hidden="true"></i>
Read the documentation
</p>
</a>
<a href="promise-stream/" class="box">
<div class="box__content">
<h3>PromiseStream</h3>
<p>The missing link between Promise-land and Stream-land for ReactPHP.</p>
</div>
<p class="box__link">
<i class="icon-book" aria-hidden="true"></i>
Read the documentation
</p>
</a>
</div>
</div>
</div>
<div class="container center">
<div class="wrapper wrapper--small">
<h2>
<a id="legacy-components" class="anchor" href="#legacy-components" aria-hidden="true">
<span aria-hidden="true" class="octicon octicon-link"></span>
</a>
Legacy Components
</h2>
<div class="grid grid--2cols">
<a href="http-client/" class="box">
<div class="box__content">
<h3>HttpClient</h3>
<p>[Deprecated] Event-driven, streaming HTTP client for ReactPHP.</p>
</div>
<p class="box__link">
<i class="icon-book" aria-hidden="true"></i>
Read the documentation
</p>
</a>
<a href="socket-client/" class="box">
<div class="box__content">
<h3>SocketClient</h3>
<p>[Legacy] Async, streaming plaintext TCP/IP and secure TLS based connections for ReactPHP.</p>
</div>
<p class="box__link">
<i class="icon-book" aria-hidden="true"></i>
Read the documentation
</p>
</a>
</div>
</div>
</div>
<hr>
<div class="container center">
<div class="wrapper wrapper--small">
<h2>
<a id="built-with-reactphp" class="anchor" href="#built-with-reactphp" aria-hidden="true">
<span aria-hidden="true" class="octicon octicon-link"></span>
</a>
Built with ReactPHP
</h2>
<div class="grid grid--3cols">
<a href="https://github.com/voryx/Thruway" class="box">
<div class="box__content">
<h3>Thruway</h3>
<p>PHP Client and Router Library for Autobahn and WAMP (Web Application Messaging Protocol) for Real-Time Application Messaging</p>
</div>
<p class="box__link">
<i class="icon-github" aria-hidden="true"></i>
voryx/Thruway
</p>
</a>
<a href="https://github.com/php-pm/php-pm" class="box">
<div class="box__content">
<h3>PPM - PHP Process Manager</h3>
<p>PPM is a process manager, supercharger and load balancer for modern PHP applications.</p>
</div>
<p class="box__link">
<i class="icon-github" aria-hidden="true"></i>
php-pm/php-pm
</p>
</a>
<a href="https://github.com/jolicode/php-ar-drone" class="box">
<div class="box__content">
<h3>php-ar-drone</h3>
<p>🚁 Port of node-ar-drone which allows user to control a Parrot AR Drone over PHP</p>
</div>
<p class="box__link">
<i class="icon-github" aria-hidden="true"></i>
jolicode/php-ar-drone
</p>
</a>
<a href="https://github.com/ratchetphp/Ratchet" class="box">
<div class="box__content">
<h3>Ratchet</h3>
<p>Asynchronous WebSocket server</p>
</div>
<p class="box__link">
<i class="icon-github" aria-hidden="true"></i>
ratchetphp/Ratchet
</p>
</a>
<a href="https://github.com/nrk/predis-async" class="box">
<div class="box__content">
<h3>Predis\Async</h3>
<p>Asynchronous PHP client library for Redis built on top of ReactPHP</p>
</div>
<p class="box__link">
<i class="icon-github" aria-hidden="true"></i>
nrk/predis-async
</p>
</a>
<a href="https://github.com/clue/php-redis-server" class="box">
<div class="box__content">
<h3>clue/redis-server</h3>
<p>A Redis server implementation in pure PHP</p>
</div>
<p class="box__link">
<i class="icon-github" aria-hidden="true"></i>
clue/redis-server
</p>
</a>
</div>
<p>
<a href="https://github.com/reactphp/react/wiki/Users">
And many more on our wiki page »
</a>
</p>
</div>
</div>
<hr>
<div class="container center">
<div class="wrapper wrapper--small">
<h2>
<a id="articles" class="anchor" href="#articles" aria-hidden="true">
<span aria-hidden="true" class="octicon octicon-link"></span>
</a>
Articles
</h2>
<div class="grid grid--2cols">
<a href="http://sergeyzhuk.me/reactphp-series" class="box">
<div class="box__content">
<h3>Sergey Zhuk</h3>
<p>A series of articles covering ReactPHP: from the basics to the real application examples.</p>
</div>
<p class="box__link">
<i class="icon-blog" aria-hidden="true"></i> sergeyzhuk.me
</p>
</a>
<a href="http://blog.wyrihaximus.net/categories/reactphp-series/" class="box">
<div class="box__content">
<h3>Cees-Jan Kiewiet</h3>
<p>Blog series about several ReactPHP components and how they work.</p>
</div>
<p class="box__link">
<i class="icon-blog" aria-hidden="true"></i> blog.wyrihaximus.net
</p>
</a>
<a href="https://gnugat.github.io/2016/04/13/super-speed-sf-react-php.html" class="box">
<div class="box__content">
<h3>Loïc Faugeron</h3>
<p>Super Speed Symfony - ReactPHP.</p>
</div>
<p class="box__link">
<i class="icon-blog" aria-hidden="true"></i> gnugat.github.io
</p>
</a>
<a href="http://marcjschmidt.de/blog/2014/02/08/php-high-performance.html" class="box">
<div class="box__content">
<h3>Marc J. Schmidt</h3>
<p>Bring High Performance Into Your PHP App (with ReactPHP).</p>
</div>
<p class="box__link">
<i class="icon-blog" aria-hidden="true"></i> marcjschmidt.de
</p>
</a>
</div>
</div>
</div>
<hr>
<div class="container center">
<div class="wrapper wrapper--medium">
<h2>
<a id="talks" class="anchor" href="#talks" aria-hidden="true">
<span aria-hidden="true" class="octicon octicon-link"></span>
</a>
Talks
</h2>
<div class="grid grid--3cols">
<div class="box">
<div class="box__content">
<div class="iframe">
<iframe width="854" height="480" src="https://www.youtube-nocookie.com/embed/-5ZdGUvOqx4" frameborder="0" allowfullscreen></iframe>
</div>
</div>
<a href="https://www.youtube.com/watch?v=-5ZdGUvOqx4" class="box__link">
<i class="icon-youtube" aria-hidden="true"></i> youtube.com
</a>
</div>
<div class="box">
<div class="box__content">
<div class="iframe">
<iframe width="854" height="480" src="https://www.youtube-nocookie.com/embed/s6xrnYae1FU" frameborder="0" allowfullscreen></iframe>
</div>
</div>
<a href="https://www.youtube.com/watch?v=s6xrnYae1FU" class="box__link">
<i class="icon-youtube" aria-hidden="true"></i> youtube.com
</a>
</div>
<div class="box">
<div class="box__content">
<div class="iframe">
<iframe width="854" height="480" src="https://www.youtube-nocookie.com/embed/MWNcItWuKpI" frameborder="0" allowfullscreen></iframe>
</div>
</div>
<a href="https://www.youtube.com/watch?v=MWNcItWuKpI" class="box__link">
<i class="icon-youtube" aria-hidden="true"></i> youtube.com
</a>
</div>
</div>
</div>
</div>
<hr>
<div class="welcome__team container">
<div class="wrapper wrapper--small center">
<h2>
<a id="team" class="anchor" href="#team" aria-hidden="true">
<span aria-hidden="true" class="octicon octicon-link"></span>
</a>
Get to know the people behind ReactPHP
</h2>
<p>
We're a small core team of professionals. We help manage, maintain and steer the project.<br />
But ReactPHP isn't <em>just us</em>.
We're proudly supported by a large network of outside contributors from all over the world.
</p>
</div>
<div class="wrapper wrapper--small">
<div class="grid grid--4cols">
<div class="center">
<a href="https://github.com/clue"><img src="https://github.com/clue.png" alt="Christian Lück"></a>
<h3>Christian Lück</h3>
<ul class="links">
<li><a href="https://github.com/clue" title="@clue on GitHub"><i class="icon-github" aria-hidden="true"></i><span class="visually-hidden">@clue on GitHub</span></a></li>
<li><a href="https://twitter.com/another_clue" title="@another_clue on Twitter"><i class="icon-twitter" aria-hidden="true"></i><span class="visually-hidden">@another_clue on Twitter</span></a></li>
<li><a href="https://github.com/sponsors/clue" title="Sponsor @clue on GitHub Sponsors">❤️<span class="visually-hidden">Sponsor @clue on GitHub Sponsors</span></a></li>
</ul>
</div>
<div class="center">
<a href="https://github.com/WyriHaximus"><img src="https://github.com/WyriHaximus.png" alt="Cees-Jan Kiewiet"></a>
<h3>Cees-Jan Kiewiet</h3>
<ul class="links">
<li><a href="https://github.com/WyriHaximus" title="@WyriHaximus on GitHub"><i class="icon-github" aria-hidden="true"></i><span class="visually-hidden">@WyriHaximus on GitHub</span></a></li>
<li><a href="https://twitter.com/WyriHaximus" title="@WyriHaximus on Twitter"><i class="icon-twitter" aria-hidden="true"></i><span class="visually-hidden">@WyriHaximus on Twitter</span></a></li>
<li><a href="https://github.com/sponsors/WyriHaximus" title="Sponsor @WyriHaximus on GitHub Sponsors">❤️<span class="visually-hidden">Sponsor @WyriHaximus on GitHub Sponsors</span></a></li>
</ul>
</div>
<div class="center">
<a href="https://github.com/jsor"><img src="https://github.com/jsor.png" alt="Jan Sorgalla"></a>
<h3>Jan Sorgalla</h3>
<ul class="links">
<li><a href="https://github.com/jsor" title="@jsor on GitHub"><i class="icon-github" aria-hidden="true"></i><span class="visually-hidden">@jsor on GitHub</span></a></li>
<li><a href="https://twitter.com/jansor" title="@jansor on Twitter"><i class="icon-twitter" aria-hidden="true"></i><span class="visually-hidden">@jansor on Twitter</span></a></li>
</ul>
</div>
<div class="center">
<a href="https://github.com/cboden"><img src="https://github.com/cboden.png" alt="Chris Boden"></a>
<h3>Chris Boden</h3>
<ul class="links">
<li><a href="https://github.com/cboden" title="@cboden on GitHub"><i class="icon-github" aria-hidden="true"></i><span class="visually-hidden">@cboden on GitHub</span></a></li>
<li><a href="https://twitter.com/boden_c" title="@boden_c on Twitter"><i class="icon-twitter" aria-hidden="true"></i><span class="visually-hidden">@boden_c on Twitter</span></a></li>
</ul>
</div>
</div>
</div>
</div>
<hr>
<div class="container">
<div class="wrapper wrapper--small center">
<h2>
<a id="support" class="anchor" href="#support" aria-hidden="true">
<span aria-hidden="true" class="octicon octicon-link"></span>
</a>
Support
</h2>
<p>
<strong>Do you have a question and need help with ReactPHP?<br> Don't worry, we're here to help!</strong>
</p>
</div>
<div class="wrapper wrapper--small">
<div class="grid grid--2cols">
<div>
<p>
As a first step, check the elaborate documentation that comes with each component (see links to individual documentation for each component above).
If you find your question is not answered within the documentation, there's a fair chance that it may be relevant to more people.
Please do not hesitate to file your question as an issue in the relevant component so others can also participate.
</p>
<p>
You can find our official channel at <code><a href="https://gitter.im/reactphp/reactphp">reactphp/reactphp</a></code> on <code>Gitter.im</code>.
Many of us are available in this channel, so many questions get answered in a few minutes to some hours. We also use this channel to announce all new releases and ongoing development efforts.
</p>
<p>
Also follow <a href="https://twitter.com/reactphp" rel="nofollow">@reactphp</a> on Twitter for updates. We use this mostly for noteworthy, bigger updates and to keep the community updated about ongoing development efforts.
You can always use the <code>#reactphp</code> hashtag if you have anything to share!
</p>
</div>
<div>
<p>
We're a very open project and we prefer public communication whenever possible, so that more people can participate and help getting the best solutions available.
At the same time, we realize that some things are better addressed in private.
</p>
<p>
Whether you just want to say <em>thank you</em>, want to report a security issue or want to help sponsor a certain feature development, you can reach out to the core team in private by sending an email to <code>[email protected]</code>.
Please keep in mind that we're a small team of volunteers and do our best to support anybody reaching out.
</p>
<p>
Do you want to support ReactPHP? Awesome! Let's start with letting the the world know why you think ReactPHP is awesome and try to help others getting on board!
Send a tweet, write a blog post, give a talk at your local user group or conference or even write a book.
There are many ways you can help. You can always reach out to us in private and help others in our support channels. Thank you!
</p>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="wrapper">
<ul class="links">
<li><a href="https://github.com/reactphp"><i class="icon-github" aria-hidden="true"></i> GitHub</a></li>
<li><a href="https://twitter.com/reactphp"><i class="icon-twitter" aria-hidden="true"></i> Twitter</a></li>
<li><a href="https://gitter.im/reactphp/reactphp"><i class="icon-hash" aria-hidden="true"></i> Gitter</a></li>
</ul>
</div>
</footer>
</body>
</html>