PHPackages                             nolte/wp-endpoint - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. nolte/wp-endpoint

ActiveLibrary[API Development](/categories/api)

nolte/wp-endpoint
=================

wp-endpoint

3.0.3(6mo ago)227.1k↓42.6%1MITPHPPHP &gt;=7.4 || &gt;=8.0

Since Mar 22Pushed 6mo ago4 watchersCompare

[ Source](https://github.com/wearenolte/wp-endpoint)[ Packagist](https://packagist.org/packages/nolte/wp-endpoint)[ Docs](https://github.com/wearenolte/wp-endpoint)[ RSS](/packages/nolte-wp-endpoint/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (13)Used By (1)

WP Endpoint
===========

[](#wp-endpoint)

> Class that makes the process to create a new WordPress endpoint more easily.

By default the endpoint are under the leen namespace with the version number 1 this data can be overwritten using any of the [filters](#filters) specified below.

The class provides a set of defined methods and mechanism to register a new endpoint, wich makes the process of define a new endpoint pretty straightforward.

Getting Started
---------------

[](#getting-started)

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

```
composer require nolte/wp-endpoint
```

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

```
"require": {
  "nolte/wp-endpoint": "dev-master"
}
```

This will download the files from the [packagist site](https://packagist.org/packages/nolte/wp-endpoint)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.

```
include '/vendor/autoload.php';
```

Usage
-----

[](#usage)

After you added the dependency on your module you need to create a new class that defines your endpoint for example:

```
