PHP code example of fond-of-oryx / erp-invoice-page-search

1. Go to this page and download the library: Download fond-of-oryx/erp-invoice-page-search 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/ */

    

fond-of-oryx / erp-invoice-page-search example snippets



namespace Pyz\Client\ErpInvoicePageSearch;

use FondOfOryx\Client\ErpInvoicePageSearch\ErpInvoicePageSearchDependencyProvider as FooErpInvoicePageSearchDependencyProvider;
use FondOfOryx\Client\ErpInvoicePageSearch\Plugin\SearchExtension\ErpInvoicePageSearchOwnParamFilterQueryExpanderPlugin;
use FondOfOryx\Client\ErpInvoicePageSearch\Plugin\SearchExtension\RawErpInvoicePageSearchResultFormatterPlugin;

class ErpInvoicePageSearchDependencyProvider extends FooErpInvoicePageSearchDependencyProvider
{
    /**
     * @return \Spryker\Client\Search\Dependency\Plugin\QueryExpanderPluginInterface[]
     */
    protected function getQueryExpanderPlugins(): array
    {
        $queryExpanderPlugins = parent::getQueryExpanderPlugins();

        $queryExpanderPlugins[] = new ErpInvoicePageSearchOwnParamFilterQueryExpanderPlugin();

        return $queryExpanderPlugins;
    }
    /**
     * @return \Spryker\Client\Search\Dependency\Plugin\ResultFormatterPluginInterface[]
     */
    protected function getResultFormatterPlugins(): array
    {
        $resultFormatterPlugins = parent::getResultFormatterPlugins();

        $resultFormatterPlugins[] = new RawErpInvoicePageSearchResultFormatterPlugin();

        return $resultFormatterPlugins;
    }
}