Install the package with Composer:
composer require jooservices/wordpress-sdkCreate the SDK with a WordPress URL, username, and Application Password:
$wp = JOOservices\WordPress\Sdk\WordPressService::create(
baseUrl: getenv('WORDPRESS_URL'),
username: getenv('WORDPRESS_USER'),
password: getenv('WORDPRESS_APP_PASSWORD'),
);Use Application Passwords instead of primary account passwords and keep secrets in environment variables.