# @windastella/php-server

> Serve PHP server

Latest version **1.0.1** (published 2020-04-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @windastella/php-server
pnpm add @windastella/php-server
yarn add @windastella/php-server
bun add @windastella/php-server
```

Provides the command `php-server`.

## Health

**Score 5/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-04-15 |
| First published | 2020-04-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 2.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Nik Mirza |
| Maintainers | windastella |

## Links

- npm: https://www.npmjs.com/package/@windastella/php-server
- Repository: https://github.com/Windastella/php-server
- Homepage: https://github.com/Windastella/php-server#readme
- Issues: https://github.com/Windastella/php-server/issues
- npm.io page: https://npm.io/package/@windastella/php-server

## Dependencies (7)

- [opn](https://npm.io/package/opn.md) ^5.5.0
- [cors](https://npm.io/package/cors.md) ^2.8.5
- [path](https://npm.io/package/path.md) ^0.12.7
- [express](https://npm.io/package/express.md) ^4.17.1
- [node-php](https://npm.io/package/node-php.md) github:Windastella/node-php
- [commander](https://npm.io/package/commander.md) ^2.20.3
- [body-parser](https://npm.io/package/body-parser.md) ^1.19.0

## Recent versions

- 1.0.1 (latest) — 2020-04-15
- 1.0.0 — 2020-04-15

## README

# PHP-SERVER

Setup a simple Express server that can run PHP script. This is possible with:

1. [node-php](https://github.com/mkschreder/node-php) by mkshcreder

## Installation

This node require php-cgi and your choosen version of PHP installed:

`sudo apt-get install php-cgi php7.0 libapache2-mod-php7.0 php7.0 php7.0-common php7.0-gd php7.0-mysql php7.0-mcrypt php7.0-curl php7.0-intl php7.0-xsl php7.0-mbstring php7.0-zip php7.0-bcmath php7.0-iconv`

### Windows using Choco

`choco install -y php`

### Install the Server

Install php-server with npm:

`npm install -g @windastella/php-server`

Start the server:

`php-server --port 8080 --host 0.0.0.0 --dir public`

## Options

`-p,--port` Set port Number , default `8080`

`-h,--host` Set host Address , default `0.0.0.0`

`-d,--dir` Set directory to serve, default ``

---
_Source: https://npm.io/package/@windastella/php-server · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
