lqasz/supplier-stock-info

Supplier stock info package.

0.0.1 2021-12-22 13:54 UTC

This package is auto-updated.

Last update: 2025-06-22 21:57:04 UTC


README

Package for fetching data about items from specified suppliers.

Installation

Use the composer to install package.

composer require lqasz/supplier-stock-info

Usage

use SupplierStockInfo\SupplierStock;

$supplierStock = new SupplierStock();

# return item data based on supplier type
$supplierStock->suppliers([
  [
    'name' => 'stanley-stella', // required
    'token' => '<stanley-stella-token>', // required
  ]
])->items([
  [
    'identifier' => '<item-id>' // required
  ]
])->get();

Available Suppliers

For now this package supports:

  • Stanley/Stella Stock API v4:
    • <stanley-stella-token> - text with email:password e.g. 'test@test.com:password'
    • <item-id> - Stanley/Stella SKU text

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

MIT