Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Php Sdk Laravel Package

snappy/php-sdk

A lightweight PHP SDK for integrating the Snappy API into PHP and Laravel applications, offering simple authentication, request helpers, and framework-friendly configuration. A compact starting point for teams building Snappy-powered workflows without boilerplate.

View on GitHub
Deep Wiki
Context7

Snappy PHP SDK

Frequently asked questions about Php Sdk
How do I install snappy/php-sdk with Composer in Laravel?
Install the package with composer require snappy/php-sdk, then add your Snappy API credentials to config/services.php and bind the client in a service provider. The SDK is framework-agnostic, so Laravel wiring is minimal. Check the package's composer.json for required PHP and extension constraints before installing.
Does snappy/php-sdk support Laravel 10 and Laravel 11?
The package is PSR-based and described as framework-ready, but the provided documentation does not publish a Laravel version matrix or CI evidence. Review its composer.json constraints and run a quick spike in your target Laravel version before committing. Because it does not extend framework internals, compatibility risk is usually low, but it should still be verified.
How do I authenticate with the Snappy API using this SDK?
Instantiate the client with your Snappy API credentials; the SDK handles request signing and JSON serialization for you. The exact auth model, whether API key, OAuth2, or per-tenant tokens, should be confirmed against Snappy's API docs and the SDK source. For multi-tenant applications, plan secret storage and rotation around that model.
Can I use my own PSR-18 HTTP client with snappy/php-sdk?
Yes. The SDK is PSR-friendly and lets you bring your own PSR-18 client and PSR-17 request and response factories. That means you can reuse Laravel's HTTP client, logging, and tracing instead of bypassing them. Confirm the constructor signature in the source during your spike.
How does snappy/php-sdk handle errors and typed responses?
The SDK returns decoded payloads as typed responses and throws clear exceptions when requests fail. Catch those exceptions at your integration boundary and map them into your own domain errors. This keeps vendor-specific exception types from leaking into jobs, models, or API resources.
Is snappy/php-sdk safe to use in production?
The dominant risk is signal scarcity: it is a single-maintainer package with low adoption and no published CI matrix in the provided context. Wrap it behind an interface you own, pin the version, and keep SDK types out of your domain layer. That converts an abandoned dependency from an outage into a fork-or-replace task.
How do I test code that uses snappy/php-sdk?
Inject a mock P SR-18 client at the SDK boundary, or use Laravel's HTTP fake if you wire Laravel's client into the SDK. Assert on outgoing requests and stub typed responses for success and failure cases. Keep most tests at your own SnappyClient interface rather than testing the vendor SDK itself.
What are alternatives to snappy/php-sdk for the Snappy API?
Alternatives include an official Snappy SDK if one exists, a hand-rolled Guzzle or Laravel HTTP client wrapper, or a generic OpenAPI-generated client. Choose based on endpoint coverage and maintenance guarantees. Also note the name collision with knplabs/knp-snappy and barryvdh/laravel-snappy, which are PDF wrappers, not clients for this API.
Does snappy/php-sdk support webhooks, retries, and idempotency keys?
The provided overview does not confirm webhook signature verification, idempotency keys, or configurable retry and backoff behavior. It does expose middleware hooks, timeouts, and a configurable base URI. For critical flows, implement HMAC verification and retry policy in your own boundary layer rather than relying on SDK defaults.
How is snappy/php-sdk maintained and versioned?
It appears to be a vendor client with a single maintainer tracking Snappy's API, but no release policy, changelog, or semver commitment is confirmed in the provided context. Pin a specific version and monitor upstream changes. If Snappy's API changes and the SDK lags, expect to fork or patch it behind your own interface.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo