PHPackages                             phpdafruit/ssd1306-php - 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. phpdafruit/ssd1306-php

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

phpdafruit/ssd1306-php
======================

Comprehensive PHP library for SSD1306 OLED displays with animations, state machines, UI components, and effects. Production-ready with 450+ tests.

2.0.1(6mo ago)04MITPHPPHP ^8.3CI failing

Since Sep 29Pushed 6mo agoCompare

[ Source](https://github.com/projectsaturnstudios/phpdafruit_ssd1306-php)[ Packagist](https://packagist.org/packages/phpdafruit/ssd1306-php)[ RSS](/packages/phpdafruit-ssd1306-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

SSD1306 PHP Package
===================

[](#ssd1306-php-package)

A comprehensive, production-ready PHP library for controlling SSD1306 OLED displays via I2C. Built on top of the `php-ssd1306-i2c` extension with high-level services, animations, state machines, and UI components.

Features
--------

[](#features)

🎨 **Rich Feature Set:**

- **Builder Pattern**: Fluent display configuration with presets
- **Text Rendering**: Advanced text rendering with effects (scroll, typewriter, marquee, fade)
- **Shape Rendering**: Progress bars, gauges, rounded boxes, icons
- **Animation Engine**: Frame-based animations with timing control
- **State Machine**: Manage display states with smooth transitions
- **UI Components**: Menus, notifications, dashboards, widgets
- **Math Utilities**: 2D vectors, matrices, curves, and easing functions
- **Traits &amp; Interfaces**: Composable functionality with `HasAnimations`, `HasEffects`, `Renderable`

🧪 **Production Ready:**

- 450+ comprehensive Pest tests
- All tests run on actual hardware
- Zero segfaults with proper resource management
- Full PSR-4 autoloading

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

[](#requirements)

- PHP 8.1+
- `php-ssd1306-i2c` extension installed
- `php-adafruit-gfx` extension installed
- I2C device access (e.g., `/dev/i2c-7`)

Installation
------------

[](#installation)

```
composer require phpdafruit/ssd1306-php

```

Quick Start
-----------

[](#quick-start)

```
