PHPackages                             jalsoedesign/no-dependency-http-server - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. jalsoedesign/no-dependency-http-server

ActiveLibrary[HTTP &amp; Networking](/categories/http)

jalsoedesign/no-dependency-http-server
======================================

0.0.6(3y ago)0320MITPHPPHP &gt;=5.4

Since Oct 30Pushed 3y ago1 watchersCompare

[ Source](https://github.com/h2ooooooo/php-no-dependency-http-server)[ Packagist](https://packagist.org/packages/jalsoedesign/no-dependency-http-server)[ RSS](/packages/jalsoedesign-no-dependency-http-server/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (3)Used By (0)

No Dependency HTTP Server
=========================

[](#no-dependency-http-server)

What it says on the box; a *very very basic* HTTP server with absolutely zero dependencies.

Requirements
------------

[](#requirements)

This library uses the PHP socket library, so please follow the info here:

Most PHP installations already come with this extension.

Usage
-----

[](#usage)

There's 3 main methods:

### HttpServer::infinite

[](#httpserverinfinite)

`HttpServer::infinite($callback, $port = 5000, $host = '127.0.0.1', $options = null)` runs indefinitely, until a `false` boolean is returned.

```
