Setup guide
Get the portfolio running, add your own content and choose which design is live.
Requirements
- PHP 8.1 or newer
- Apache with
mod_rewrite(XAMPP, cPanel hosting and similar)
Quick start
- Download the ZIP and unzip it into your web root, for example
htdocs/portfolio-template. - Copy
shared/.env.exampletoshared/.envand setSITE_URL. - Open
http://localhost/portfolio-template/versions.phpto preview all six designs. This page only works from localhost.
The six designs
| Folder | Design | Style |
|---|---|---|
1/ | Classic | Tailwind portfolio |
2/ | Dark gradient | Photo stack, typer, polaroids |
3/ | The Logbook | Editorial, magazine style |
4/ | DEV//OS | Neon terminal |
5/ | Transit Map | Metro map, departures board |
6/ | Chain | Blockchain explorer, wallet, node map |
Add your own content
Everything personal lives in shared/. Your name and initials come from profile.php, so headers, footers, page titles and structured data all update from that one file.
| File | What it holds |
|---|---|
shared/app/data/profile.php | Name, initials, photo, bio, links, resume details |
shared/app/data/journey.php | Timeline of work, study and travel |
shared/app/data/skills.php | Skill groups |
shared/app/data/socials.php | Social links in the footer |
shared/app/data/vlogs.php | YouTube videos |
shared/app/data/places.php | Pins on the travel map |
shared/app/data/blogs.php | Blog post list |
shared/content/blogs/*.html | Blog post bodies |
shared/assets/imgs/ | Photos, banner, favicon (the included ones are placeholders) |
Choose which design is live
The root .htaccess picks a design for each request. Edit its rules to always serve one design or to rotate them on any schedule. Each design folder also works on its own as a document root.
Contact form
Messages are sent to Telegram. Set TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID in shared/.env. Without them, the form shows an error and logs a warning.
Analytics
Set GA_ID in shared/.env to turn on Google Analytics. It stays off when APP_ENV=local.
Privacy page
Each design includes an example privacy page at N/app/views/pages/privacy.php. Rewrite it to match how you actually run your site.
Something unclear or missing? Tell us.