Download the PHP package maneuver/channel without Composer

On this page you can find all versions of the php package maneuver/channel. 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 channel

PHP library for the Wordpress REST API

Currently only supports GET requests.


TABLE OF CONTENTS:


Installation

Install via composer:

And include the autoloader:

Happy times. 🤙

Authentication

Basic Authentication

Make sure the Basic Authentication plugin for Wordpress is installed and activated.
(should only be used for development purposes, as stated by the repository)

API Token

Make sure the Rooftop API Authentication plugin is installed and activated.

OAuth

Currently not implemented.

Usage

Posts

Retrieve a list of all posts (where post_type = 'post'):

Retrieve a post by ID:

Using Twig? Fear not:

Pages

Retrieve a list of all pages:

Retrieve a page by ID:

Taxonomies & Terms

Retrieve all existing taxonomies:

Retrieve one taxonomy by slug:

Or retrieve the terms in one call using the 'get' method:

Users

Get all users:

Media

Get all media:

Custom Post Types

When you define a custom post type in your Wordpress installation, make sure you set the option to . This exposes an endpoint in the REST API to retrieve the posts. Read the docs

Then use the general 'get' method:

Slightly more advanced stuff

Endpoints

You can actually call any endpoint using the 'get' method:

Read more about all endpoints in the REST API Handbook

Guzzle

You can pass in more requestOptions for Guzzle:

Read more about the Guzzle RequestOptions here.

Custom Classes

Every call returns an object (or array of objects) extending the '\Maneuver\Models\Base' class. You can define your own classes if needed.

NOTE: Don't extend the '\Maneuver\Models\Base' class directly, you'll lose some functionality.


Todo:


All versions of channel with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
guzzlehttp/guzzle Version ^6.2
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 maneuver/channel contains the following files

Loading the files please wait ....