Download the PHP package tinywan/webman-typephp without Composer

On this page you can find all versions of the php package tinywan/webman-typephp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package webman-typephp

# Webman TypePHP AOT Build Plugin **Compile Webman applications into portable, production-ready Linux native artifacts**

PHP Version Webman Plugin TypePHP AOT Docker Builder MIT License

[English](README.md) | [δΈ­ζ–‡](README.zh-CN.md)

πŸ“– Introduction

tinywan/webman-typephp is a TypePHP AOT build plugin designed for Webman 2.x. It automatically inspects existing Webman projects, generates AOT compilation entrypoints and configurations, builds the application using pinned Docker builder images, and packages a deployment-ready dist/ directory for target Linux servers.

The host system only requires PHP, Composer, and Docker. No C++, Clang, or TypePHP compilation toolchains need to be installed locally.

πŸš€ Quick Start

1. Install Plugin

Run the following command in your Webman project root:

2. Environment Check

Check and verify PHP version, Docker CLI, and Docker daemon availability:

3. Build & Package

The default builder image is tinywan/typephp-webman-builder:v0.9.4 (portable dynamic directory); static mode uses tinywan/typephp-webman-builder-static:v0.9.4. Compilation runs entirely within Docker containers.

4. Run Artifacts

Copy the dist/ directory to a compatible Linux x86_64 server and run:

start.sh automatically configures PHPRC to load bundled php.ini and sets dynamic library search paths to the packaged lib/. Standard Workerman management commands are fully supported:

You can also launch via the wrapper script directly:

πŸ“¦ Artifact Contract

Depending on the packaging command, the build artifacts are produced in two forms:

Mode 1: Fully-Static Single Binary (php webman typephp:package --static)

Outputs a statically linked standalone executable with zero external dynamic library dependencies. It does not require any pre-installed PHP environment or glibc on the target system (runs directly on Alpine, BusyBox, or minimal Linux containers):

Key Highlights

Minimal Containerization Example (Optional)

Thanks to static linking, you can build an ultra-lightweight production container (~20MB) using the official 5MB Alpine image:


Mode 2: Portable Dynamic Directory (php webman typephp:package)

Outputs a self-contained portable directory with a precompiled libphp.so core runtime and bundled dynamic extensions. Best suited for workloads requiring native Linux .so extensions:

Key Highlights


πŸ› οΈ Commands

Command Description
php webman typephp:package Build Linux portable directory using the default builder
php webman typephp:package --static Build fully-static single binary executable (zero external dynamic library dependencies)
php webman typephp:package --force Overwrite existing output and preserve backup of old dist directory
php webman typephp:package --refresh-main Force refresh main.php from official TypePHP stub (backs up existing file)
php webman typephp:package --image=... Use a custom verified Docker image
php webman typephp:doctor Check PHP, Docker, and build prerequisites
php webman typephp:init-ci Generate Linux amd64 GitHub Actions workflow

βš™οΈ Configuration

After installing the plugin, the configuration file is located at config/plugin/tinywan/typephp/app.php:

The --image CLI option takes highest precedence; if omitted, docker.image from config is used, falling back to tinywan/typephp-webman-builder:v0.9.4.

🎯 MVP Scope & Boundaries

The current phase supports the verified combinations:

Future roadmaps include Composer dependency audits, expanded Webman extension fixtures, ARM64 builds/tests, and incremental caching.

🐳 Maintainers: Publishing Docker Builders

Regular users do not need this section. Pushing a Git tag matching vMAJOR.MINOR.PATCH (e.g. v0.9.4) triggers GitHub Actions to build and push Linux amd64 images automatically:

The repository requires DOCKER_USERNAME and DOCKER_PASSWORD (Docker Hub Access Token) secrets. Workflows only publish exact version tags and do not push latest or floating tags.

See RELEASING.md for details.

πŸ§ͺ Quality & Testing

Tests are written with Pest, formatted and linted with Mago:

Tests must not connect to production, shared, or external databases. Tests requiring databases must run in isolated temporary environments (e.g., SQLite :memory:).

πŸ—ΊοΈ Documentation & References

License

MIT Β© Tinywan


All versions of webman-typephp with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4 <8.6
symfony/process Version ^7.0 || ^8.0
workerman/webman-framework Version ^1.5.4||^2.0||dev-master
webman/console Version ^1.0||^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tinywan/webman-typephp contains the following files

Loading the files please wait ...