PHPackages                             azolee/ds18b20 - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. azolee/ds18b20

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

azolee/ds18b20
==============

The DS18B20 Sensor Handling PHP Package

3313PHP

Since Mar 9Pushed 1y agoCompare

[ Source](https://github.com/azolee/ds18b20)[ Packagist](https://packagist.org/packages/azolee/ds18b20)[ RSS](/packages/azolee-ds18b20/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

A Simple DS18B20 Sensor Handling PHP Package
============================================

[](#a-simple-ds18b20-sensor-handling-php-package)

This package can be used to read the popular DS18B20 Sensor data from multiple sensors on a Raspberry PI.

Tested on Raspibian OS.

Note: Previously the Raspibian needs to be configured to handle the sensor.

Example usage (See *tests* folder)
----------------------------------

[](#example-usage-see-tests-folder)

### Read the raw data:

[](#read-the-raw-data)

```
use azolee\DS18B20;

$respone =  DS18B20::loadSensors();

var_dump($respone);
```

### Read the raw data and process it:

[](#read-the-raw-data-and-process-it)

```
use azolee\DS18B20;
use azolee\DataFormat\{CelsiusDataProcessor, FahrenheitDataProcessor};

//in Celsius
$celsiusDataProcessor = new CelsiusDataProcessor();
$celsiusDataProcessor->setPrecision(3);

$respone =  DS18B20::loadSensors($celsiusDataProcessor);

var_dump($respone);

// in Fahrenheit
$fahrenheitDataProcessor = new FahrenheitDataProcessor();
$fahrenheitDataProcessor->setPrecision(0);

DS18B20::setProcessor($fahrenheitDataProcessor);

$respone =  DS18B20::loadSensors();

var_dump($respone);
```

License: **MIT**

Author: **ANDRAS Zoltan Gyarfas**

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 80% 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://avatars.githubusercontent.com/u/835466?v=4)[Zoli](/maintainers/azolee)[@azolee](https://github.com/azolee)

---

Top Contributors

[![azolee](https://avatars.githubusercontent.com/u/835466?v=4)](https://github.com/azolee "azolee (4 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

### Embed Badge

![Health badge](/badges/azolee-ds18b20/health.svg)

```
[![Health](https://phpackages.com/badges/azolee-ds18b20/health.svg)](https://phpackages.com/packages/azolee-ds18b20)
```

###  Alternatives

[phpdocumentor/reflection-common

Common reflection classes used by phpdocumentor to reflect the code structure

9.1k706.8M26](/packages/phpdocumentor-reflection-common)[yepsua/filament-themes

Manage filament themes from the config files

3324.2k](/packages/yepsua-filament-themes)

PHPackages © 2026

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