PHP code example of openmage / magento-lts

1. Go to this page and download the library: Download openmage/magento-lts library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

openmage / magento-lts example snippets

bash
composer dump-autoload --optimize
xml
<config>
    <admin>
        <routers>
            <adminhtml>
                <args>
                    <frontName><![CDATA[admin]]></frontName>
                </args>
            </adminhtml>
        </routers>
    </admin>
</config>

RewriteRule ^api/rest api.php?type=rest [QSA,L]

rewrite ^/api/(\w+).*$ /api.php?type=$1 last;`