Download the PHP package phpnomad/rest without Composer

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

phpnomad/rest

Latest Version Total Downloads PHP Version License

phpnomad/rest is an MVC-driven framework for defining REST APIs in a way that stays agnostic to the runtime you plug into. Controllers hold the business logic, RestStrategy implementations wire them into a host router (FastRoute, WordPress, or something custom), middleware shapes the request before your logic runs, validations enforce input contracts, and interceptors handle post-response side effects like events and logging. By separating API definition (what an endpoint is, what it requires, what it returns) from integration (how it runs inside a host), you get REST endpoints that move between stacks without rewrites.

The package runs in production behind the REST layer of Siren and several MCP servers and client systems.

Installation

Quick Start

A controller is a class that implements PHPNomad\Rest\Interfaces\Controller. Three methods describe the endpoint, and the container injects whatever services the constructor declares.

That controller is portable. It has no knowledge of how routes are matched or how the HTTP response is serialized, so it runs unchanged whether the host is FastRoute, WordPress, or a custom runtime. To put it behind a real router, register a RestStrategy for your environment. For a working FastRoute reference that wires controllers into nikic/fast-route, see phpnomad/fastroute-integration.

Controllers can pick up extra capabilities by implementing HasMiddleware, HasValidations, or HasInterceptors alongside Controller. Each added interface declares a small amount of additional lifecycle behavior without changing how the endpoint is defined.

Key Concepts

Documentation

Full documentation, including the request lifecycle, the integration guide, and reference material for every middleware and validation class, lives at phpnomad.com.

License

MIT. See LICENSE.txt.


All versions of rest with dependencies

PHP Build Version
Package Version
Requires phpnomad/enum-polyfill Version ^1.0
phpnomad/auth Version ^1.0
phpnomad/cache Version ^1.0
phpnomad/event Version ^1.0
phpnomad/http Version ^1.1
phpnomad/utils Version ^1.0
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 phpnomad/rest contains the following files

Loading the files please wait ...