PHPackages                             antonythorpe/silvershop-unleashed - 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. [Database &amp; ORM](/categories/database)
4. /
5. antonythorpe/silvershop-unleashed

ActiveSilverstripe-vendormodule[Database &amp; ORM](/categories/database)

antonythorpe/silvershop-unleashed
=================================

Silvershop submodule that integrates with Unleashed Software Inventory Management

5.0.1(9mo ago)0344MITPHPPHP ^8.1CI failing

Since Oct 5Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/AntonyThorpe/silvershop-unleashed)[ Packagist](https://packagist.org/packages/antonythorpe/silvershop-unleashed)[ RSS](/packages/antonythorpe-silvershop-unleashed/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (10)Dependencies (5)Versions (14)Used By (0)

silvershop-unleashed
====================

[](#silvershop-unleashed)

Silvershop submodule that integrates with Unleashed Software Inventory Management

[![CI](https://github.com/AntonyThorpe/silvershop-unleashed/actions/workflows/ci.yml/badge.svg)](https://github.com/AntonyThorpe/silvershop-unleashed/actions/workflows/ci.yml)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/2ed21afe44e63edc8d962dcb2e2f405351a38840d1083cd686e0e4da49e99eaa/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616e746f6e7974686f7270652f73696c76657273686f702d756e6c6561736865642f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/antonythorpe/silvershop-unleashed/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/c0b01b2c17abd2d519e9a4f64963d3e14b44997d71e800b69b20b6a663a7a963/68747470733a2f2f706f7365722e707567782e6f72672f616e746f6e7974686f7270652f73696c76657273686f702d756e6c6561736865642f762f737461626c65)](https://packagist.org/packages/antonythorpe/silvershop-unleashed)[![Total Downloads](https://camo.githubusercontent.com/488e21e3b3f2463d4512a3bc2e9e0d3a71a7b30e03f345a84728e1780ede5352/68747470733a2f2f706f7365722e707567782e6f72672f616e746f6e7974686f7270652f73696c76657273686f702d756e6c6561736865642f646f776e6c6f616473)](https://packagist.org/packages/antonythorpe/silvershop-unleashed)[![License](https://camo.githubusercontent.com/44794e670a21c6151b8078dca24952b04255c4f906d4eb33f951efd40af8afe7/68747470733a2f2f706f7365722e707567782e6f72672f616e746f6e7974686f7270652f73696c76657273686f702d756e6c6561736865642f6c6963656e7365)](https://packagist.org/packages/antonythorpe/silvershop-unleashed)

Features
--------

[](#features)

- Build Tasks to sync Products, Product Categories and Sales Orders with [Unleashed](https://apidocs.unleashedsoftware.com)
- Creates new Customers and Sales Orders in Unleashed upon the payment of a SilverShop order

Use Case
--------

[](#use-case)

Keeps Silvershop in alignment with an external source of truth - the inventory system. Save time with updating product prices in Silvershop; simply run the BuildTask and review the report. When an order is paid, the new Customer and Order are sent to Unleashed, saving time/data entry mistakes.

How it works
------------

[](#how-it-works)

- Adds a `Guid` property to `Product`, `ProductCategory`, `OrderItem`, `OrderModifier`, and `Member` classes. The `Product`, `ProductCategory`, and `Order` dataobjects are updated via the Build Tasks. This saves the Unleashed GUID in the database to identify changes found in results from API calls.
- Upon the payment of an Order, the module checks the Customer's email address with Unleashed and obtains the GUID. This is used with the Sales Order post. A couple of config settings are needed for the modifiers to flow through to Unleashed as an order item.
- The Order Build Task keeps the order status up to date.

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

[](#requirements)

- [Silvershop (a SilverStripe module)](https://github.com/silvershop/silvershop-core)
- [Consumer (a SilverStripe BulkLoader)](https://github.com/antonythorpe/consumer)
- [Guzzle](http://docs.guzzlephp.org/en/latest/).

Creating a Sales Order in Unleashed
-----------------------------------

[](#creating-a-sales-order-in-unleashed)

### Notes regarding getting/creating a Customer

[](#notes-regarding-gettingcreating-a-customer)

- The customer is logged in and has a Guid from Unleashed?
    - true: use Guid of the Customer for the Sales Order
    - false: GET Customer filtered by the email address
        - if a Customer is returned. Use the returned Guid of the Customer for the Sales Order
        - if a Customer is not returned. As there might already be another customer with the same Customer Code then GET Customer filtered by the Customer Code (the Company name or the first &amp; last name)
            - a Customer is returned. Is the delivery address the same?
                - true: It must be the same one. Use the returned Guid of the Customer for the Sales Order.
                - false: Add a random digit to the Customer Code. POST Customer and use the returned Guid for the Sales Order
            - a Customer is not returned. POST Customer and use the returned Guid for the Sales Order

### Adding an Order

[](#adding-an-order)

- Post SalesOrders with order data

Limitations
-----------

[](#limitations)

- Does not utilise the 'Charge' line type for Shipping when Sales Orders are created
- Discounts hardcoded to NIL in the Sales Order Items
- SalesPerson has not been implemented
- The Product/Product Categories Build Tasks only sync existing items within Unleashed. New ones need to be added manually, via upload or modification to the existing Build Task.
- Will only send modifiers with a value to Unleashed. NIL values are automatically skipped.
- If a user is logged in and changes the email address in the checkout form, then this new email address will not be passed onto Unleashed - no PUT Customer calls are available with Unleashed.
- If a Guest purchases a second time with a unique email and delivery address then a new Customer will be created in Unleashed. A random number will be attached to its Customer Code to avoid double ups with the CustomerCode in Unleashed.

Documentation
-------------

[](#documentation)

[Index](/docs/en/index.md)

Support
-------

[](#support)

None sorry.

Change Log
----------

[](#change-log)

[Link](changelog.md)

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

[](#contributing)

[Link](contributing.md)

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

42

—

FairBetter than 89% of packages

Maintenance56

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity79

Established project with proven stability

 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 ~272 days

Recently: every ~458 days

Total

13

Last Release

289d ago

Major Versions

1.0.5 → 3.0.02019-06-14

3.1.0 → 4.0.02020-09-07

4.1.0 → 5.0.02024-07-03

### Community

Maintainers

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

---

Top Contributors

[![AntonyThorpe](https://avatars.githubusercontent.com/u/1023740?v=4)](https://github.com/AntonyThorpe "AntonyThorpe (34 commits)")

---

Tags

silvershopsilverstripeunleashed-softwaresilverstripeecommercesilvershopinventory-managementUnleashed Software

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/antonythorpe-silvershop-unleashed/health.svg)

```
[![Health](https://phpackages.com/badges/antonythorpe-silvershop-unleashed/health.svg)](https://phpackages.com/packages/antonythorpe-silvershop-unleashed)
```

###  Alternatives

[silvershop/core

Provides an ecommerce product catalog, shopping cart, and order management system

11340.7k48](/packages/silvershop-core)[sunnysideup/ecommerce

Silverstripe E-commerce Application

247.3k84](/packages/sunnysideup-ecommerce)

PHPackages © 2026

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