Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chrysanthos/laravel-wordpress-api
Simple laravel wrapper for wordpress rest api
https://github.com/chrysanthos/laravel-wordpress-api
hacktoberfest laravel php wordpress
Last synced: 3 months ago
JSON representation
Simple laravel wrapper for wordpress rest api
- Host: GitHub
- URL: https://github.com/chrysanthos/laravel-wordpress-api
- Owner: chrysanthos
- License: mit
- Created: 2019-05-26T19:14:56.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-10-27T20:11:44.000Z (about 2 years ago)
- Last Synced: 2024-10-09T16:48:20.007Z (3 months ago)
- Topics: hacktoberfest, laravel, php, wordpress
- Language: PHP
- Homepage:
- Size: 21.5 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel wrapper for your wordpress site
[![Latest Version](https://img.shields.io/github/release/chrysanthos/laravel-wordpress-api.svg?style=flat-square)](https://github.com/chrysanthos/laravel-wordpress-api/releases)
[![Total Downloads](https://img.shields.io/packagist/dt/chrysanthos/laravel-wordpress-api.svg?style=flat-square)](https://packagist.org/packages/chrysanthos/laravel-wordpress-api)This package allows you to get articles from your wordpress blog without interacting directly with the wordpress rest api and guzzle.
## Available methods
It currently has only these two methods available (That's all I needed, let me know if you have any requests).
### Get latest articles
```php
WpApi::latest(10);
```
### Get specific article
```php
WpApi::post($slug);
```