Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ This repository contains shared files for all documentation pages as well as the
## Setup for a new repository

```bash
<a href:https://github.com/>Github</a>
git submodule add https://github.com/amphp/amphp.github.io docs/.shared
# copy .gitignore, _config.yml and Gemfile from another repository
# adjust navigation and paths in _config.yml
Expand Down
12 changes: 7 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ <h1>
if ($response->getStatus() !== 200) {
<span class="help-bubble" title="Throw normal exceptions to indicate errors"></span> throw new HttpException;
}
} catch (HttpException $e) <span class="help-bubble" title="Ordinary catch clauses to handle errors"></span> {
// handle error
}</code></pre>
} catch (HttpException $e) <span class="help-bubble" title="Ordinary catch clauses to handle errors"></span>
{
// handle error }
</code></pre>
</div>
</div>

Expand Down Expand Up @@ -117,12 +118,13 @@ <h3 class="headline-link"><a href="//amphp.org/byte-stream">Streams<i class="fa

<div class="content site-width">
<h2>Use Cases</h2>

</div>
<div>
Amp can be used wherever you have to wait for multiple I/O activities to happen without them having to happen in a specific order (sequentially). It can be used in all SAPIs reaching from Apache and PHP-FPM to PHP-CLI. If you don't have a long running application, you might find <a href="/amp/promises/miscellaneous#wait"><code>Amp\Promise\wait()</code></a> helpful.
</div>

<div class="cols">
</div>
<div>
<h3>Multiplexing I/O</h3>
<p>
Expand Down Expand Up @@ -154,4 +156,4 @@ <h2>Compatible Packages</h2>
<p>
<a href="//amphp.org/react-adapter">Every ReactPHP library is compatible with Amp</a>, so you don't need to choose between those two.
</p>
</div>
</div>