Skip to content

Instantly share code, notes, and snippets.

View dmachehin's full-sized avatar

Dmitriy Machehin dmachehin

View GitHub Profile
@dmachehin
dmachehin / convert-openapi.php
Created December 2, 2025 20:47
convert php openapi (swagger) annotations to attributes
#!/usr/bin/env php
<?php
declare(strict_types=1);
use Doctrine\Common\Annotations\AnnotationReader;
use Doctrine\Common\Annotations\AnnotationRegistry;
use Doctrine\Common\Annotations\DocParser;
use OpenApi\Annotations as OA;
use OpenApi\Generator;
@dmachehin
dmachehin / yaml
Created January 19, 2022 14:29
dts238-7 rs-485 modbus esphome config
esphome:
name: dds238-7
esp32:
board: esp32doit-devkit-v1
framework:
type: arduino
ota:
password: "####################"