Download the PHP package jeffersongoncalves/laravel-wordpress without Composer
On this page you can find all versions of the php package jeffersongoncalves/laravel-wordpress. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jeffersongoncalves/laravel-wordpress
More information about jeffersongoncalves/laravel-wordpress
Files in jeffersongoncalves/laravel-wordpress
Package laravel-wordpress
Short Description WordPress REST API integration for Laravel
License MIT
Homepage https://github.com/jeffersongoncalves/laravel-wordpress
Informations about the package laravel-wordpress
Laravel WordPress
WordPress REST API integration for Laravel. A thin wrapper around the WordPress REST API covering posts, pages, media, categories, tags, comments and users, built on Laravel's HTTP client.
Installation
You can install the package via composer:
Publish the config file with:
This is the contents of the published config file:
Generate an Application Password in WordPress under Users > Your Profile > Application Passwords, then add your credentials to .env:
Requests are authenticated with HTTP Basic (Authorization: Basic base64(username:application_password)), so the site must be served over HTTPS.
Usage
You can use the Wordpress facade, or inject Jeffersongoncalves\Wordpress\Wordpress wherever you need it.
Posts
Post statuses: publish, draft, pending, private, future, trash.
Pages
Media
Categories and tags
Comments
Users
Every method returns an Illuminate\Http\Client\Response, so you can use ->json(), ->successful(), ->status(), etc. as usual. $filters and $attributes arrays are passed straight through to the REST API, so any parameter documented by WordPress is supported.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Jefferson Simão Gonçalves
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-wordpress with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^12.0|^13.0
illuminate/http Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0