Posted 18 Hours Ago Job ID: 2108199 44 quotes received

Build PHP App with Claude 3 API

Fixed Price W9 Required for U.S.
Quotes (44)  ·  Premium Quotes (1)  ·  Invited (0)  ·  Hired (0)

  Send before: July 21, 2025

Send a Quote

Programming & Development Programming & Software


Claude AI Chat System with Long-Term Memory

Description:
I’m seeking a PHP developer to build a web-based application that integrates with the Claude 3 API to support long-term, token-aware chat sessions about uploaded documents and images. The system must maintain persistent memory across sessions, allow users to upload large files (100,000+ words), and process images.

Required Features

1. User Interface (Frontend)
- Responsive web UI (Bootstrap or similar)
- Upload area for documents: .pdf, .docx, .txt
- Upload area for images: .jpg, .png, .webp
- Chat interface that shows full conversation history per session
- Ability to label and organize sessions by document name or topic

2. Backend Logic (PHP)
- Process uploaded documents into plain text
- Chunk large documents into sections to stay under token limits
- Store all chat turns (user & Claude) in a database (SQLite or MySQL)
- Track token counts per message
- Automatically fetch and include relevant prior messages in each API call (based on recency, relevance, or session scope)

3. Claude API Integration
- Send and receive messages using Claude 3 Opus API
- Include up to 200,000 tokens per interaction (input + output)
- Include base64-encoded images in API requests
- Allow users to ask Claude to interpret image content (e.g., paint label info, text on forms)

4. Memory Management System
- Save complete conversation history per document
- Retrieve and reuse chat history intelligently to fit under token window
- Prevent token overflows by trimming old/irrelevant content automatically
- Resume any session at any time without losing context

5. Security & Configuration
- Secure file uploads with size/type validation
- Claude API key stored securely via .env file or config file
- Optional: simple login system with user-level session history

Deliverables
- Complete PHP source code with install instructions
- Database schema or export file
- Fully working UI and backend (deployed locally or on a VPS)
- Documentation for configuring Claude API and system usage

Budget & Timeline
Open to hourly or fixed-rate proposals. Preference given to developers with experience working with AI APIs, token handling, or document processing. Would like to proceed quickly, but will allow reasonable time for completion.


... Show more
Thomas S United States