Download the PHP package phpdafruit/ssd1306-php without Composer
On this page you can find all versions of the php package phpdafruit/ssd1306-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phpdafruit/ssd1306-php
More information about phpdafruit/ssd1306-php
Files in phpdafruit/ssd1306-php
Package ssd1306-php
Short Description Comprehensive PHP library for SSD1306 OLED displays with animations, state machines, UI components, and effects. Production-ready with 450+ tests.
License MIT
Informations about the package ssd1306-php
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
🎨 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 & 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
- PHP 8.1+
php-ssd1306-i2cextension installedphp-adafruit-gfxextension installed- I2C device access (e.g.,
/dev/i2c-7)
Installation
Quick Start
Core Components
1. Display Builder
Create and configure displays with a fluent API:
2. Text Rendering & Effects
Render text with various effects:
3. Shape Rendering
Draw progress bars, gauges, and more:
4. Animation Engine
Create smooth frame-based animations:
5. State Machine
Manage display states with transitions:
6. UI Components
Build interactive interfaces:
7. Math Utilities
Vector and matrix operations:
8. Traits & Interfaces
Add composable functionality:
Architecture
Testing
Run the test suite:
Examples
See EXAMPLES.md for complete usage scenarios including:
- System monitor dashboard
- Interactive menu system
- Animated splash screen
- Notification system
- State machine workflows
Best Practices
Resource Management
Always use a single SSD1306Display instance and pass it to services:
Display Lifecycle
Always clear before rendering and display after drawing:
Animation Timing
Use consistent delta time for smooth animations:
License
MIT License - See LICENSE file for details
Credits
Built by Angel Gonzalez (@projectsaturnstudios)
Based on php-ssd1306-i2c and php-adafruit-gfx extensions
Contributing
Contributions welcome! Please ensure:
- All tests pass on actual hardware
- New features include comprehensive Pest tests
- Code follows PSR-12 standards
- Documentation is updated
Support
For issues, questions, or contributions, please visit the GitHub repository.
All versions of ssd1306-php with dependencies
ext-ssd1306 Version *