Download the PHP package oliver/remserver without Composer
On this page you can find all versions of the php package oliver/remserver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download oliver/remserver
More information about oliver/remserver
Files in oliver/remserver
Package remserver
Short Description Anax remserver module.
License MIT
Homepage https://dbwebb.se/anax
Informations about the package remserver
Anax REM server (remserver)
Anax REM server (remserver) module implements a REM server. A REM server is a REST Mockup API, useful for development and test of REST clients.
You can use this module, together with an Anax installation, to enable a scaffolded REM server, useful for test, development and prototyping.
This remserver can be used with various HTTP methods to use CRUD operations on predefined datasets.
The data is stored in the session and can therefore not be shared between users and browsers.
Table of content
- Install as Anax module
- Install using scaffold postprocessing file
- Install and setup Anax
- Dependency
- License
You can also read this documentation online.
Install as Anax module
This is how you install the module into an existing Anax installation.
Install using composer.
Copy the needed configuration and setup the remserver as a route handler for the route remserver
.
The remserver is now active on the route remserver/
according to the API documentation. You may try it out on the route remserver/users
to get the default dataset users
.
Optionally you may copy the API documentation.
The API documentation is now available through the route remserver-api
.
Install using scaffold postprocessing file
The module supports a postprocessing installation script, to be used with Anax scaffolding. The script executes the default installation, as outlined above.
The postprocessing script should be run after the composer require
is done.
Install and setup Anax
You need a Anax installation, before you can use this module. You can create a sample Anax installation, using the scaffolding utility anax-cli
.
Scaffold a sample Anax installation anax-site-develop
into the directory rem
.
Point your webserver to rem/htdocs
and Anax should display a Home-page.
Dependency
This is a Anax modulen and primarly intended to be used together with the Anax framework.
License
This software carries a MIT license. See LICENSE.txt for details.