Upgrade to Pro — share decks privately, control downloads, hide ads and more …

PHP in AI Age: The Laravel Way

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

PHP in AI Age: The Laravel Way

Avatar for Rizqy Hidayat

Rizqy Hidayat

November 24, 2025

More Decks by Rizqy Hidayat

Other Decks in Programming

Transcript

  1. Education: Rizqy Hidayat Work Experiences: • Product Engineer, Dicoding •

    Tech Lead, Dicoding • Universitas Amikom, Informatika
  2. PHP is Evolving • Scheduled yearly release cycles • Improved

    performance • Better tooling • Improved DX
  3. AI coding agent • Claude Code • OpenAI Codex •

    JetBrains Junie • GitHub Copilot • Gemini Code Assist • Q • Cursor • etc.
  4. AI guidelines • Giving the LLM: ◦ Context to understand

    our codebase better. ◦ Clear instructions on how to write codes, following standards, etc. ◦ Knowledge about development environments, testing guide, etc. • But, some haven’t followed the standards: ◦ Codex, Copilot, Cursor, etc.: AGENTS.md ◦ Claude Code: CLAUDE.md ◦ JetBrains Junie: .junie/guidelines.md
  5. Integrating LLM in app • PHP (sometimes) is not a

    first-class language, so no official SDK • Default to good old HTTP API
  6. Model switching • Hard, no standard between model providers •

    Each has their own definitions of endpoints, format, etc.
  7. So how? • Use aggregator service, like OpenRouter, Cloudflare AI

    Gateway, etc. • Use SDK ◦ Vercel’s AI SDK ◦ Genkit ◦ LangChain
  8. Takeaways • Vibing is good, but knowing the vibes always

    better. • Leverage AI to deliver better user experience to your product. • Laravel + AI = 🚀🚀 • PHP it not dead, yet. It’s evolving.