PHPackages                             bespoke-support/smartwaste - 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. bespoke-support/smartwaste

ActiveLibrary

bespoke-support/smartwaste
==========================

BRE SmartWaste API library

25PHP

Since Dec 8Pushed 7y ago1 watchersCompare

[ Source](https://github.com/BespokeSupport/SmartWaste)[ Packagist](https://packagist.org/packages/bespoke-support/smartwaste)[ RSS](/packages/bespoke-support-smartwaste/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

SmartWaste API
==============

[](#smartwaste-api)

[SmartWaste](http://www.smartwaste.co.uk/smarter/) is a recognised way to aggregate environmental data (including waste transactions). This PHP library provides a way to read and write data using the API, saving manual data entry.

Use Cases
---------

[](#use-cases)

- BRE Customer extracting data to their internal system
- BRE Customer inputting data
- Waste Contractor (Carrier)
- Broker uploading on behalf of many contractors

Current SmartWaste API Version
------------------------------

[](#current-smartwaste-api-version)

1.3.0

Obtain and Create API Access token
----------------------------------

[](#obtain-and-create-api-access-token)

Note: This is not your username and password.

Please obtain these credentials by speaking to BRE.

```
$credentials = SmartWaste::token('user', 'publicKey', 'privateKey');

```

Methods available
-----------------

[](#methods-available)

Methods can be called from SmartWasteAPI::METHOD or SmartWaste::api($credentials, METHOD, $params)

```
assignSubcontractorToProject
assignWasteCarrierToProject
assignWasteDestinationToProject
authenticate
authenticateUser
getCompanies
getDefaultCompanies
getLabels
getProject
getProjectPhases
getProjects
getSkipsizes
getSubcontractorsForProject
getTransportOptions
getWasteCarriersForProject
getWasteDestinationsForProject
getWasteItem
getWasteItems
getWasteManagementLocations
getWasteManagementRoutes
getWasteProductTypes
getWorkpackages
saveSubcontractorToCompany
saveSubcontractorToProject
saveWasteCarrierToCompany
saveWasteCarrierToProject
saveWasteDestinationToCompany
saveWasteDestinationToProject
saveWasteItem
updateSubcontractor
updateWasteCarrier
updateWasteDestination
updateWasteItem

```

Lookup Endpoints
----------------

[](#lookup-endpoints)

APIForgetSkipsizesSkip SizesgetWasteProductTypesWaste Product Types (EWCs)getProjectPhasesProject PhasesgetTransportOptionsVehicle Type e.g. HGVgetWasteManagementRoutesEnd Destination - Recycle, Landfill, EnergygetWasteManagementLocationsOn/Off siteExamples
========

[](#examples)

Create Carrier
--------------

[](#create-carrier)

```
$ent = new SmartWasteWasteCarrier();

$ent->carrierName = 'ABC Skips';
$ent->postcode = 'AA11 1AA';
$ent->address1 = '1 Main Street';
$ent->addLicence('AA1234AA', '2020-01-01');

$obj = new SaveWasteCarrierToCompany(12345, $ent); // 12345 is your Company ID

$res = SmartWaste::call($credentials, $obj);

// $res = wasteCarrierID (int)

```

Create Destination (Depot)
--------------------------

[](#create-destination-depot)

```
$ent = new SmartWasteWasteDestination();

$ent->parentCarrierID = 54321; // ID created during above call

$ent->destinationName = 'ABC Skips';
$ent->postcode = 'AA11 1AA';
$ent->address1 = '1 Main Street';
$ent->addLicence('AA1234AA', '2020-01-01');

$obj = new SaveWasteDestinationToCompany(12345, $ent); // 12345 is your Company ID

$res = SmartWaste::call($credentials, $obj);

// $res = wasteDestinationID (int)

```

Save Waste Item
---------------

[](#save-waste-item)

```
$ent = new SmartWasteWasteItem();

// convert your waste item data

$obj = new SaveWasteItem(12345, 12345, $ent);

$res = SmartWaste::call($credentials, $obj);

// $res = wasteItemID (int)

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

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/1e3d32f785c84b8827bfa5ffcb6af28e11bad7121dd4dc66338d110d70b183d1?d=identicon)[Richard Seymour](/maintainers/Richard%20Seymour)

---

Top Contributors

[![RickSeymour](https://avatars.githubusercontent.com/u/212399?v=4)](https://github.com/RickSeymour "RickSeymour (1 commits)")

### Embed Badge

![Health badge](/badges/bespoke-support-smartwaste/health.svg)

```
[![Health](https://phpackages.com/badges/bespoke-support-smartwaste/health.svg)](https://phpackages.com/packages/bespoke-support-smartwaste)
```

PHPackages © 2026

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