PHPackages                             somecoding/wp-api-wrapper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. somecoding/wp-api-wrapper

AbandonedArchivedLibrary[API Development](/categories/api)

somecoding/wp-api-wrapper
=========================

This is a Wrapper for the API provided by most Wordpress Blogs. Intended for easy crawling of a Wordpress page.

0.0.3(7y ago)07MITPHPPHP ^7.2

Since Feb 1Pushed 7y ago1 watchersCompare

[ Source](https://github.com/somecoding/WordpressApiWrapper)[ Packagist](https://packagist.org/packages/somecoding/wp-api-wrapper)[ Docs](https://github.com/Dwarfex/WordpressApiWrapper)[ RSS](/packages/somecoding-wp-api-wrapper/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (9)Versions (4)Used By (0)

[![Maintainability](https://camo.githubusercontent.com/575277a9645d2518f7f7e5be2d0a3a846ca887c71ccb86ee7692c53971b77def/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f66353566633262343238343566303034643234372f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/Dwarfex/WordpressApiWrapper/maintainability)

Wordpress API Wrapper
=====================

[](#wordpress-api-wrapper)

This is a Wrapper for the API provided by most Wordpress Blogs. Intended for easy crawling of a Wordpress page.

How to install
--------------

[](#how-to-install)

For installing you currently need to specify a version of this project as this project is currently not stable.

Simply do: "composer require somecoding/wp-api-wrapper:0.0.x" in your project where x ist the latest version number.

Default Available Services
--------------------------

[](#default-available-services)

Some default Services are available to wrap common occurrences of Wordpress API data:

- Users (UserService)
- Categories (CategoriesService)
- Media (MediaService)
- Posts (PostService)
- Search (SearchService)

These services require an API Service for creation. This API Service needs to be initiated with a GuzzleHTTP Client, a Base URL of the Wordpress Site, a Hydrator Interface and optional a PSR simple cache interface.

```
