Automatically creates a public
folder in your project root and copies essential files (index.php
and .htaccess
) during Composer installation.
composer require quellabs/canvas-apache
When installed, this package automatically:
- Creates a
public/
directory in your project root - Copies
index.php
- a front controller that loads your application - Copies
.htaccess
- Apache configuration with URL rewriting and security settings
Basic front controller that loads Composer's autoloader and serves as your application entry point.
Apache configuration including:
- URL rewriting to index.php
- Directory browsing protection
- Hidden file access denial
- UTF-8 charset setting
- Files are only copied if they don't already exist
- Existing files are never overwritten
- The installer runs automatically on
composer install
andcomposer update
- PHP >= 8.2
- Apache web server (for .htaccess functionality)
MIT