labzone / wp-api
Wordpress.org API
dev-master
2023-04-27 07:14 UTC
Requires
- fabpot/goutte: ^3.1
- labzone/auto-mapper: dev-master
Requires (Dev)
- phpunit/phpunit: ^4.0
This package is auto-updated.
Last update: 2024-11-25 00:59:01 UTC
README
Wordpress.org API
Examples
Plugin
Search
$response = WPApi\WPApi::plugin()->search('wordpress seo');
Slug
$response = WPApi\WPApi::plugin()->slug('wordpress-seo');
Theme
Search
$response = WPApi\WPApi::theme()->search('simple');
Slug
$response = WPApi\WPApi::theme()->slug('simpler');
Author
$response = WPApi\WPApi::theme()->slug('fontethemes');