public static function config(array $params = [])
    {
        // params in config file
        $config = config('sir-trevor-js');

        /*
         * Block types
         */
        // params
        if (isset($params['blocktypes']) && !empty($params['blocktypes']) && is_array($params['blocktypes'])) {
            $blocktypes = $params['blocktypes'];
        // config
        } elseif (isset($config['blocktypes']) && !empty($config['blocktypes']) && is_array($config['blocktypes'])) {
            $blocktypes = $config['blocktypes'];
        // default
        } else {
            $blocktypes = self::$blocktypes;
        }

        return [
            'blocktypes' => '\''.implode('\', \'', $blocktypes).'\'',
            'class' => self::defineParam('class', $params),
            'language' => self::defineParam('language', $params, $config),
            'path' => $config['path'],
            'script' => $config['script'],
            'tweetUrl' => self::defineParam('tweetUrl', $params, $config),
            'uploadUrl' => self::defineParam('uploadUrl', $params, $config),
            'version' => $config['version'],
        ];
    }