PHPackages                             bhittani/web-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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. bhittani/web-server

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

bhittani/web-server
===================

Run a web server programmatically.

0.2.0(6y ago)0981MITPHPPHP &gt;=5.6CI failing

Since Sep 22Pushed 6y ago1 watchersCompare

[ Source](https://github.com/kamalkhan/web-server)[ Packagist](https://packagist.org/packages/bhittani/web-server)[ Docs](https://github.com/kamalkhan/web-server)[ RSS](/packages/bhittani-web-server/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Web Server
==========

[](#web-server)

[![Travis Build Status](https://camo.githubusercontent.com/a586a7382b306572bc4cc0df73ca4611e60f793ab2e1bd0093a3a0f88240b96a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6b616d616c6b68616e2f7765622d7365727665722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/kamalkhan/web-server)[![Packagist Downloads](https://camo.githubusercontent.com/ca351008c980f0bb7fc8d0e9da3d9a23d74a51a4336ced7cbe248165dc82810a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6268697474616e692f7765622d7365727665722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bhittani/web-server)[![License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

Run and/or control a web server programmatically.

- [Install](#install)
- [Usage](#usage)
    - [PHP Web Server](#php-web-server)
        - [Public path](#public-path)
        - [Host](#host)
        - [Port](#port)
        - [URL](#url)
- [API](#api)
    - [Start a web server](#start-a-web-server)
    - [Stop a web server](#stop-a-web-server)
    - [Check the running state of a web server](#check-the-running-state-of-a-web-server)
    - [Get the path to the server](#get-the-path-to-the-server)
    - [Get the URL of the server](#get-the-url-of-the-server)
- [Changelog](#changelog)
- [Testing](#testing)
- [Contributing](#contributing)
- [Security](#security)
- [Credits](#credits)
- [License](#license)

Install
-------

[](#install)

You may install this package using [composer](https://getcomposer.org).

```
$ composer require bhittani/web-server --prefer-dist
```

Usage
-----

[](#usage)

By default, this package offers a php web server that uses the built-in development server.

### PHP Web Server

[](#php-web-server)

This uses the built-in development server.

```
