techenby/octoprint-sdk

A PHP SDK for OctoPrint.

1.2.4 2022-06-24 20:19 UTC

This package is auto-updated.

Last update: 2024-10-25 01:14:44 UTC


README

Build Status Total Downloads Latest Stable Version License

The OctoPrint SDK provides an expressive interface for interacting with OctoPrint's Rest API and managing OctoPrint instances servers. The structure of this repository is based on the Laravel Forge SDK.

Installation

To install the SDK in your project you need to require the package via composer:

composer require techenby/octoprint-sdk

Basic Usage

You can create an instance of the SDK like so:

$pikachu = new TechEnby\OctoPrint(PRINTER_URL, API_TOKEN);

Using the OctoPrint instance you may perform multiple actions as well as retrieve the different resources OctoPrint's API provides:

$files = $pikachu->files();

Rest Endpoints and SDK Methods

Contributing

Thank you for considering contributing to OctoPrint SDK! All pull requests are welcome, please follow the conventions set out in existing files.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

License

OctoPrint SDK is open-sourced software licensed under the MIT license.