PHP code example of hk-r / px2-extract-ogp

1. Go to this page and download the library: Download hk-r/px2-extract-ogp 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/ */

    

hk-r / px2-extract-ogp example snippets


	$conf->scheme = 'http';

	$conf->domain = 'www.example.com';

	$conf->funcs->processor->html = array(
		// テーマ
		'theme'=>'tomk79\pickles2\multitheme\theme::exec('.json_encode([
			'param_theme_switch'=>'THEME',
			'cookie_theme_switch'=>'THEME',
			'path_theme_collection'=>'./px-files/themes/',
			'attr_bowl_name_by'=>'data-contents-area',
			'default_theme_id'=>'pickles2'
		]).')' ,

		// OGPタグ自動抽出
		'hk\pickles2\extractOgp\extract::exec' ,
	);

	$conf->plugins->px2dt->paths_module_template = [
		"OGP" => "./vendor/hk-r/px2-extract-ogp/modules/",
	];