Download the PHP package rdelbem/routepress without Composer

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

Routepress

Build Status

A PHP library to simplify the creation and management of WordPress REST API routes.

Table of Contents

Introduction

Routepress is a PHP library designed to streamline the process of registering and managing REST API routes in WordPress plugins. It provides a fluent interface for defining routes, handling callbacks, and integrating custom authentication mechanisms.

Features

Installation

Install Routepress via Composer:

bash

composer require rdelbem/routepress

Requirements

Usage

Implementing the AuthInterface

Create a class that implements the AuthInterface to define your custom authentication logic:

Initializing Routepress

Instantiate the Routepress class with your authentication class and API namespace:

php

Creating Routes

Use the create method to define a new route:

Examples

Simple GET Route

POST Route with Authentication

Multiple HTTP Verbs

Testing

Routepress includes a suite of tests to ensure reliability.

Running Tests

Make sure you have Docker and Docker Compose installed. Then, run:

Static Analysis with Psalm

Run Psalm to perform static analysis:

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the Repository: Click the "Fork" button at the top right of the repository page.

  2. Clone Your Fork:

  3. Create a New Branch:

  4. Make Your Changes: Implement your feature or bug fix.

  5. Commit Your Changes:

  6. Push to Your Branch:

  7. Submit a Pull Request: Go to the original repository and click "New Pull Request".

Coding Standards

License

Routepress is open-source software licensed under the GNU General Public License v3.0 or later.


Disclaimer: This project is not affiliated with or endorsed by WordPress. "WordPress" is a registered trademark of the WordPress Foundation.


All versions of routepress with dependencies

PHP Build Version
Package Version
Requires humanmade/psalm-plugin-wordpress Version ^3.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 rdelbem/routepress contains the following files

Loading the files please wait ....