Download the PHP package fastwhale/wordpress-php-sdk without Composer
On this page you can find all versions of the php package fastwhale/wordpress-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fastwhale/wordpress-php-sdk
More information about fastwhale/wordpress-php-sdk
Files in fastwhale/wordpress-php-sdk
Package wordpress-php-sdk
Short Description WordPress Laravel PHP SDK
License LGPL-3.0-or-later
Homepage https://www.madeit.be
Informations about the package wordpress-php-sdk
WordPress API PHP SDK
Installation
Require this package in your composer.json
and update composer.
After updating composer, add the ServiceProvider to the providers array in config/app.php
You can use the facade for shorter code. Add this to your aliases:
Add the config files
Documentation
Authentication
To use authenticated requests you have to sign in to the WordPress website to generate a JWT token. WordPress doesn't support this by default, you have to install a JWT compatible plugin. This package is tested with: https://nl.wordpress.org/plugins/jwt-authentication-for-wp-rest-api/
Now you can save the $token->token
to your database.
Application Password
You can use the newly introduced Application Password (in WordPress 5.6).
Interact with objects
User
WordPress Rest API documentation: https://developer.wordpress.org/rest-api/reference/users/
Post
WordPress Rest API documentation: https://developer.wordpress.org/rest-api/reference/posts/
Post from custom post type
WordPress Rest API documentation: https://developer.wordpress.org/rest-api/reference/posts/
Tags
WordPress Rest API documentation: https://developer.wordpress.org/rest-api/reference/tags/
Create new post
Uploading media
Execute any request
Read more about the WordPress rest API: https://developer.wordpress.org/rest-api/
Get
Put
Post
Delete
The complete documentation can be found at: https://www.tpweb.org/my-projects/wordpress-php-sdk/
Support
Support github or mail: [email protected]
Contributing
Please try to follow the psr-2 coding style guide. http://www.php-fig.org/psr/psr-2/
License
This package is licensed under LGPL. You are free to use it in personal and commercial projects. The code can be forked and modified, but the original copyright author should always be included!
All versions of wordpress-php-sdk with dependencies
illuminate/container Version *
guzzlehttp/guzzle Version 6.*|7.*
illuminate/validation Version *
php Version >=5.6