koriym/php-server

Maintainers

👁 koriym

Package info

github.com/koriym/Koriym.PhpServer

pkg:composer/koriym/php-server

Statistics

Installs: 19 823

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.1 2025-01-03 00:56 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 28133e6050f61868125828e084f15720d71d59ce

  • Akihito Koriyama <akihito.koriyama.woop@gmail.com>

This package is auto-updated.

Last update: 2026-06-11 12:48:07 UTC


README

Simple PHP built-in server utility for testing

Do you ever need to test using a http server? This utility will fast launch a built-in PHP server just when you need it.

Installation

composer require koriym/php-server

Usage

$server = new PhpServer('127.0.0.1:8080', 'path/to/index.php');
$server->start();

// your http test here

$server->stop();

You can also specify a public web directory.

$server = new PhpServer('127.0.0.1:8080', 'path/to/public');