PHP code example of akirk / wp-app

1. Go to this page and download the library: Download akirk/wp-app 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/ */

    

akirk / wp-app example snippets



/**
 * Plugin Name: Minimal App
 */

_ . '/templates', 'minimal' );
$app->init();

<!DOCTYPE html>
<html  wp_app_language_attributes(); 

wp_app_enqueue_script( 'minimal-app', $script_url, [], '1.0.0', true, [ 'app' => 'minimal' ] );

add_filter(
	'wp_app_init_minimal',
	function ( $app ) {
		$app->register_theme(
			'compact',
			__( 'Compact', 'my-plugin' ),
			plugin_dir_path( __FILE__ ) . 'templates/compact'
		);
		return $app;
	}
);