1. Go to this page and download the library: Download ed-itsolutions/wup-client 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/ */
ed-itsolutions / wup-client example snippets
// For a plugin
wup_client('plugin', 'plugin-slug', 'http://your.site.com/wup/plugin-slug');
// For a theme
wup_client('theme', 'theme-slug', 'http://your.site.com/wup/theme-slug');
// ^^ URL of your WUP install.
wup_build(
'theme-slug', // The themes (or plugins) slug.
'/some/path', // The root path of the theme/plugin. Use dirname(__FILE__) to make this generic.
'deployKey', // The deploy key for the server. DON'T ACTUALLY PUT THIS IN VCS. ProTip. getenv('WUP_DEPLOY_KEY')
'http://yoursite.com/wp-admin/admin-post.php' // The admin-post.php url for your site.
);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.