You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ Introduction
6
6
7
7
This library is created in order to use reactPHP as a HTTP server for Slim framework. It will launch a Slim\App process when a request is made, and at the same time it will transfer data from reactPHP native objects into Slim objects. With this, we will be able to create a basic react server for a Slim framework application.
8
8
9
-
Data, cookies and file uploads transmission between react and Slim objects. You can access through slim objects native functions to uploaded files and cookies.
9
+
Data, cookies and file uploads transmission between react and Slim objects. You can access through slim native functions to uploaded files, data and cookies.
10
10
11
11
##Installation
12
12
You can install the component in the following ways:
@@ -17,6 +17,8 @@ You can install the component in the following ways:
17
17
##Usage
18
18
After the composer autoload requirement a Slim\App should be instanced and prepared as usual. Slim\App can be bootstrapped and all dependencies can be injected as you like, after that, a reactphp-slim server should be instanced and call the run method in it, using slim\App as parameter. The reactphp-slim server will act as intermediary and will launch the slim application through the ``process`` method when requested, this method avoids the usual request and response bootstrap made by Slim.
19
19
20
+
When uploading files, move_uploaded_files() probably won't work, use native object methods to move the file.
21
+
20
22
```php
21
23
require '../vendor/autoload.php';
22
24
@@ -31,7 +33,12 @@ $app->any('/hello/{name}', function (
0 commit comments