AI | Blog | Mozex                        [ Skip to content ](#main-content)   [                  ozex Labs ](https://mozex.dev) [About](https://mozex.dev#about) [Projects](https://mozex.dev#projects) [Open Source](https://mozex.dev#open-source) [Services](https://mozex.dev#services) [Docs](https://mozex.dev/docs) [Blog](https://mozex.dev/blog) [ Get in Touch ](https://mozex.dev#contact) 

        [About](https://mozex.dev#about) [Projects](https://mozex.dev#projects) [Open Source](https://mozex.dev#open-source) [Services](https://mozex.dev#services) [Docs](https://mozex.dev/docs) [Blog](https://mozex.dev/blog) [ Get in Touch ](https://mozex.dev#contact) 

     [   Back to Blog ](https://mozex.dev/blog) Tagged: AI 
============

     [ Anthropic Prompt Caching in Laravel: A Practical Guide 
--------------------------------------------------------

 ](https://mozex.dev/blog/18-anthropic-prompt-caching-in-laravel-a-practical-guide) Running Sevantia, our AI chat product, I watched the same 2,800-token system prompt get re-billed on every single user message. Multiply that by thousands of conversations a day and you're paying Anthropic to re-read the same instructions into Claude's context over and over. Prompt caching fixes this. It took me longer than it should have to get the mental model right, and the docs skip over the parts that trip up most people. This is the guide I wish I'd had when I first enabled it.

   Apr 20, 2026   ·  9 min read   ·  [ Laravel ](https://mozex.dev/blog/tags/laravel) [ PHP ](https://mozex.dev/blog/tags/php) [ AI ](https://mozex.dev/blog/tags/ai) [ Tutorial ](https://mozex.dev/blog/tags/tutorial) [ Anthropic ](https://mozex.dev/blog/tags/anthropic)  

  [ Building a Production-Ready Laravel MCP Server 
------------------------------------------------

 ](https://mozex.dev/blog/13-building-a-production-ready-laravel-mcp-server) Every Laravel developer has seen the MCP hype by now. Laravel's tagline changed to "The clean stack for Artisans and agents." The laravel/mcp package landed, tutorials appeared overnight, and suddenly everyone's building weather tools. But those tutorials stop right where real questions start. How do you authenticate AI clients hitting your server? What happens when an agent sends garbage to a tool that writes to your database? Should you even use MCP, or is your REST API already enough? I've been digging into this for a project, and these are the decisions and patterns I wish someone had documented before I started.

   Apr 8, 2026   ·  9 min read   ·  [ Laravel ](https://mozex.dev/blog/tags/laravel) [ PHP ](https://mozex.dev/blog/tags/php) [ AI ](https://mozex.dev/blog/tags/ai) [ MCP ](https://mozex.dev/blog/tags/mcp)  

  [ Why I Built a PHP Client for Anthropic's Claude API 
-----------------------------------------------------

 ](https://mozex.dev/blog/9-why-i-built-a-php-client-for-anthropics-claude-api) In May 2024, I published the first version of anthropic-php, a PHP client for Anthropic's Claude API. Nearly two years and 370,000+ downloads later, it's the most installed dedicated Anthropic SDK in the PHP ecosystem. This is the story of why I built it, what it can do, and why I think packages born from real necessity tend to be the good ones.

   Apr 2, 2026   ·  8 min read   ·  [ Laravel ](https://mozex.dev/blog/tags/laravel) [ PHP ](https://mozex.dev/blog/tags/php) [ Open Source ](https://mozex.dev/blog/tags/open-source) [ AI ](https://mozex.dev/blog/tags/ai) [ Anthropic ](https://mozex.dev/blog/tags/anthropic)  

  [ Which AI Package Should You Actually Use in Laravel? 
------------------------------------------------------

 ](https://mozex.dev/blog/5-which-ai-package-should-you-actually-use-in-laravel) Eighteen months ago, using Claude or GPT from a Laravel app meant writing raw HTTP calls or using whatever half-maintained wrapper you could find on Packagist. Today there are four solid options, all actively maintained, all with real download numbers behind them. I maintain one of them. anthropic-php and its Laravel companion anthropic-laravel have a combined 597,000 installs on Packagist. I've been building and shipping AI features in PHP since before most of these packages existed. So when people ask me "which one should I use?", I have opinions. They might surprise you. Here's the honest breakdown.

   Mar 28, 2026   ·  10 min read   ·  [ Laravel ](https://mozex.dev/blog/tags/laravel) [ PHP ](https://mozex.dev/blog/tags/php) [ Open Source ](https://mozex.dev/blog/tags/open-source) [ AI ](https://mozex.dev/blog/tags/ai)  

###  Stay in the Loop 

 Get the latest posts delivered to your inbox - on your schedule.

   Every New Post Weekly Digest Monthly Digest  

  Subscribe   Subscribing...     No spam. Unsubscribe anytime.

   ![Mozex](https://mozex.dev/images/mozex/profile-256.webp)###  Mozex 

 Laravel Specialist

 Senior Laravel Specialist &amp; Consultant. Building developer tools and open-source packages.

 [   ](https://github.com/mozex) [   ](https://www.linkedin.com/in/mozex) [   ](https://x.com/mozexdev) [   ](https://mozex.dev/blog/feed) 

###  Browse by Topic 

  [ Laravel  15  ](https://mozex.dev/blog/tags/laravel) [ PHP  15  ](https://mozex.dev/blog/tags/php) [ Open Source  5  ](https://mozex.dev/blog/tags/open-source) [ AI  4  ](https://mozex.dev/blog/tags/ai) [ Architecture  3  ](https://mozex.dev/blog/tags/architecture) [ Tutorial  3  ](https://mozex.dev/blog/tags/tutorial) [ DevOps  3  ](https://mozex.dev/blog/tags/devops) [ Developer Tools  2  ](https://mozex.dev/blog/tags/developer-tools) [ Testing  2  ](https://mozex.dev/blog/tags/testing) [ Database  2  ](https://mozex.dev/blog/tags/database) [ Anthropic  2  ](https://mozex.dev/blog/tags/anthropic) [ Code Review  1  ](https://mozex.dev/blog/tags/code-review) [ Claude Code  1  ](https://mozex.dev/blog/tags/claude-code) [ Performance  1  ](https://mozex.dev/blog/tags/performance) [ MCP  1  ](https://mozex.dev/blog/tags/mcp) [ Markdown  1  ](https://mozex.dev/blog/tags/markdown) [ WooCommerce  1  ](https://mozex.dev/blog/tags/woocommerce) [ Productivity  1  ](https://mozex.dev/blog/tags/productivity) [ GitHub Actions  1  ](https://mozex.dev/blog/tags/github-actions) [ Pest  1  ](https://mozex.dev/blog/tags/pest) [ Bash  1  ](https://mozex.dev/blog/tags/bash)  

###  Need expert Laravel help? 

 I offer consulting, code reviews, and custom development for Laravel applications.

 [ View Services   ](https://mozex.dev#services) 

   Live across open source

  798,772+  

 package downloads and counting

  Mozex Labs  [   ](https://github.com/mozex) [   ](https://www.linkedin.com/in/mozex) [   ](https://x.com/mozexdev) [   ](mailto:hello@mozex.dev) [   ](https://mozex.dev/blog/feed) 

  © 2026 Mozex Labs
