PHP project ZIP File Upload
Upload a ZIP file containing your PHP project. Maximum file size: 5MB
What to upload:
- Copy your project to a new directory
- Remove large files that are irrelevant (keep upload under 5MB)
- The vendors directory will still take up a bit of space in the file structure tree, but not a lot so you can keep it there is you like as a hint to the llm on what libraries and tools you are using
- Comments you want to include can be added in a special format above the functions or classes:
// @ainote The comment you want to show to the AI
- The files that will be processed and included are PHP files, everything else is just metioned in the file tree
AI Project Map
Once uploaded, Your "Project Map" will appear in this area, you must add your own prompt after the map section of the prompt.
About CodeMap - (PHP)
CodeMap is a free developer tool that helps you prepare your PHP projects for use with Large Language Models (LLMs) like ChatGPT or DeepSeek. It extracts function signatures and class outlines from your code, creating a compact map of your project that fits neatly within an AI's context window.
What does this tool do?
Most PHP projects are simply too large for an AI to process at once. For example, ChatGPT Pro has a 128k context limit, and other LLMs are even smaller. CodeMap solves this by:
- Accepting your PHP codebase as a ZIP file.
- Extracting function and method signatures.
- Preserving special developer comments marked with
@ainote
. - Generating a lightweight project skeleton ("map").
This way, you can give the AI a clear picture of your project without overwhelming its memory limits.
Why the name CodeMap?
Instead of showing the full codebase, CodeMap creates an outline — much like a map that highlights the structure without every detail. The goal is clarity, not raw code flattening.
How do I use it?
- Copy the files that are relevant to the code you want to ask the AI about.
- Compress them into a .zip file.
- Upload the ZIP file here.
- Receive a reduced project map with:
- Function and method signatures.
- Classes and
@ainote
developer comments.
Use @ainote
comments above functions, methods, or classes to
keep important explanations that would otherwise be stripped away.
What this tool cannot do
- It only extracts structured code (functions, methods, classes).
- Standalone procedural code (outside of functions/classes) is ignored.
- If your project relies heavily on inline scripts, summarization by AI may still be required.
Other solutions
Tools like code2prompt flatten your entire project into a single file, but they don't reduce the size. CodeMap goes further by shrinking your project into its essential outline.
Why not just upload all my code to ChatGPT?
Even advanced LLMs like ChatGPT will tell you:
“I can only process the part of your code that fits into my context window. If the project is larger, you'll need to break it into smaller pieces or summarize it first.”
In practice, uploading an entire codebase in chunks rarely works well. That's why CodeMap was built — to create an LLM-friendly outline of your project so the AI can truly understand your questions in context.