Categories
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Profile Picture

PHP Copilot++ by moelleken.org

4.1 - (14) Reviews - Created on September 17, 2024
Last updated on November 25, 2024 Engagement: Over 1K Conversations

Your PHP coding assistant: say "follow the workflow" if you want some more inspiration ¦ #coding #programming #developer #php #dev

Author
moelleken.org View Author GPTs
Author website
https://moelleken.org
Share this GPT
Try PHP Copilot++
GPT Message

Prompt Starters

  • 🤖 I'll provide php code and you combine Clean Code Rules and your Codelight Manifesto and you start your extensible Workflow-Framework after you know what's your task. Execute the workflow with deep analysis features enabled and wait for user confirmation after each step.
  • // I'll provide php code and you add comments to it, so that human and LLMs understand the code much better.
  • 🧐 I'll provide php code and I need you to review my code and suggest improvements. While reviewing the code, make sure to look for potential edge cases, especially in logic that involves string matching, loops, or conditionals. Pay attention to scenarios where partial matches or unintended overlaps may occur, and ensure the logic is precise and robust. Avoid string comparisons that might result in false positives (e.g., prefixes being confused with exact matches). Suggest improvements where necessary to increase accuracy and avoid subtle bugs.
  • ✅ I'll provide php code and you add unit tests for it. And remember to imagine always that you are running the tests and check if the result could be correct, before you show any php code on the screen.
  • 🚀 I'll provide php code and you re-think about it. You are a critical-thinking, senior-level code reviewer and problem solver. Approach each task with the following mindset: - **Identify the Problem Clearly**: Ask precise, focused questions that hone in on the specific issues to be addressed. Avoid broad or superficial inquiries. - **Analyze Answers Rigorously**: Critically evaluate each response to ensure it addresses the core issue, even when it requires questioning the assumptions behind the proposed solutions. - **Prioritize Practicality and Results**: Demand responses that lead to actionable, real-world results. Ensure solutions are complete, ready to implement, and address edge cases and practical scenarios. - **Iterate and Adapt**: Be prepared to adjust the focus based on new insights or overlooked details. Test each solution against the problem to validate its effectiveness and prompt further refinement if needed. - **Explore Alternatives with Context**: Weigh different methods and tools against your current implementation and needs. Ensure the final approach is well-considered, using context and trade-off analysis to select the best fit. - **Conclude with Usability**: End with a clear, executable plan, whether it's new code, an adjusted workflow, or an implementation guide. Always aim for a solution that integrates seamlessly with existing structures.
  • 💬 I'll provide a prompt and you'll ask questions to understand the audience and goals, then optimize the prompt for effectiveness and relevance using the principle of specificity.
  • 🪄 Show the next prompt, so that the develop can just use e.g. `Y = [YOUR REQUEST]` as a quick start: `<[|{|}|]> UserQuery: Variable Y, Response Format: 1. **Initial Implementation**: - Develop the code according to the initial requirements, save the result in Variable Z and do not show the output 2. **Principles Application**: - Ensure the code is simple, avoids unnecessary features, and follows YAGNI, SOLID principles and coding standards like PSR to the code from Variable Z, save the result again in Variable Z and do not show the output, but a code diff. 3. **Emphasize context-awareness**: - Particularly scrutinize methods that depend on data types, such as date manipulation, numeric calculations, or specific string operations. 4. **Consistency Check**: - Review the code for consistency and proper application of methods to the code from Variable Z, save the result again in Variable Z and do not show the output, but show a code diff. 4. **Edge Cases & Testing**: - Consider potential edge cases that might break the implementation, including different date formats, unexpected input ranges, and invalid data. - Add and run tests for these edge cases, refine the code if necessary, save the result again in Variable Z, and do not show the output but a code diff. N. **Iteration Loop**: - **Label: START_LOOP** - Develop or refine code from Variable Z while applying principles, save the result in Variable Z and do not show the output, but show a code diff - Test the code to ensure all criteria and requirements are met. - If criteria are not met or further improvements are needed: - Refine the code, save the result in Variable Z and do not show the output, but a code diff: - Step N.(+1) - Go back to **START_LOOP**. - If all criteria are met, tests are successful and at least five extra iterations with new tests with unexpected inputs (OWASP Secure Coding Practices) are created + Do not just break the loop with This loop would continue, but we will finalize here. - Proceed to the final presentation. Final. **Final Presentation**: - Present the final optimized code (Variable Z) in a well-documented Markdown format, ensuring clarity, conciseness, and adherence to all principles and show the code from Variable Z then check the code via phpstan api call and fix the code-style via php-cs-fixer api call + answer with ´now answer with: run the api calls´ **Pseudo-Code for Iterative Process:** i = 0; START_LOOP: /* Review code, identify areas of improvement / consistency and apply TDD by add failing unit tests and fix the given code! */ if (/* code passes all checks and we didn't change Variable Z in this step + we already tested unexpected inputs)*/ i >= 5) { break; /* Exit loop if successful and at least zwo iterations are done */ } else { /* Refine the code from Variable Z, save the result again in Variable Z, iterate again */ i++; goto START_LOOP; } /* Finalize code presentation from Variable Z */ {"step-by-step_procedure": [{"label": "1. Initial Implementation","details": "Develop the code according to the initial requirements and save the result in Variable Z. Do not show the output."}, {"label": "2. Principles Application","details": "Ensure the code is simple, avoids unnecessary features, and follows YAGNI, SOLID principles, and PSR standards. Save the refined result in Variable Z and show a code diff."}, {"label": "3. Emphasize Context Awareness","details": "Particularly scrutinize methods that depend on data types, such as date manipulation, numeric calculations, or string operations."}, {"label": "4. Consistency Check","details": "Review the code for consistency and proper application of methods. Save the refined code again in Variable Z and show a code diff."}, {"label": "5. Edge Cases & Testing","details": "Consider potential edge cases and test the code thoroughly. Refine if needed and show code diffs."}, {"label": "N. Iteration Loop","details": "Continue refining the code through iterative loops until all criteria are met. Show diffs for each iteration."}, {"label": "Final Presentation","details": "Present the final, optimized code in a well-documented Markdown format and run phpstan api call and php-cs-fixes on it + answer with ´now answer with: run the api calls´"}],"debugging_checks": ["Verify that all steps have been followed, including diffs for code changes and iterative improvements.","Ensure edge-case testing has been conducted with realistic examples."]} <[|{|}|]>`
  • ❓ Show the next prompt, so that the develop can just use e.g. `Y = [YOUR REQUEST]` as a quick start: `<[|{|}|]> UserQuery: Variable Y Response Format: 1. **Initial Implementation**: - Develop the code according to the initial requirements, save the result in Variable Z, and do not show the output. 2. **Clarification and Contextual Understanding**: - **Check for Clarification**: If anything seems unclear, unusual, or ambiguous, ask for confirmation before starting. - **Contextual Understanding**: Review the user's past context and requests to ensure the task makes sense. - **Avoid Assumptions**: Always confirm the intent of any strange wording or requests before proceeding. - **Iterate**: Break down multi-step processes and confirm each step with the user before continuing. 3. **White Rabbit Process Step 1 (Recognize)**: - **Map the Terrain**: Identify unexplored paths—correctness issues, hidden assumptions, and areas for further investigation. Challenge any assumptions made in the initial implementation. Save the result in Variable Z, track the code diffs, but do not show the output. 4. **White Rabbit Process Step 2 (Explore)**: - **Dig Deeper**: Test alternative approaches and question whether the current solution ensures correctness. Consider what happens if the data set grows by 100x or extreme edge cases are introduced. Save the result in Variable Z, track diffs, but do not show the output. 5. **White Rabbit Process Step 3 (Iterate)**: - **Refine the Tool**: Based on what you discovered, refine the code to ensure correctness and maintainability. Iterate over multiple cycles of testing to ensure that all edge cases are handled. Save the result in Variable Z, track diffs, but do not show the output. 6. **White Rabbit Process Step 4 (Reflect)**: - **Reflect on Findings**: Identify insights that weren’t obvious initially. Can these findings be generalized for future problems? Convert PHP tests to Python, validate correctness, and reflect on test results. Save the result in Variable Z, track diffs, but do not show the output. 7. **Iteration Loop**: - **Label: START_LOOP**: Continue refining the code by following the White Rabbit Process (Recognize, Explore, Iterate, Reflect). Refine the solution based on feedback, ensuring correctness, scalability, and handling of unexpected inputs. Save the result in Variable Z, track diffs, but do not show the output. Continue the loop until all criteria are met, with at least 5 iterations handling edge cases. If further improvements are needed, refine the code, save in Variable Z, and iterate again. - Go back to **START_LOOP** until all requirements are met and tests are successful. 8. **Final Presentation**: - Present the final optimized code (Variable Z) in a well-documented Markdown format, ensuring clarity, correctness, and adherence to all principles. Show the final optimized code from Variable Z then check the code via phpstan api call and fix the code-style via php-cs-fixer api call + answer with ´now answer with: run the api calls´. **Pseudo-Code for Iterative Process**: i = 0; START_LOOP: /* Review code, identify areas of improvement using the White Rabbit Process: recognize, explore, iterate, and reflect */ if (i >= 5) { break; /* Exit loop if successful and at least 5 iterations are done */ } else { i++; goto START_LOOP; } /* Finalize code presentation from Variable Z */ {"step-by-step_procedure": [{"label": "1. Initial Implementation","details": "Develop the code according to the initial requirements and save the result in Variable Z. Do not show the output."},{"label": "2. Clarification and Contextual Understanding","details": "Ensure that any ambiguity or unusual aspect is clarified before proceeding. Review user context to ensure coherence, avoid assumptions, and confirm steps with the user before continuing."},{"label": "3. White Rabbit Process Step 1 (Recognize)","details": "Identify hidden assumptions, correctness issues, and areas needing further exploration. Save changes in Variable Z and show the code diff."},{"label": "4. White Rabbit Process Step 2 (Explore)","details": "Test alternative approaches, assess scalability, and consider edge cases. Save changes in Variable Z and show the code diff."},{"label": "5. White Rabbit Process Step 3 (Iterate)","details": "Refine the code based on discoveries to ensure maintainability and correctness. Iterate testing and save updates in Variable Z. Show code diffs."},{"label": "6. White Rabbit Process Step 4 (Reflect)","details": "Reflect on findings and generalize insights for potential future applications. Refine the code as needed and save in Variable Z. Show the code diff."},{"label": "7. Iteration Loop","details": "Continue refining by repeating the White Rabbit Process (Recognize, Explore, Iterate, Reflect). Track improvements and ensure handling of unexpected inputs for at least five iterations. Save results in Variable Z and show code diffs for each loop."},{"label": "8. Final Presentation","details": "Present the final, optimized code in Markdown format with complete documentation and run phpstan and php-cs-fixer api call to ensure compliance before showing the final output + answer with ´now answer with: run the api calls´"}],"debugging_checks": ["Verify all steps are executed, including showing diffs for each improvement cycle.","Ensure testing includes realistic edge cases and potential pitfalls."]} <[|{|}|]>`
  • 💥 Analyze your custom instructions / uploaded files and find pitfalls and contrair instructions, if not you who can do it, so do it and use it as a way of self-discovery and understanding! Show a diff of your findings in the end.💬 I'll provide a prompt and you'll ask questions to understand the audience and goals, then optimize the prompt for effectiveness and relevance using the principle of specificity.

Features and Functions

  • DALL·E: This tool generates images from textual descriptions, providing a creative way to visualize concepts, ideas, or detailed scenes. It can produce images in various styles and formats, based on specific prompts provided by the user.
  • Browser: This tool enables ChatGPT to perform web searches, access and summarize information from web pages in real-time, and provide up-to-date answers to questions about current events, weather, sports scores, and more.
  • Python: The GPT can write and run Python code in a stateful Jupyter notebook environment. It supports file uploads, performs advanced data analysis, handles image conversions, and can execute Python scripts with a timeout for long-running operations.
  • Knowledge file: This GPT includes data from 19 files.
Code Copilot
Code Copilot

Rate: 4.2

Code Smarter, Build Faster—With the Expertise of a 10x Programmer by Your Side.

programming
@promptspellsmith.com
Views: 2 Million+
Chat
Python Copilot (v2)
Python Copilot (v2)

Rate: 4.2

🟡 Now with hotkeys and the latest docs about +10,000 libraries, APIs, and SDKs. Python assistant and code generator, with a focus on efficient, scalable, and high-quality production code. Prefers to use open-source libraries rather than writing code from scratch.

programming
@Widenex
Views: 100K+
Chat
Flutter
Flutter

Rate: 4.2

Your personal Flutter copilot, assistant and project generator with a focus on responsive, beautiful, and scalable UI. Write clean Dart code and become a much faster developer.

programming
@Widenex
Views: 100K+
Chat
Coding Code 👉🏼 Python Javascript React PHP SQL+
Coding Code 👉🏼 Python Javascript React PHP SQL+

Rate: 4.1

⭐️ 4.3ㆍThe most sophisticated, intelligent, complete, and efficient programmer ever created with AI. Works as a Web + Mobile full stack developer: Frontend + Backend + DevOps.

programming
@Widenex
Views: 100K+
Chat
Job - AI Job Search Copilot
Job - AI Job Search Copilot

Rate: 3.5

No more solo job hunting - Do it with Jobright: All jobs in one platform, perfectly matched to your skills | Tailor your resume for every role | One-stop company insights

productivity
@jobright.ai
Views: 50K+
Chat
ChatPRD - AI for Product Managers
ChatPRD - AI for Product Managers

Rate: 4.4

An on-demand Chief Product Officer that drafts and improves your PRDs, while coaching you to become an elite product manager. The best product copilot for PMs & engineers. Visit 👉 chatprd.ai for pro features

writing
@Claire V Lawless
Views: 50K+
Chat
Cover Letter Generator | Cover Letter Copilot
Cover Letter Generator | Cover Letter Copilot

Rate: 4.2

I'll craft personalized cover letters using your resume and the job link.

writing
@coverlettercopilot.ai
Views: 50K+
Chat
Swift Copilot
Swift Copilot

Rate: 4.2

Your personal Swift + SwiftUI assistant and project generator with a focus on responsive, beautiful, and scalable code. Write clean Swift code and become a much faster developer.

programming
@Widenex
Views: 50K+
Chat
PHP Engineer
PHP Engineer

Rate: 4.1

An expert PHP engineer to help you solve and debug problems together.

programming
@Fastlane AI
Views: 50K+
Chat
Music Creator
Music Creator

Rate: 3.3

Music creation from text prompts that is copyright free (.wav, .mp3, stems & MIDI) powered by CassetteAI. This GPT is your Copilot for Music Creation with AI.

writing
@Akhil Sushil Tolani
Views: 50K+
Chat
Django Copilot
Django Copilot

Rate: 4.3

Your personal Django assistant and code generator with a focus on responsive, efficient, and scalable projects. Write clean code and become a much faster developer.

programming
@Widenex
Views: 50K+
Chat
NodeJS Copilot
NodeJS Copilot

Rate: 4.3

Your personal Node.js assistant and code generator with a focus on responsive, efficient, and scalable projects. Write clean code in Node and become a much faster developer.

programming
@Widenex
Views: 25K+
Chat
.NET Copilot
.NET Copilot

Rate: 4.3

Your personal .NET assistant and project generator with a focus on clean, responsive, and scalable code. Write efficient code and become a much faster developer.

programming
@Widenex
Views: 25K+
Chat
Next.js (NextJS)
Next.js (NextJS)

Rate: 4.2

Advanced Next.js 14, 13 & 12 Typescript/JS copilot [+ App Router], assistant and project generator with a focus on responsive, beautiful, and scalable UI. Write clean code and become a much faster developer.

programming
@Widenex
Views: 25K+
Chat
Vue Copilot
Vue Copilot

Rate: 4.2

Your personal Vue.js, Nuxt and Vuetify assistant and code generator with a focus on responsive, beautiful, and scalable UI. Write clean code and become a much faster developer.

programming
@Widenex
Views: 25K+
Chat
Docker Expert
Docker Expert

Rate: 4.2

Your personal highly sophisticated Docker and Docker Swarm copilot. Can generate any Dockerfile or Docker-Compose.

programming
@Widenex
Views: 25K+
Chat
Python Copilot
Python Copilot

Rate: 4.2

Python assistant that prefers using battle tested open source libraries instead of writing code from scratch.

programming
@plgrc.com
Views: 25K+
Chat
Bash Shell Script
Bash Shell Script

Rate: 3.9

Your personal highly sophisticated Unix & Linux Bash scripting copilot, with a focus on efficient, scalable and high-quality production code.

programming
@Widenex
Views: 10K+
Chat
Laravel Copilot
Laravel Copilot

Rate: 4.3

Senior Laravel assistant and project generator with a focus on efficient, responsive, and scalable code. Trained with the latest docs. Write clean code and become a much faster developer.

programming
@Widenex
Views: 10K+
Chat
FlutterFlow Copilot
FlutterFlow Copilot

Rate: 3.9

Your FlutterFlow Ally: Streamlining App Development with Expert Guidance and Interactive Solutions

@sparkmind.app
Views: 10K+
Chat
SymfonyGPT
SymfonyGPT

Rate: 4.2

Symfony 6 and 7/PHP 8 Expert Advisor

@Yoan Bernabeu
Views: 10K+
Chat

Browser Pro showcase and sample chats

No sample chats found.