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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wordpress-php-sdk

WordPress API PHP SDK

Build Status Coverage Status Latest Stable Version Latest Unstable Version Total Downloads License

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

PHP Build Version
Package Version
Requires illuminate/support Version *
illuminate/container Version *
guzzlehttp/guzzle Version 6.*|7.*
illuminate/validation Version *
php Version >=5.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package fastwhale/wordpress-php-sdk contains the following files

Loading the files please wait ....