Skip to content

Commit

Permalink
chore: Update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitpokhrel authored Sep 18, 2022
1 parent 4f4e79f commit 176dd4f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1 align="center">TusPHP</h1>
<h1 align="center">TusPHP</h1>

<p align="center">
<a href="https://packagist.org/packages/ankitpokhrel/tus-php">
Expand Down Expand Up @@ -85,14 +85,17 @@ This is how a simple server looks like.
```php
// server.php

$server = new \TusPhp\Tus\Server('redis'); // Either redis, file or apcu. Leave empty for file based cache.
// Either redis, file or apcu. Leave empty for file based cache.
$server = new \TusPhp\Tus\Server('redis');
$response = $server->serve();

$response->send();

exit(0); // Exit from current PHP process.
```

> :bangbang: File based cache is not recommended for production use.
You need to rewrite your server to respond to a specific endpoint. For example:

###### Nginx
Expand Down Expand Up @@ -503,6 +506,3 @@ You can use `xdebug enable` and `xdebug disable` to enable and disable [Xdebug](

### Questions about this project?
Please feel free to report any bug found. Pull requests, issues, and project recommendations are more than welcome!

### Supporters
[![JET BRAINS](.github/jetbrains.png)](https://www.jetbrains.com/?from=ankitpokhrel/tus-php)

0 comments on commit 176dd4f

Please sign in to comment.