Brandon Hubbard Engineering / wp-spinupwp-api
PHP · WORDPRESS SERVER AUTOMATION

wp-spinupwp-api — PHP & WordPress Client Library for SpinupWP Server Management

wp-spinupwp-api provides a fluent PHP interface to the SpinupWP cloud server control panel API for managing Nginx page caches, Redis object caches, Git deployments, and server reboots. It enables WordPress sites and agency dashboards to trigger site-level cache purges and deployment webhooks directly from PHP.

$ composer require bhubbard/wp-spinupwp-api
GitHub ↗
Page Cache Purge < 95 ms API Call
Pagination Auto-Cursor Iterator
Events Tracking Async Job Polling
PHP Version PHP 8.1+ Strict Types
Interactive SpinupWP Server & Site Cache Orchestration Simulator
Deterministic Execution Output & Telemetry STATUS: READY // 0 ERRORS

        
PHP (WP SpinupWP API Client)
$spinup = new \BHubbard\SpinupWP\Client( defined( 'SPINUPWP_API_TOKEN' ) ? SPINUPWP_API_TOKEN : '' );

// Automatically purge SpinupWP Nginx FastCGI page cache when a post is updated
add_action( 'save_post_post', function ( int $post_id ) use ( $spinup ) {
    if ( ! wp_is_post_revision( $post_id ) ) {
        $spinup->sites()->purge_page_cache( (int) SPINUPWP_SITE_ID );
    }
} );
Production Engineering Specifications
Repository:    https://github.com/bhubbard/wp-spinupwp-api
Live Studio:   https://code.brandonhubbard.com/wp-spinupwp-api/
Portal:        https://code.brandonhubbard.com/
Install:       composer require bhubbard/wp-spinupwp-api
Design System: Brandon Hubbard Swiss Modernist (#0A0A0C / 1px Exposed Structural Grid)