hellosign/hellosign-php-sdk
Deprecated official HelloSign API PHP SDK (PHP 8+; PHP 7 via 3.7.*). Provides HelloSign\Client for API key, email/password, or OAuth auth; supports core API actions like account and signature requests. Use dropbox/sign SDK for new work.
Pros:
Cons:
Swoole or Redis).JsonSerializable changes).signature_requests table, but add a sdk_version column to track migrations to the new SDK.// Migration for tracking SDK version
Schema::table('signature_requests', function (Blueprint $table) {
$table->string('sdk_version')->default('3.8.0')->comment('hellosign/hellosign-php-sdk version');
});
create_function, call_user_func_array edge cases).event_type values).fileinfo, mbstring) if the SDK uses them.spatie/laravel-hellosign) that can bridge the gap?public function __construct(private string $requestId)).array_unpack or str_contains for cleaner SDK response parsing.use Illuminate\Support\Facades\Http;
Http::withToken($apiKey)->post('https://api.hellosign.com/v3/signature_requests');
Pest or PHPUnit with PHP 8.1’s dataProvider improvements to test SDK interactions.JsonSerializable support.Argument #1 passed to HelloSign\Client::__construct() must be of type string).match expressions for error handling).namespace App\Services;
class HelloSignService {
public function __construct(private Client $client) {}
public function sendSignatureRequest(array $data): array {
return $this->client->sendSignatureRequest($data);
}
// Add PHP 8.1 match expression for error handling
public function handleError(Throwable $e): string {
return match (true) {
$e instanceof HelloSignException => 'HelloSign error: ' . $e->getMessage(),
default => 'Unexpected error: ' . $e->getMessage(),
};
}
}
array_is_list).laravel/framework v10.x).Illuminate\Support\Facades that might affect the SDK.migration_status column to track OpenAPI SDK adoption.sealed classes.How can I help you explore Laravel packages today?