Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 490 Bytes

File metadata and controls

19 lines (14 loc) · 490 Bytes

Getting Started

Install the package with Composer:

composer require jooservices/wordpress-sdk

Create 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.