Building AI-Powered CLI Tools with Laravel Zero
Create standalone command-line applications powered by AI using Laravel Zero. Interactive prompts, streaming LLM responses, tool-use, and distributable PHAR binaries.
176 posts published
Create standalone command-line applications powered by AI using Laravel Zero. Interactive prompts, streaming LLM responses, tool-use, and distributable PHAR binaries.
Understand MCP — the open standard for connecting AI models to external tools and data sources. Build an MCP server in PHP that exposes your Laravel app's capabilities to AI assistants.
Go beyond simple LLM API calls. Build AI agents in Laravel that use tools, maintain memory, reason in loops, and take actions — with practical code examples.
Go beyond Cache::get/set. Master Redis data structures, pub/sub, Lua scripting, rate limiting, sessions, and real-time features in Laravel.
Implement distributed tracing, metrics, and structured logging in Laravel with OpenTelemetry. Export to Jaeger, Grafana, and Datadog for full production observability.
URI-based, header-based, and query parameter versioning strategies for Laravel APIs. Maintain backward compatibility without breaking existing clients.
Build robust webhook receivers in Laravel. Signature verification, idempotency, async processing, retry handling, and real-world patterns for Stripe, GitHub, and more.
Replace fat controllers and bloated services with focused Action classes. One class, one job, fully testable. A modern alternative to the Service-Repository pattern.
A detailed guide to configuring and analyzing MySQL Slow Query Log, using tools like pt-query-digest, and building a comprehensive query performance monitoring workflow.
Understand PHP Fibers (PHP 8.1+), cooperative multitasking, async HTTP calls, and how frameworks like Laravel Octane and ReactPHP leverage them.