NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #3640 most downloaded on Packagist
Laravel integration for the Anthropic API: facade, config publishing, install command, testing fakes, messages, streaming, tool use, thinking, and batches.
Last release 3 days ago
04 Oct 2026
Release timing varies
gaps range from 2 weeks to 12 months
Nearly every release is documented
notes for 16 of 16 stable releases
Nothing withdrawn
no release was ever pulled
2 years old
16 releases · first in 2024
What's Changed Improve package setup Full Changelog : 1.8.1...1.8.2
The description in resources/boost/skills/anthropic-laravel/SKILL.md is down from 1,226 to 814 characters, under the 1,024-character limit in the Agen
Boost skill
description in resources/boost/skills/anthropic-laravel/SKILL.md is down from 1,226 to 814 characters, under the 1,024-character limit in the Agent Skills spec. Codex CLI before 0.142 skipped the whole skill because of the length, and newer Codex and VS Code cut the description off at 1,024. Every trigger term is still there. The Context7 pointer that left the description still lives in the skill body.php artisan boost:update after updating so your agents pick up the new description.Reported by @kasparovabi in #16
Full Changelog: 1.8.0...1.8.1
One column per month.
Server-side fallback for refused requests
Server-side fallback for refused requests
'fallbacks' => 'default' with the server-side-fallback-2026-07-01 beta so the API retries a refused request on another model instead of returning the refusal. The response DTOs from anthropic-php 1.8.0 parse the whole flow: the fallback content block, per-attempt usage->iterations, and stop_details->recommended_model.use Anthropic\Laravel\Facades\Anthropic;
use Illuminate\Support\Facades\Log;
$response = Anthropic::messages()->create([
'model' => 'claude-fable-5',
'max_tokens' => 1024,
'fallbacks' => 'default',
'betas' => ['server-side-fallback-2026-07-01'],
'messages' => [['role' => 'user', 'content' => $prompt]],
]);
foreach ($response->usage->iterations ?? [] as $iteration) {
if ($iteration->type === 'fallback_message') {
Log::info('Served by fallback model', ['model' => $iteration->model]);
}
}Documentation
frontier_llm, reasoning_extraction, general_harms) and the new fallback section with a logging pattern, so refusal metrics don't misreport which model answered.web_search_20260318 version and its response_inclusion parameter.Boost skill
resources/boost/skills/anthropic-laravel/SKILL.md picks up the expanded category list and a pointer to the fallback flow, so AI assistants working in your app suggest current values.Dependency
mozex/anthropic-php to ^1.8.0. Everything in that release flows through the facade automatically: usage->outputTokensDetails (thinking token breakdown), usage->speed (fast mode), usage->iterations, compaction content blocks and context_management, and cache diagnostics. See the PHP 1.8.0 release notes for details and examples.Full Changelog: 1.7.0...1.8.0
Server-side fallback for refused requests
'fallbacks' => 'default' with the server-side-fallback-2026-07-01 beta so the API retries a refused request on another model instead of returning the refusal. The response DTOs from anthropic-php 1.8.0 parse the whole flow: the fallback content block, per-attempt usage->iterations, and stop_details->recommended_model.use Anthropic\Laravel\Facades\Anthropic;
use Illuminate\Support\Facades\Log;
$response = Anthropic::messages()->create([
'model' => 'claude-fable-5',
'max_tokens' => 1024,
'fallbacks' => 'default',
'betas' => ['server-side-fallback-2026-07-01'],
'messages' => [['role' => 'user', 'content' => $prompt]],
]);
foreach ($response->usage->iterations ?? [] as $iteration) {
if ($iteration->type === 'fallback_message') {
Log::info('Served by fallback model', ['model' => $iteration->model]);
}
}
Documentation
frontier_llm, reasoning_extraction, general_harms) and the new fallback section with a logging pattern, so refusal metrics don't misreport which model answered.web_search_20260318 version and its response_inclusion parameter.Boost skill
resources/boost/skills/anthropic-laravel/SKILL.md picks up the expanded category list and a pointer to the fallback flow, so AI assistants working in your app suggest current values.Dependency
mozex/anthropic-php to ^1.8.0. Everything in that release flows through the facade automatically: usage->outputTokensDetails (thinking token breakdown), usage->speed (fast mode), usage->iterations, compaction content blocks and context_management, and cache diagnostics. See the PHP 1.8.0 release notes for details and examples.Full Changelog: https://github.com/mozex/anthropic-laravel/compare/1.7.0...1.8.0
Anthropic::files() exposes the full Files resource: upload , list , retrieveMetadata , download , delete . Upload a document once and reference it by
Files API
Anthropic::files() exposes the full Files resource: upload, list, retrieveMetadata, download, delete. Upload a document once and reference it by file_id in later Messages calls, or read outputs produced by the code execution tool and Skills.use Anthropic\Laravel\Facades\Anthropic;
use Illuminate\Support\Facades\Storage;
$file = Anthropic::files()->upload([
'file' => Storage::disk('local')->readStream('doc.pdf'),
]);
$response = Anthropic::messages()->create([
'model' => 'claude-opus-4-6',
'max_tokens' => 1024,
'betas' => ['files-api-2025-04-14'],
'messages' => [[
'role' => 'user',
'content' => [
['type' => 'text', 'text' => 'Summarise this.'],
['type' => 'document', 'source' => ['type' => 'file', 'file_id' => $file->id]],
],
]],
]);anthropic-beta: files-api-2025-04-14 header on every Anthropic::files() call, so there's nothing to configure. When you reference a file_id inside a Messages call, pass 'betas' => ['files-api-2025-04-14'] on the Messages call as well; the Messages endpoint also needs the header when a file is referenced. If every Messages call in your app references uploaded files, put the beta globally via config('anthropic.beta') instead.Testing
FileResponse::fake(), FileListResponse::fake(), and DeletedFileResponse::fake() now plug into Anthropic::fake([...]) with assertSent(Files::class, ...) assertions, same as every other resource.Documentation
Storage::readStream for uploads, queued jobs that stream downloads to S3, Eloquent anthropic_file_id columns, and the RateLimiter::for('anthropic-files', fn () => Limit::perMinute(90)) throttle for bulk uploads.Boost skill
resources/boost/skills/anthropic-laravel/SKILL.md picks up a new Files section covering the five methods, the Messages-side beta gotcha, block-to-file-type pairing, and the Eloquent + queued-job patterns. Triggers expanded to include Anthropic::files(), FileResponse, and file upload/reference work.mozex/anthropic-php to ^1.7.0. See the PHP 1.7.0 release notes for the underlying implementation, including the auto-injection mechanism and the 40 Files-specific tests behind this release.Full Changelog: 1.6.0...1.7.0
Add Anthropic beta header support
Ship a Laravel Boost skill at resources/boost/skills/anthropic-laravel/SKILL.md so AI coding assistants pick up package conventions automatically when
Laravel Boost skill
resources/boost/skills/anthropic-laravel/SKILL.md so AI coding assistants pick up package conventions automatically when working in a Laravel project. Activates on any mention of the Anthropic facade, the underlying SDK classes, or Claude-related work.Anthropic::fake(), and error handling with the queue-retry pattern.caller?->type === 'direct' filter required in tool dispatchers, pause_turn resume semantics, refusal responses arriving with HTTP 200, and mid-stream errors throwing after the response started./mozex/anthropic-laravel, /mozex/anthropic-php) or direct fetches from the docs site, both of which serve markdown for AI agents.Documentation site
ShouldQueue jobs, Cache::remember for the model list, Storage::disk for vision and PDF citations, broadcasting from streamed responses, scheduled commands for batch polling, and bootstrap/app.php reportable() callbacks for silencing overload errors.mozex/anthropic-php to ^1.5.0. All API additions land transparently through the Anthropic facade: the caller object on tool blocks, container_upload blocks, stop_details on refusals, the typed model capabilities tree, inferenceGeo on usage, and Priority Tier rate-limit headers as typed properties on MetaInformation. See the PHP 1.5.0 release notes for the full feature list.Full Changelog: 1.4.0...1.5.0
Expand README to document new Anthropic features and improved testing controls
Full Changelog: 1.3.3...1.4.0
Laravel 13.x Compatibility by @laravel-shift in #12
Full Changelog: 1.3.2...1.3.3
Full Changelog: https://github.com/mozex/anthropic-laravel/compare/1.3.2...1.3.3
sync version with anthropic-php
Full Changelog: 1.3.0...1.3.2
Bump mozex/anthropic-php to ^1.2.0
mozex/anthropic-php to ^1.2.0See the anthropic-php UPGRADING.md for details on new features and changes. All changes are backwards compatible.
Full Changelog: 1.2.0...1.3.0
Add Laravel 12 compatibility by @mozex in #6
Full Changelog: https://github.com/mozex/anthropic-laravel/compare/1.1.0...1.2.0
Changed underlying mozex/anthropic-php package version from v1.0.3 to v1.1.0
Full Changelog: 1.0.3...1.1.0
Changed underlying mozex/anthropic-php package version from v1.0.2 to v1.0.3
Full Changelog: https://github.com/mozex/anthropic-laravel/compare/1.0.2...1.0.3
bump dependencies
add php 8.4 to workflow
Changed underlying mozex/anthropic-php package version from v1.0.2 to v1.0.3
Full Changelog : 1.0.2...1.0.3
Changed underlying mozex/anthropic-php package version from v1.0.1 to v1.0.2
mozex/anthropic-php package version from v1.0.1 to v1.0.2Full Changelog: https://github.com/mozex/anthropic-laravel/compare/1.0.1...1.0.2
Bump dependencies
Changed underlying mozex/anthropic-php package version from v1.0.1 to v1.0.2
Full Changelog : 1.0.1...1.0.2
- fix facade docs
Initial Release
Your coding agent can read these notes before it upgrades. Set up the MCP server →