Hybrid PHP React CMS for Web Applications

A modern React/PHP CMS where developers build complex applications in their own way.

STCMS Logo

Welcome to STCMS

Hybrid Content Management System for Web Applications, enjoy the power of PHP and React without complexity.

fast Server-Side Rendering

Built with PHP and Twig templates for fast initial/layout page loads and SEO optimization.

  • • SEO-friendly server-side rendering
  • • Fast initial page loads with file or Apcu caching
  • • Secure authentication handling
  • • component based design

Client-Side Interactivity

React components for dynamic user interfaces and enhanced user experience.

  • • 100% React components compatibility
  • • complete isolated and independent folder for front end developers
  • • Modern UI/UX with TailwindCSS and Vite
  • • flat and open structure for react components

Install STCMS

1

Install

Terminal
composer require gemvc/stcms
Tip: Always create a git repository first!
2

Initialize

Terminal
php vendor/bin/stcms init
Tip: Run in your project root!
3

Frontend

Terminal
npm install
Tip: TailwindCSS and Vite installed automatically!
4

Assets

Terminal
npm run dev
Tip: Use npm run build for production!
5

Run Server

Terminal
php -S localhost:8000 -t public
Tip: Site available at localhost:8000
6

Optional

Terminal
php vendor/bin/stcms install:help en
Tip: Installs help pages and examples

What You Get

  • Symfony Cache - Modern caching (APCu/file)
  • Symfony Dotenv - Environment management
  • Guzzle HTTP - API integration
  • Twig Templates - Server-side rendering
  • Vite Build System - React bundling
  • Security Headers - Apache configuration
  • UI/UX - installed and ready to use TailwindCSS
  • Routing - Automatic file base multi language routing

Environment Configuration

File: .env

API_BASE_URL=http://localhost:80
CACHE_DRIVER=apcu
DEFAULT_LANGUAGE=en

Configure your environment variables for API endpoints, caching, and default language.

Common Issues

  • Composer not found: Install Composer first
  • Node.js required: Install Node.js for frontend builds
  • PHP 8.0+: Ensure you have PHP 8.0 or higher
  • APCu extension: Install for better performance (optional)