PHP in AI Age:
The Laravel
Way
Rizqy Hidayat
Engineer, Dicoding
Education:
Rizqy Hidayat
Work Experiences:
● Product Engineer, Dicoding
● Tech Lead, Dicoding
● Universitas Amikom,
Informatika
PHP is dead.
Hatur nuhun
rizqyhi rizqyhi
rizqyhidayat
Tak kenal maka berjejaring:
rizqy@dicoding.com
PHP today
https://survey.stackoverflow.co/2
025/technology
PHP is Evolving
● Scheduled yearly release cycles
● Improved performance
● Better tooling
● Improved DX
AI to Boost
Productivity
01
AI impact on
productivity
https://survey.stackoverflow.co/2025/ai
AI coding agent
● Claude Code
● OpenAI Codex
● JetBrains Junie
● GitHub Copilot
● Gemini Code Assist
● Q
● Cursor
● etc.
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
Unifying Guidelines + Providing Context
Tool access
Integrating
LLM into
Laravel App
02
Integrating LLM in app
● Improving user experience.
● Adding more values to the product.
Choosing models
Etc etc …
Integrating LLM in app
● PHP (sometimes) is not a first-class language, so no official SDK
● Default to good old HTTP API
Model switching
● Hard, no standard between model providers
● Each has their own definitions of endpoints, format, etc.
So how?
● Use aggregator service, like OpenRouter, Cloudflare AI Gateway, etc.
● Use SDK
○ Vercel’s AI SDK
○ Genkit
○ LangChain
The Laravel Way
Integrating
Laravel App
into LLM
03
https://diamantai.substack.com/p/model-context-protocol-mcp-explained
The Laravel Way
Building
Quickly with
Laravel
04
Panggil programmer, 2 minggu selesai~
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.
Hatur nuhun
rizqyhi rizqyhi
rizqyhidayat
Tak kenal maka berjejaring:
rizqy@dicoding.com

[BDD 2025 - Full-Stack Development] PHP in AI Age: The Laravel Way. (Rizqy Hidayat)