Version 0.0.2 Released Archive

PHPue 0.0.2

Enhanced development experience with improved deployment, HTML language support, and smarter hot reload

Released: Dec 11, 2025
Status: Production Ready

What's New in 0.0.2

Major improvements for production and development workflows

Accessibility

HTML Language Support

  • Flexible language per view, perfect for multi-language apps.
  • lang="fr" meta tag support
  • Comment syntax:
    <!-- lang: es -->
  • Global PHPUE_LANG constant fallback
HTTP

Header Control

  • Smart output buffering for header sending
  • Send headers from backend/ files
  • Send headers from .pvue files
  • Eliminates "headers already sent" errors
Production

Enhanced Deployment

  • New .dist/ deployment method
  • Simple copy-paste to server root
  • Streamlined production workflow
  • Automatic build with ?build=1
Development

Smart Hot Reload

  • Monitors changes in view/ directory
  • Monitors changes in components/ directory
  • Instant page refresh on file changes
  • Enhanced development workflow
Core

Autoload Detection

  • Smart autoload.php detection
  • Fixes "class already declared" errors
  • Composer integration
  • Optimised backend class loading

Version Information

Version
0.0.2
Release Status
Production Ready
License
Apache 2.0
Release Date
Dec 11, 2025

New Production Deployment Methods

Method 1: .dist/ Directory

Deploy the entire .dist/ directory to your server as-is:

# Build locally
cd www/
php -S localhost:3000
Visit: localhost:3000?build=1
# Deploy to server via FTP:
πŸ“ .dist/
πŸ“ httpReqs/
πŸ“ assets/
πŸ“„ index.php
πŸ“„ conversion.php

Method 2: Root Deployment

Copy files from .dist/ to your server's root directory (public_html/):

# Build locally
# Copy these files from inside .dist/
to Web Server: public_html/
.dist/
πŸ“ ajax
πŸ“ assets
πŸ“ backend
πŸ“ components
πŸ“ httpReqs
πŸ“ pages
πŸ“„ App.php

Example structure after deployment:

public_html/
β”œβ”€β”€ App.php
β”œβ”€β”€ ajax/
β”œβ”€β”€ assets/
β”œβ”€β”€ backend/
β”œβ”€β”€ components/
β”œβ”€β”€ httpReqs/
└── pages/
└── conversion.php
└── index.php

Simplified Build Process

The ?build=1 parameter automatically compiles everything to the .dist/ directory, ready for deployment. No complex build steps needed!

# Development
$ php -S localhost:8000
# Build for production
Visit: http://localhost:8000?build=1
# Output:
βœ… Build complete! All .pvue files compiled to .dist/ directory

HTML Language Examples

Per-View Language (Meta Tag)

<header>
<meta name="lang" content="fr">
<title>Ma Page en FranΓ§ais</title>
</header>

Output: <html lang="fr">

Per-View Language (Comment)

<header>
<!-- lang: es -->
<title>Mi PΓ‘gina en EspaΓ±ol</title>
</header>

Output: <html lang="es">

Global Default Language

// In your index PHP file (Framework File)
define('PHPUE_LANG', 'de');

Default: <html lang="de"> (when view has no language)

Header Control

Send Headers from Backend

// In backend/MyClass.php
header('X-Custom-Header: MyValue');
http_response_code(201);

Headers can be sent from anywhere with output buffering

Send Headers from .pvue File

<script>
header('Cache-Control: no-cache');
</script>

PHP code in .pvue files or backend/ can now send headers

No More Errors

Fixed: "Cannot modify header information - headers already sent"

Get Started with 0.0.2

# 1. Clone and install
$ git clone git@github.com:PHPue/PHPue.git
# 2. Set view language
# Add <meta name="lang" content="fr"> to your view headers
# 3. Build for production
$ php -S localhost:8000
# Then visit: http://localhost:8000?build=1
# 4. Deploy to server
# Option A: Upload entire .dist/ directory
$ scp -r .dist/ user@server:/path/to/public_html/
# Option B: Copy contents to server root
$ cp -r .dist/* /path/to/public_html/
Your PHPue 0.0.2 application is now deployed!
Start Building with PHPue 0.0.2

Read the documentation for detailed guides and API reference