ChatWTF: Using OOP and Interfaces to add PHP Sessions Option for Message Storage

Опубликовано: 16 Июль 2026
на канале: Unconventional Coding
427
13

In this video I add PHP sessions as an option to my ChatWTF ChatGPT clone so that you can use it without a database.

GitHub: https://github.com/unconv/chat-wtf

Support: https://buymeacoffee.com/unconv
Consultations: https://www.buymeacoffee.com/unconv/e...
Memberships: https://www.buymeacoffee.com/unconv/m...

00:00 Intro
01:51 Creating SQLConversation class
14:00 Updating message endpoint to use new class
16:46 Updating index.php to use new class
18:44 Testing new class
21:22 Debugging
26:26 It works!
26:55 Debugging title creation issue
29:25 Creating SessionConversation class
34:49 Testing & debugging session version
42:41 It works!
43:31 Adding setting for selecting storage type
46:37 Implementing ConversationInterface
52:17 Adding autoloading
53:06 Final testing & Outro