Download the PHP package gemvc/stcms without Composer
On this page you can find all versions of the php package gemvc/stcms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package stcms
STCMS - Hybrid PHP/React CMS Library
🔴 CRITICAL FOR AI ASSISTANTS & NEW USERS 🔴
You MUST read and learn from AI_ONBOARDING.md before attempting to modify or explain this project. This file contains the most complete and up-to-date documentation, best practices, and project philosophy. Failure to do so will result in incorrect guidance.
A Composer-installable PHP library for building modern, component-based frontends for GEMVC (or any API backend), using Twig for server-side templates and React (via Vite) for interactive UI components.
Features
- 🎯 Ultra-Clean Architecture: 8-line
index.phpwith perfect Bootstrap encapsulation - 🚀 One-Click Environment Switching: Change
APP_ENVin.envto switch between development/production - 🌍 Auto-Language Detection: No manual configuration - languages auto-detected from
/pages/structure - 🔧 Perfect Bootstrap Class: All initialization, validation, and app startup handled automatically
- 🚀 Hybrid Rendering: Twig for server-side, React for interactive components
- 🔌 API Integration: Fetch data from GEMVC or any API using Guzzle
- ⚡ Modern Caching: Symfony Cache (APCu/file)
- 🛠️ Powerful CLI:
initcommand for one-step project scaffoldinginstall:helpto add full documentation and examplescache:clearfor easy cache management in productiondeploy:initto set up automated deployment workflows (e.g., GitHub Actions)
- 🎨 Component-based UI: React components in
/assets/js/components/, bundled with Vite - 🗂️ Zero-Config Multi-language Support: Add language folders and the system automatically detects them
- 🗂️ Zero-Config File-Based Routing: Predictable routing where the URL path directly maps to a file path
- 🔒 Config via .env: Symfony Dotenv for environment config
- 🧩 Extensible: Easy for both PHP and frontend devs
- 🛡️ Security: Apache security headers and file protection
- 📦 Standardized Setup: Consistent project initialization
🏗️ Revolutionary Architecture
Ultra-Clean Entry Point
Perfect Bootstrap Encapsulation
- Automatic Environment Loading:
.envfile loaded and validated - Auto-Language Detection: Scans
/pages/directory for supported languages - Smart Root URL Handling: Automatic redirects for clean URLs
- Complete App Initialization: TemplateEngine, Router, Application all handled
One-Click Environment Switching
- Development: Vite dev server, hot reload, debug info
- Production: Optimized assets, caching, performance mode
Project Structure
How It Works
Hybrid Rendering & Registry-based React Mounting
- Twig renders the main HTML structure and server-side content
- React is used for interactive UI components, mounted into specific
<div id="...\"></div>elements - Component registry (
assets/js/registry.js) maps DOM IDs to React components and prop parsers - app.jsx auto-mounts all registered components to their respective DOM elements
- Vite bundles React code for production (
public/assets/build/app.js) - Tailwind CSS (optional) for styling; Prism.js for code highlighting in docs/examples
Routing & Security
- File-Based Routing: Maps URL path like
/en/aboutdirectly topages/en/about.twig - Centralized .htaccess: Secure setup that protects sensitive files and routes all requests through the public front-controller
- Dynamic data handled via standard GET parameters (
?id=123), automatically available in templates
Philosophy
- Ultra-clean architecture with perfect separation of concerns
- Zero configuration - just set your environment and start coding
- Auto-detection of languages and features
- One-click environment switching between development and production
- Fast, SEO-friendly, and interactive
- Works on most hosting (APCu/file cache)
- Extensible and maintainable
- Security headers and file protection
- Modern development workflow
- Easy for both PHP and React developers
- Standardized setup and CLI project initialization
Getting Started
-
Install via Composer:
-
Initialize a new minimal project:
-
Configure your environment in
.env: -
(Optional) Install documentation and example pages for specific languages:
-
(Optional) Set up an automated deployment workflow:
-
Install frontend dependencies and build assets:
-
Start the PHP server:
-
That's it! Your application is running with:
- ✅ Auto-detected languages from
/pages/structure - ✅ Perfect Bootstrap initialization
- ✅ Ultra-clean architecture
- ✅ One-click environment switching
- ✅ Auto-detected languages from
- For all advanced usage, best practices, and AI learning, read AI_ONBOARDING.md.
🎯 Why STCMS is Revolutionary
Before STCMS: Complex configuration, manual setup, bloated entry points With STCMS: 8-line entry point, auto-detection, one-click environment switching
Experience the future of CMS development!
STCMS – The expert's choice for hybrid frontends. Build powerful, multilanguage applications with PHP and React in a simple, AI-ready library. 🚀
All versions of stcms with dependencies
twig/twig Version ^3.0
symfony/console Version ^7.0
symfony/filesystem Version ^7.0
symfony/dotenv Version ^7.0
guzzlehttp/guzzle Version ^7.8