GitShow/sindresorhus/php-server
sindresorhus

php-server

Start a PHP server

by sindresorhus
developmentnodejsnpm-packagephpphp-serverwebserver
Star on GitHubForknpm

JavaScript

138 stars8 forks2 contributorsQuiet · 9mo agoSince 2019v3.0.0MIT

Meet the team

See all 2 on GitHub →
sindresorhus
sindresorhus16 contributions
Richienb
Richienb1 contribution

Languages

View on GitHub →
JavaScript94.5%
TypeScript5.5%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
coolhome
Inconsistent behavior between `hostname` and `open`.ClosedIssue

Below was pretty confusing. When setting open to a string I would expect it to be check relative vs absolute. : '0.0.0.0' : true Opens browser with : '0.0.0.0' : 'http://127.0.0.1:8080', Opens browser with : 'localhost' (resolves to 127.0.0.1) : true Errors with Likely would of opened instead of

coolhome · 9mo ago
solemone
Is there a way to keep the server alive?ClosedIssue

Hi @sindresorhus, thanks for the package! We have one problem. Maybe you can help us. The server seems the be paused from time to time. Is there an option or another way to keep the server alive until I close the terminal? System: macOS 11.6, Node v14.17.3, npm 6.14.13 Every support is welcome!

solemone · 9mo ago
ferares
isServerRunning hides application errorsClosedIssue

Hi, So I was getting the following error: and, after trying some things out, I finally decided to comment out the on line 31 of and replace it with a call, after doing that I could see that the cause of the error was an undefined function, so it was an application problem not a server, or configuration one. I believe the error message is misleading and that errors of this type should still resolve the promise instead of reject it. Maybe I'm missing the reason why you're checking for and calling instead of just resolving and letting the user see the error for themselves. Please let me know your thoughts on this and thank you for your time and effort 🙌.

ferares · 9mo ago
Structured data for AI agents

Repository: sindresorhus/php-server. Description: Start a PHP server Stars: 138, Forks: 8. Primary language: JavaScript. Languages: JavaScript (94.5%), TypeScript (5.5%). License: MIT. Topics: development, nodejs, npm-package, php, php-server, webserver. Latest release: v3.0.0 (9mo ago). Open PRs: 0, open issues: 0. Last activity: 9mo ago. Community health: 71%. Top contributors: sindresorhus, Richienb.

·@ofershap

Replace github.com with gitshow.dev