PHPackages                             shovedev/shove-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. shovedev/shove-php

ActiveLibrary[HTTP &amp; Networking](/categories/http)

shovedev/shove-php
==================

HTTP client for Shove.dev

0667PHPCI passing

Since May 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/shovedev/shove-php)[ Packagist](https://packagist.org/packages/shovedev/shove-php)[ RSS](/packages/shovedev-shove-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Shove.dev PHP SDK
=================

[](#shovedev-php-sdk)

The official PHP SDK for the [Shove.dev](https://shove.dev) API. Shove is a cloud message queue service designed to make it easy to work with message queues in your applications.

Installation
------------

[](#installation)

Install the package via Composer:

```
composer require shovedev/shove-php
```

Requirements
------------

[](#requirements)

- PHP 8.2+
- GuzzleHTTP 7.8+

Usage
-----

[](#usage)

### Initialization

[](#initialization)

```
use Shove\Connector\ShoveConnector;

// Initialize the Shove connector with your API token
$shove = new ShoveConnector(
    token: 'your-api-token',
    baseUrl: 'https://shove.dev/api' // Optional, defaults to https://shove.dev/api
);
```

### Working with Queues

[](#working-with-queues)

Shove supports two types of queues:

- **Unicast**: Traditional queue where each message is delivered to a single consumer
- **Multicast**: Pub/Sub style queue where each message is delivered to all consumers

#### Creating a Queue

[](#creating-a-queue)

```
use Shove\Enums\QueueType;

// Create a unicast queue
$unicastQueue = $shove->queues()->create(
    name: 'emails',
    type: QueueType::Unicast
);

// Create a multicast queue
$multicastQueue = $shove->queues()->create(
    name: 'notifications',
    type: QueueType::Multicast // or simply 'multicast'
);
```

#### Deleting a Queue

[](#deleting-a-queue)

```
$shove->queues()->delete(name: 'queue-name');
```

### Working with Jobs

[](#working-with-jobs)

Jobs are individual messages that are sent to queues.

#### Creating a Job

[](#creating-a-job)

```
// Create a job with a simple body
$response = $shove->jobs()->create(
    queue: 'emails',
    body: [
        'to' => 'user@example.com',
        'subject' => 'Welcome!',
        'content' => 'Welcome to our service!'
    ]
);

// Create a job with custom headers
$response = $shove->jobs()->create(
    queue: 'emails',
    headers: [
        'priority' => 'high',
        'retry-count' => 3
    ],
    body: [
        'to' => 'user@example.com',
        'subject' => 'Password Reset',
        'content' => 'Click here to reset your password.'
    ]
);
```

#### Retrieving a Job

[](#retrieving-a-job)

```
$job = $shove->jobs()->get(id: 'job-id');
```

Laravel Integration
-------------------

[](#laravel-integration)

Shove provides a Laravel package for seamless integration: [shovedev/shove-laravel](https://github.com/shovedev/shove-laravel).

Response Handling
-----------------

[](#response-handling)

The SDK returns responses using Saloon's Response object:

```
$response = $shove->jobs()->create(queue: 'default', body: ['key' => 'value']);

// Check if the request was successful
if ($response->successful()) {
    // Process response data
    $data = $response->json();
}
```

Error Handling
--------------

[](#error-handling)

The SDK will throw exceptions when requests fail:

```
try {
    $response = $shove->jobs()->create(queue: 'non-existent-queue', body: ['key' => 'value']);
} catch (\RuntimeException $e) {
    // Handle the error
    echo $e->getMessage();
}
```

License
-------

[](#license)

This SDK is open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d5351482a1d1514874fdec03f30b5074517ce7c0062059fd3c584cd259a613b?d=identicon)[davidhemphill](/maintainers/davidhemphill)

---

Top Contributors

[![davidhemphill](https://avatars.githubusercontent.com/u/58970?v=4)](https://github.com/davidhemphill "davidhemphill (19 commits)")

### Embed Badge

![Health badge](/badges/shovedev-shove-php/health.svg)

```
[![Health](https://phpackages.com/badges/shovedev-shove-php/health.svg)](https://phpackages.com/packages/shovedev-shove-php)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.8k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M90](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
