TGViewer
Библиотека пхпшника | PHP, Laravel, Symfony, CodeIgniter Библиотека пхпшника | PHP, Laravel, Symfony, CodeIgniter @phpproglib · 10.5K subscribers
Post #5368 3.75K
🔧 Рефакторинг PHP-кода: промт для ИИ

Ловите промт для ChatGPT, который поможет сделать код чище, быстрее и безопаснее за пару кликов 🚀

💡 Скопируй и вставь этот промт в ChatGPT или Claude:

«Refactor the following PHP code to improve readability, performance, and adherence to modern coding standards (PSR-12).

Remove code duplication
Replace outdated constructs with modern alternatives
Enforce strict typing (declare(strict_types=1);)
Break down long functions into smaller, more manageable ones
Add comments and PHPDoc for better documentation
Improve security (e.g., prevent SQL injections)
Here is the code:

// Paste your code here

Return the updated code with explanations on what was improved and why.»

💬 Делитесь в комментах результатом, а также можете показать свои промты и фишки, связанные с нейронками, которые используете в работе.

Библиотека пхпшника #буст
  • 🥱 5
  • 👍 4
  • 🤔 1
More from @phpproglib
  1. Oct 2, 2026🎹 Что делать после ChatGPT? Следующий шаг — AI-агенты. Они не просто отвечают на запросы,…
  2. Sep 30, 2026🔥 Последний день для разработчиков AI уже пишет код. Теперь важнее научиться встраивать е…
  3. Sep 30, 2026🐸 Библиотека пхпшника
  4. Sep 29, 2026💡 Laravel-фича, которая спасает тесты от случайных запросов Http::preventStrayRequests()…
  5. Sep 28, 2026🔐 ramsey/uuid — UUID без самописного кода Библиотека помогает генерировать, парсить и вал…
  6. Sep 28, 2026🤔 Что выведет код? ❤️ — 1 🔥 — 2 👍 — 12 👾 — Fatal error 👇 Правильный ответ (нажми, что…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →