budimanlai / yii2-ocpp-sdk
Yii2 extension for OCPP (Open Charge Point Protocol) SDK - supports OCPP 1.6 and 2.0.1
Package info
github.com/budimanlai/yii-ocpp-sdk
Type:yii2-extension
pkg:composer/budimanlai/yii2-ocpp-sdk
1.0.3
2026-10-20 15:23 UTC
Requires
- php: >=7.4
- ext-json: *
- budimanlai/yii2-pkg: *
- yiisoft/yii2: ~2.0
- yiisoft/yii2-httpclient: ~2.0
Requires (Dev)
- phpunit/phpunit: ^9.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Yii2 extension — HTTP client SDK for the go-ocpp-api server.
Supports OCPP 1.6 and 2.0.1 over REST.
Requirements
- PHP >= 7.4
- Yii2 >= 2.0
- budimanlai/yii2-pkg >= 1.1.2
Installation
composer require budimanlai/yii2-ocpp-sdk
Database
This SDK logs every API call to the api_3rd_log table (provided by budimanlai/yii2-pkg).
Ensure the table exists before use.
Documentation
- Getting Started — installation, configuration, response format
- Chargers — manage charging stations
- Connectors — manage connectors
- Commands — OCPP commands (remote start/stop, reset, unlock, etc.)
- Transactions — read charging session records
- Tags — manage RFID tags and id_tokens
License
MIT — © Budiman Lai