PHP code example of opsone / wordpress-theme-kit

1. Go to this page and download the library: Download opsone/wordpress-theme-kit 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/ */

    

opsone / wordpress-theme-kit example snippets


$ echo asset_url('logo.png');
$ // dev => http://localhost:3000/d8de0a51d2c1ffadf2674553ff70fad2.png
$ // prod => http://localhost/assets/build/d8de0a51d2c1ffadf2674553ff70fad2.png