PHPackages                             oscar-team/sproom - 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. oscar-team/sproom

ActiveLibrary

oscar-team/sproom
=================

php sdk for sproom

v1.0.5(2y ago)05MITPHP

Since Feb 19Pushed 2y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (7)Used By (0)

Sproom PHP Integration
======================

[](#sproom-php-integration)

This is a PHP library for integrating [Sproom](https://www.sproom.net/) apis

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

[](#installation)

Use the package manager [composer](https://getcomposer.org/) to install.

```
composer require oscar-team/sproom
```

Usage
-----

[](#usage)

```
require __DIR__ . '/vendor/autoload.php';

$client = new \OscarTeam\Sproom\SproomClient(token: 'token', environment: 'test');
```

### Note: Please refer to [offical](https://sproom.net/swagger/index.html) documentation to check the paramets for the api's.

[](#note-please-refer-to-offical-documentation-to-check-the-paramets-for-the-apis)

### [ChildCompany Apis](https://sproom.net/swagger/index.html?url=/swagger/v1/swagger.json#/ChildCompany)

[](#childcompany-apis)

```
// Get the list of child companies
$client->childCompanies()->list();

// Create new child company
$client->childCompanies()->create($requestData);

// Delete child company
$client->childCompanies()->delete($childCompanyId);

// Enroll child company
$client->childCompanies()->enroll($requestData);

// Get child company
$client->childCompanies()->get($childCompanyId);

// Get child company token
$client->childCompanies()->getToken($childCompanyId);
```

### [Company Apis](https://sproom.net/swagger/index.html?url=/swagger/v1/swagger.json#/Company)

[](#company-apis)

```
// Search for a company in sproom
$client->childCompanies()->search('DK:CVR:1234');
```

### [Document Apis](https://sproom.net/swagger/index.html?url=/swagger/v1/swagger.json#/Document)

[](#document-apis)

```
// List all the documents
$client->documents()->list();

// Send document to sproom
$client->documents()->send($filePath);

// Update already sent document
$client->documents()->update($documentId, []);

// Get sent document format
$client->documents()->getFormat($documentId, $format);

// Set response for the document
$client->documents()->setResponse($documentId, []);

// Get response for the document
$client->documents()->getResponse($documentId);

// Set state of the document
$client->documents()->setState($documentId, []);

// Get state of the document
$client->documents()->getState($documentId);
```

### [PeppolParticipantVerificarion Apis](https://sproom.net/swagger/index.html?url=/swagger/v1/swagger.json#/PeppolParticipantVerification)

[](#peppolparticipantverificarion-apis)

```
// List all the verifications
$client->peppolParticipantVerifications()->list();

// Initiate the verification
$client->peppolParticipantVerifications()->initiate([]);

// Get the verification
$client->peppolParticipantVerifications()->get($verificationId);

// Revoke the verification
$client->peppolParticipantVerifications()->revoke($verificationId);

// Download the verification document
$client->peppolParticipantVerifications()->downloadDocument($verificationId, []);

// Preview the verification document
$client->peppolParticipantVerifications()->previewDocument([]);
```

### [Recipients Apis](https://sproom.net/swagger/index.html?url=/swagger/v1/swagger.json#/Recipients)

[](#recipients-apis)

```
// Check if the recipients can reveie the document
$client->recipients()->check('DK:CVR:123');

// Bulk check
$client->recipients()->bulkCheck([
  'DK:CVR:123'
]);
```

### [Webhook Apis](https://sproom.net/swagger/index.html?url=/swagger/v1/swagger.json#/Webhook)

[](#webhook-apis)

```
// List all the webhooks
$client->webhooks()->list();

// Create new webhook
$client->webhooks()->create($requestData);

// Delete webhook
$client->webhooks()->delete($webhookId);

// Update webhook
$client->webhooks()->update($requestData);

// Get webhook
$client->webhooks()->get($webhookId);

// Test webhook
$client->webhooks()->test($webhookId);
```

### Response:

[](#response)

All the apis will return the Saloon response class `use Saloon\Http\Response;`. Please refer to the [offical](https://docs.saloon.dev/the-basics/responses) documentation of saloon for more details.

Contributing
------------

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~3 days

Total

6

Last Release

795d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b7070a3d899fd45f795cfde48bf069f0822145dd46bad3318f47770fc93e2ab1?d=identicon)[dani821](/maintainers/dani821)

---

Top Contributors

[![dani821](https://avatars.githubusercontent.com/u/45585631?v=4)](https://github.com/dani821 "dani821 (9 commits)")

### Embed Badge

![Health badge](/badges/oscar-team-sproom/health.svg)

```
[![Health](https://phpackages.com/badges/oscar-team-sproom/health.svg)](https://phpackages.com/packages/oscar-team-sproom)
```

###  Alternatives

[skagarwal/google-places-api

Google Places Api

1913.0M8](/packages/skagarwal-google-places-api)[saloonphp/laravel-plugin

The official Laravel plugin for Saloon

765.7M124](/packages/saloonphp-laravel-plugin)[ohdearapp/ohdear-php-sdk

An SDK to easily work with the Oh Dear API

742.6M13](/packages/ohdearapp-ohdear-php-sdk)[saloonphp/rate-limit-plugin

Handle rate limits beautifully in your Saloon API integrations or SDKs

201.3M43](/packages/saloonphp-rate-limit-plugin)[saloonphp/cache-plugin

Official plugin for caching Saloon responses

122.0M64](/packages/saloonphp-cache-plugin)[myoutdeskllc/salesforce-php

salesforce library for php8+

1560.8k](/packages/myoutdeskllc-salesforce-php)

PHPackages © 2026

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