Installation
Get DevPortal installed on your local machine or server in a few steps.
Via Composer (Recommended)
The fastest way to bootstrap a new project:
composer create-project devportal/devportal my-project
cd my-project
Manual Installation
If you prefer to manage dependencies yourself, clone the repository and install:
git clone https://github.com/devportal/devportal.git
cd devportal
composer install
Directory Structure
my-project/
├── app/
│ ├── Controllers/
│ ├── Models/
│ └── Views/
├── config/
│ ├── app.php
│ └── database.php
├── public/ ← document root
│ └── index.php
├── routes/
│ └── web.php
└── composer.json
Web Server Setup
Apache
Ensure mod_rewrite is enabled, then add this .htaccess to public/:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]
Nginx
server {
listen 80;
root /var/www/my-project/public;
index index.php;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_pass unix:/run/php/php8.2-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
}
}
⚠ Warning
Never point your document root at the project root — always use
public/ to prevent exposing config/ and app/.