| 1 | <?php |
||
| 8 | class Plugin extends WordpressApi |
||
| 9 | { |
||
| 10 | protected $base_uri = 'https://api.wordpress.org/plugins/'; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Info. |
||
| 14 | * |
||
| 15 | * Returns the information for the plugin. |
||
| 16 | * |
||
| 17 | * @param string $slug The slug of the plugin you want to pull |
||
| 18 | * @return mixed |
||
| 19 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
| 20 | */ |
||
| 21 | 2 | public function info(string $slug): PluginModel |
|
| 27 | |||
| 28 | /** |
||
| 29 | * Info. |
||
| 30 | * |
||
| 31 | * Returns the information for the plugin. |
||
| 32 | * |
||
| 33 | * @param string $search |
||
| 34 | * @return mixed |
||
| 35 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
| 36 | */ |
||
| 37 | 1 | public function search(string $search) |
|
| 41 | } |
||
| 42 |