Execute Magento 2 Script in Root Directory
Using below code snippet you can execute any magento 2 script in custom php file on root directory. so create a custom php file like custom.php in root folder where magento 2 has installed and load bootstrap class first then your model according to your requirement.
Execute Magento 2 Script in Root Directory Read More »