All Projects → mpyw → Php Hyper Builtin Server

mpyw / Php Hyper Builtin Server

Licence: mit
Reverse proxy for PHP built-in server which supports multiprocessing and TLS/SSL encryption

Projects that are alternatives of or similar to Php Hyper Builtin Server

Greenlock
Automatic SSL renewal for NodeJS
Stars: ✭ 30 (-67.74%)
Mutual labels:  ssl, tls
Ghostunnel
A simple SSL/TLS proxy with mutual authentication for securing non-TLS services
Stars: ✭ 1,296 (+1293.55%)
Mutual labels:  ssl, tls
Bugsite Index
Index of websites publishing bugs along the lines of heartbleed.com
Stars: ✭ 38 (-59.14%)
Mutual labels:  ssl, tls
Sortpem
➿ Sorting utility for PEM files
Stars: ✭ 11 (-88.17%)
Mutual labels:  ssl, tls
Merecat
Small and made-easy HTTP/HTTPS server based on Jef Poskanzer's thttpd
Stars: ✭ 69 (-25.81%)
Mutual labels:  ssl, tls
Shgf
Simple HTTP golang framework
Stars: ✭ 13 (-86.02%)
Mutual labels:  ssl, tls
Ssl Baseline
DevSec SSL/TLS Baseline - InSpec Profile
Stars: ✭ 56 (-39.78%)
Mutual labels:  ssl, tls
Pyopenssl
A Python wrapper around the OpenSSL library
Stars: ✭ 701 (+653.76%)
Mutual labels:  ssl, tls
Tlslibrary
Simple TlsLibrary written in Kotlin - Provides DSL for creating TLS connections
Stars: ✭ 67 (-27.96%)
Mutual labels:  ssl, tls
Gmtls
GM TLS/SSL Based on Golang (基于国密算法的TLS/SSL代码库)
Stars: ✭ 63 (-32.26%)
Mutual labels:  ssl, tls
Mruby Tls
mruby wrapper for libtls from http://www.libressl.org/
Stars: ✭ 5 (-94.62%)
Mutual labels:  ssl, tls
Acme client
Java ACME Client application
Stars: ✭ 77 (-17.2%)
Mutual labels:  ssl, tls
Beetlex
high performance dotnet core socket tcp communication components, support TLS, HTTP, HTTPS, WebSocket, RPC, Redis protocols, custom protocols and 1M connections problem solution
Stars: ✭ 802 (+762.37%)
Mutual labels:  ssl, tls
Gocertcenter
CertCenter API Go Implementation
Stars: ✭ 21 (-77.42%)
Mutual labels:  ssl, tls
Netcoreserver
Ultra fast and low latency asynchronous socket server & client C# .NET Core library with support TCP, SSL, UDP, HTTP, HTTPS, WebSocket protocols and 10K connections problem solution
Stars: ✭ 799 (+759.14%)
Mutual labels:  ssl, tls
Nico
A HTTP2 web server for reverse proxy and single page application, automatically apply for ssl certificate, Zero-Configuration.
Stars: ✭ 43 (-53.76%)
Mutual labels:  ssl, tls
Devcert
Local HTTPS development made easy
Stars: ✭ 655 (+604.3%)
Mutual labels:  ssl, tls
Certigo
A utility to examine and validate certificates in a variety of formats
Stars: ✭ 662 (+611.83%)
Mutual labels:  ssl, tls
Wolfssl
wolfSSL (formerly CyaSSL) is a small, fast, portable implementation of TLS/SSL for embedded devices to the cloud. wolfSSL supports up to TLS 1.3!
Stars: ✭ 1,098 (+1080.65%)
Mutual labels:  ssl, tls
Docker Openldap
Docker OpenLDAP Container w/TLS & Replication Support S6 Overlay, and Zabbix Monitoring based on Alpine
Stars: ✭ 74 (-20.43%)
Mutual labels:  ssl, tls

PHP Hyper Built-in Server Build Status Scrutinizer Code Quality

Reverse proxy for PHP built-in server which supports multiprocessing and TLS/SSL encryption.

Installing

Global install

composer global require mpyw/php-hyper-builtin-server:^3.0

If not yet, you must add ~/.composer/vendor/bin to $PATH.
Append the following statement to ~/.bashrc, ~/.zshrc or what not.

export PATH="$HOME/.composer/vendor/bin:$PATH"

Local install only for development environment

composer require --dev mpyw/php-hyper-builtin-server:^3.0

Use vendor/bin/hyper-run as the execution path.

Usage

Quick start

hyper-run -S localhost -s localhost -t src/app/www

2 servers will start with the directory src/app/www as the document root:

  • http://localhost:8000
  • https://localhost:44300

Servers start with first unoccupied port within range depending on a scheme.

Scheme Default Range
HTTP 8000 8000-8099
HTTPS 44300 44300-44399

Customize ports

hyper-run -S localhost:8080 -s localhost:4000 -t src/app/www

2 servers will start with the directory src/app/www as the document root:

  • http://localhost:8080
  • https://localhost:4000

Command Reference

[email protected]:~$ hyper-run -h

Usage:
    hyper-run <options>

Example:
    hyper-run -S localhost:8000 -s localhost:44300

[Required]
    -S   "<Host>:<Port>" of an HTTP server. Multiple arguments can be accepted.
    -s   "<Host>:<Port>" of an HTTPS server. Multiple arguments can be accepted.

[Optional]
    -n   The number of PHP built-in server clusters, from 1 to 20. Default is 10.
    -t   Path for the document root. Default is the current directory.
    -r   Path for the router script. Default is empty.
    -c   Path for the PEM-encoded certificate.
         Default is "/Users/mpyw/.composer/vendor/mpyw/php-hyper-builtin-server/certificate.pem".

Restrictions:
    - The option -s is only supported on PHP 5.6.0 or later.
    - Access logs will not be displayed on Windows.

[email protected]:~$

Note for Windows users

Unfortunately, cmd.exe has no option to run via shebang #!/usr/bin/env php, so you need to create the following batch file in the proper directory.

For Standalone PHP

@echo OFF
"C:\php\php.exe" "%HOMEPATH%\.composer\vendor\mpyw\php-hyper-builtin-server\hyper-run" %*

For XAMPP

@echo OFF
"C:\xampp\php\php.exe" "%HOMEPATH%\.composer\vendor\mpyw\php-hyper-builtin-server\hyper-run" %*

License

  • PHP Hyper Built-in Server is open-sourced software licensed under the MIT license by @mpyw.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].