Update Claude PHP series to community SDK - #16
Draft
dalehurley wants to merge 8 commits into
Draft
Conversation
Co-authored-by: dale.hurley <dale.hurley@full.cx>
This commit updates the project to use the claude-php/claude-php-sdk instead of the anthropic-ai/sdk. This includes updating composer dependencies, namespaces, class names, and method calls. The SDK has been renamed and refactored to better align with PHP best practices. Co-authored-by: dale.hurley <dale.hurley@full.cx>
This commit replaces all instances of "Anthropic" with "ClaudePhp" throughout the documentation and code examples. It also corrects minor syntax errors in client instantiation and exception handling. Co-authored-by: dale.hurley <dale.hurley@full.cx>
This commit adds the complete agentic AI series, covering advanced patterns and frameworks. Co-authored-by: dale.hurley <dale.hurley@full.cx>
Co-authored-by: dale.hurley <dale.hurley@full.cx>
Co-authored-by: dale.hurley <dale.hurley@full.cx>
Co-authored-by: dale.hurley <dale.hurley@full.cx>
Co-authored-by: dale.hurley <dale.hurley@full.cx>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migrate the 'Claude for PHP developers' series and code examples to use the community
claude-php/Claude-PHP-SDK.This update replaces the unmaintained official Anthropic PHP SDK with the actively developed
claude-php/Claude-PHP-SDK, which offers full feature parity with the Python SDK. Key changes include updating Composer dependencies, client initialization, namespace usage, and response object access patterns across relevant chapters.