Magento : Fetch products with layered navigation programmatically in custom php file

 Buy cheap and genuine Windows 7 product key  |
 Windows 7 Product Key for Windows 32bit/64bit Updated 2016y  |
 Windows 7 Ultimate ISO download  |
 Windows 7 Product Key Generator 32 bit and 64 bit Full  |
 Legit Windows 7 Product Key Online Store, PayPal Support  |
 Windows 7 Ultimate with Service Pack 1 Product Key,Windows 7 Key Sale  |
 Windows 7 Key  |
 Get Free Windows 7 Product Key  |
windows-10-education-key
windows-10-enterprise-key
office-2010-key
windows-7-key-sale
windows-10-home-key
windows-10-activation-key
windows-10-pro-key
office-2016-key
windows-10-key
office-2013-key
windows-10-iso
windows-7-key
windows-10-product-key

Here is way to fetch products with layered navigation programmatically in custom php file.

<?php
require_once('app/Mage.php'); //Must have file to begin
 
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); //Initialize store
 
$catId = Mage::app()->getRequest()->getParam('categoryId'); //Pass categoryId in get variable
    $storeId = Mage::app()->getWebsite(true)->getDefaultGroup()->getDefaultStoreId();
    $page_no = Mage::app()->getRequest()->getParam('page_no');
    $params = Mage::app()->getRequest()->getParams(); //Pass attributes in key=>value form to filter results.
    $category = Mage::getModel('catalog/category')->load($catId);
 
    $layer = Mage::getModel("catalog/layer");
    $layer->setCurrentCategory($category);
    $attributes = $layer->getFilterableAttributes(); //get all filterable attributes available in selected category layered navigation
    $attr = array();
    foreach ($attributes as $attribute) {
        if ($attribute->getAttributeCode() == 'price') {
            $filterBlockName = 'catalog/layer_filter_price';
        } elseif ($attribute->getBackendType() == 'decimal') {
            $filterBlockName = 'catalog/layer_filter_decimal';
        } else {
            $filterBlockName = 'catalog/layer_filter_attribute';
        }
        $attr[$attribute->getAttributeCode()] = $attribute->getFrontendLabel();
 
    }
    $filters = array_intersect_key($params, $attr);
    $collection = $category->getProductCollection()
                    ->addAttributeToFilter(
                        'status', array('eq' => Mage_Catalog_Model_Product_Status::STATUS_ENABLED))
                    ->addAttributeToSelect('*');
    foreach ($filters as $key => $value) {
        if($key == 'price'){
            $priceFilter = explode('-', $value);
            $collection->addAttributeToFilter('price', array('gteq' => $priceFilter[0]));
            $collection->addAttributeToFilter('price', array('lteq' => $priceFilter[1]));
        }
        else{
            $collection->addAttributeToFilter($key, array('in' => $value));
        }
    }
    $collection->setPage($page_no, 10);
foreach($collection as $product){
   echo $product->getName();
}