Extension’s custom initialization on Magento start
To load custom mini-libraries with short popular global functions in Magento 2, run the following code:

In case of console apps, do everything as follows:

To load custom mini-libraries with short popular global functions in Magento 2, run the following code:
In case of console apps, do everything as follows: