Anthropic | Blog | Mozex

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

 Tagged: Anthropic 
===================

    [ 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)  

  [ 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 later, when I wrote this post in April 2026, it had passed 370,000 downloads, more than any other dedicated Anthropic client for PHP at the time. 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   ·  9 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)  

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

###  Need expert Laravel help? 

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

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