Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Build LLM-powered apps with the Anthropic Claude API or SDK across Python, TypeScript, Java, Go, Ruby, C#, and PHP.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
php/claude-api/files-api.md
1# Files API — PHP23## Files API45```php6$file = $client->beta->files->upload(7file: fopen('upload_me.txt', 'r'),8betas: ['files-api-2025-04-14'],9);10// Reference $file->id as a file content block on ->beta->messages->create().11```12