Zend certified PHP/Magento developer

Possible that minicart, order summary html file fetch out value by using php?

I need help, I want to make change of this file & the other one for “Order Summary”. since I am not family with knockout.js, I am thinking using php to fetch the value that I want.

app/design/ABC/test/Magento_checkout/web/template/minicart/item/default.html

I can use above override the core file, but I want add some custom php insert value, such as

                < ?php
                    $qty = $block->getQty();

                    // check configurable item is present to get the presentation qty
                    foreach ($_item->getChildren() as $child) {
                        if ($child->getProductType() == MagentoConfigurableProductModelProductTypeConfigurable::TYPE_CODE) {
                            $qty = $child->getQty();
                        }
                    }
                ?>

                < ?= $qty ?>

what is the correct way to do it? what can I do to make this minicart to display something that I want?