Files
static-php-cli/docs/index.md
crazywhalecc 523335fc35 trigger
2026-04-23 15:05:12 +08:00

3.5 KiB

layout, hero, features
layout hero features
home
name tagline image actions
StaticPHP StaticPHP is a powerful tool designed for building portable executables including PHP, extensions, and more.
src alt
/images/static-php_nobg.png logo
theme text link
brand Get Started /en/guide/
theme text link
alt 中文文档 /zh/
title details
Static PHP Binary You can easily compile a standalone php binary for general use. Including cli, fpm, cgi, frankenphp SAPI.
title details
Micro Self-Extracted Executable You can compile a self-extracted executable and build with your php source code using micro SAPI.
title details
Dependency Management StaticPHP comes with dependency management and supports installation of different types of PHP extensions, packages and libraries.
<script setup> import {VPSponsors} from "vitepress/theme"; import Contributors from './.vitepress/components/Contributors.vue'; const sponsors = [ { name: 'Beyond Code', img: '/images/beyondcode-seeklogo.png', url: 'https://beyondco.de/' }, { name: 'NativePHP', img: '/images/nativephp-logo.svg', url: 'https://nativephp.com/' }, ]; </script>

Special Sponsors

Thank you to our amazing sponsors for supporting this project!

<style scoped> .sponsors-section { margin: 48px auto; padding: 32px 24px; max-width: 1152px; background: linear-gradient(135deg, var(--vp-c-bg-soft) 0%, var(--vp-c-bg) 100%); border-radius: 16px; border: 1px solid var(--vp-c-divider); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05); transition: all 0.3s ease; } .sponsors-section:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); transform: translateY(-2px); } .sponsors-header { text-align: center; margin-bottom: 24px; } .sponsors-header h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 8px 0; background: linear-gradient(120deg, var(--vp-c-brand-1), var(--vp-c-brand-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .sponsors-description { font-size: 0.95rem; color: var(--vp-c-text-2); margin: 0; line-height: 1.5; } @media (max-width: 768px) { .sponsors-section { margin: 32px 16px; padding: 24px 16px; } .sponsors-header h2 { font-size: 1.25rem; } .sponsors-description { font-size: 0.9rem; } } /* Hero logo styling */ :deep(.VPImage.image-src) { border-radius: 20px; background: linear-gradient(135deg, var(--vp-c-bg-soft) 0%, var(--vp-c-default-soft) 100%); padding: 40px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; } :deep(.VPImage.image-src:hover) { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15); } /* Dark mode adjustments for logo */ .dark :deep(.VPImage.image-src) { background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); opacity: 0.9; } .dark :deep(.VPImage.image-src:hover) { opacity: 1; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7); } /* Additional styling for the logo image itself */ :deep(.VPImage.image-src img) { max-height: 280px; width: auto; } @media (max-width: 768px) { :deep(.VPImage.image-src) { padding: 24px; } :deep(.VPImage.image-src img) { max-height: 200px; } } </style>