Download the PHP package moxie-lean/wp-endpoints-collection without Composer

On this page you can find all versions of the php package moxie-lean/wp-endpoints-collection. 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 wp-endpoints-collection

WP Endpoint Collection

This package is depreciated. LEAN now uses the WordPress REST API plugins instead

Query against a WordPress site and get a JSON response with a collection of data associated with your request.

Getting Started

The easiest way to install this package is by using composer from your terminal:

Or by adding the following lines on your composer.json file

This will download the files from the packagist site and set you up with the latest version located on master branch of the repository.

After that you can include the autoload.php file in order to be able to autoload the class during the object creation.

Features

By default returns only a collection of posts but any post type can be specifed to be returned or a collection of multiple post types can be specifed as well.

Usage.

The default URL is:

By default the collection is the list of posts, you can use most of the WP_Query params in order to update your results, for example by default uses setting that specifies the number of reading post on the settings page.

Request examples

Get only the latest 3 posts.

How about get the latest 3 posts that belongs to the author with the ID 1.

Or just get the posts that belong to the author with the ID 1.

Get the all the posts ordered by ID from lowest to highest values.

Get all the posts and pages published on the site.

Get the first and second page of the blog section.

Get all the posts that has the category ID 2

Filters

There are filters that can be used on this particular endpoint.

ln_endpoints_collection_args. This filter allow you to overwrite the default arguments used to query inside of the collection so you can overwrite the default values used on the WP_Query before executed.

ln_endpoints_collection_data. This filter allow you to overwrite the data after processing and before is sending it to the client it has 1 parameter that can be used on the filter:

ln_endpoints_collection_item. Allows you to easily customise the output of each post:


All versions of wp-endpoints-collection with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
moxie-lean/wp-endpoint Version 1.*.*
moxie-lean/wp-utils Version 1.*.*
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 moxie-lean/wp-endpoints-collection contains the following files

Loading the files please wait ....