In early 2025, I set out to create a platform that blends ancient wisdom with modern AI technology. The result? Tarot Alemi — a completely free, autonomous tarot reading experience powered by PHP, MySQL, and GPT-4.
🔧 Tech Stack
- PHP (Backend logic)
- MySQL (Database for storing cards, meanings, sessions)
- JavaScript + CSS (Frontend interactivity and animations)
- OpenAI GPT-4 API for natural language interpretation of card spreads
-
SEO-first architecture with dynamic URLs (e.g.,
/31-mayis-2025-gunluk-tarot-fali
) - Server: Apache + .htaccess rewrites
🎯 Key Features
- Users draw 3 tarot cards in a session.
- Each card has a meaning in both upright and reversed position.
- The selected cards are sent to GPT API, along with a question.
- The GPT returns a custom interpretation in natural Turkish language.
- The results are saved and timestamped in the database.
- Past readings can be viewed by IP or session ID.
🧠 AI Integration (Prompt Example)
php
$prompt = "The user drew: The Lovers (Reversed), The Hermit (Upright), The Fool (Upright).
Question: 'Does my ex miss me?'
Please give a sensitive, emotionally accurate reading in Turkish.";
Top comments (0)