PHPackages                             dagstuhl/swh-archive-client - 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. [API Development](/categories/api)
4. /
5. dagstuhl/swh-archive-client

ActiveLibrary[API Development](/categories/api)

dagstuhl/swh-archive-client
===========================

SoftwareHeritage Web API Client for PHP

1.1.1(1y ago)0134MITPHPPHP ^8.1

Since Sep 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/dagstuhl-publishing/swh-archive-client)[ Packagist](https://packagist.org/packages/dagstuhl/swh-archive-client)[ RSS](/packages/dagstuhl-swh-archive-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

[![SWH](https://camo.githubusercontent.com/f158b2a11437bf6d0768dcb0dd54013b14ad3e5ea2c774ef9521e54d7f3bc7b9/68747470733a2f2f617263686976652e736f66747761726568657269746167652e6f72672f62616467652f7377683a313a6469723a373563666266393135363432626435666531386230613335376661303938653939343730633139652f)](https://archive.softwareheritage.org/swh:1:dir:75cfbf915642bd5fe18b0a357fa098e99470c19e;origin=https://github.com/dagstuhl-publishing/swh-archive-client;visit=swh:1:snp:60901c83213678f92c9c57155f46ceecc7acebdd;anchor=swh:1:rev:a43b6e6b0efe19bd05de255256fb4c57965a9bcb)

dagstuhl/swh-archive-client
===========================

[](#dagstuhlswh-archive-client)

A SoftwareHeritage web API client in php

This project provides a php wrapper around the [SoftwareHeritage web API](https://archive.softwareheritage.org/api/). It is used by Dagstuhl Publishing to integrate automatic archiving of software projects by authors into its publication workflow.

At , we also provide a php client for the [SoftwareHeritage Deposit API](https://github.com/dagstuhl-publishing/swh-deposit-client).

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

[](#installation)

```
composer require dagstuhl/swh-archive-client
```

The client is designed to work smoothly with the config mechanism of laravel. When used inside a laravel project, you can configure it by creating a file `swh.php` inside the `config` folder with the following contents:

```
