PHPackages                             anax/remserver - 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. [Framework](/categories/framework)
4. /
5. anax/remserver

ActiveLibrary[Framework](/categories/framework)

anax/remserver
==============

Anax remserver module.

v2.1.5(5y ago)0513↓25%1[1 issues](https://github.com/canax/remserver/issues)1MITPHPPHP &gt;=7.4CI failing

Since Sep 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/canax/remserver)[ Packagist](https://packagist.org/packages/anax/remserver)[ Docs](https://dbwebb.se/anax)[ RSS](/packages/anax-remserver/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (4)Versions (16)Used By (1)

Anax REM server (anax/remserver)
================================

[](#anax-rem-server-anaxremserver)

[![Latest Stable Version](https://camo.githubusercontent.com/b24a0f296ebaff2fedb9bf4343d2d6bb9206d84890ae90e7029ec853caa2e2ec/68747470733a2f2f706f7365722e707567782e6f72672f616e61782f72656d7365727665722f762f737461626c65)](https://packagist.org/packages/anax/remserver)[![Join the chat at https://gitter.im/canax/remserver](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/canax/remserver/?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

[![Build Status](https://camo.githubusercontent.com/de5a7143ec69d265a7ab39e34ab43ba8ffc68eb56db5594ff20dd7e1c3c157af/68747470733a2f2f7472617669732d63692e6f72672f63616e61782f72656d7365727665722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/canax/remserver)[![CircleCI](https://camo.githubusercontent.com/b7f0e5c6d5aea682ba80851a823a68f6e26cd161dec2a57034ff49f79c3bc0e8/68747470733a2f2f636972636c6563692e636f6d2f67682f63616e61782f72656d7365727665722e7376673f7374796c653d737667)](https://circleci.com/gh/canax/remserver)

[![Build Status](https://camo.githubusercontent.com/806771b89759feae905ba6d6f876915f12835dffa964a024a74b1326e23e746f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f63616e61782f72656d7365727665722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/canax/remserver/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/9a9792c5de7f257ceec70e20a4116ecbf745eec4a2f0c845608e80a59ecec1d0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f63616e61782f72656d7365727665722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/canax/remserver/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/c511b8b8139287a85de72532b55ac482a069555163e5d546ad6c3303891ff412/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f63616e61782f72656d7365727665722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/canax/remserver/?branch=master)

[![Maintainability](https://camo.githubusercontent.com/46db8d155daba222640aabcefaee59976c33f4d32a4eb7419b1136090836969e/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f34376637373536626164313865326166626437312f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/canax/remserver/maintainability)[![Codacy Badge](https://camo.githubusercontent.com/5452cda94f6715303304d1d15d842d258cbca371bd51ba6521718c980bde8b31/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3265653135356532353136663432663362373635333362633636376236643031)](https://www.codacy.com/app/mosbth/remserver?utm_source=github.com&utm_medium=referral&utm_content=canax/remserver&utm_campaign=Badge_Grade)

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 quickly 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. You can add and supply your own JSON datasets which will be loaded by configuration.

The data is stored in the session and can therefore not be shared between users and browsers.

Use REM server as a web service
-------------------------------

[](#use-rem-server-as-a-web-service)

This module is bundled together with an Anax website in the repo "[Anax REM server website](https://github.com/canax/remserver-website)" which is hosted at `https://rem.dbwebb.se`.

There you can read the documentation on how to use the REM service and try it out.

Install as an Anax module
-------------------------

[](#install-as-an-anax-module)

This is how you install the module into an existing Anax installation, for example an installation of `[anax/anax](https://github.com/canax/anax)`.

There are two steps in the installation procedure, 1) first install the module using composer and then 2) integrate it into you Anax base installation.

### Step 1, install using composer.

[](#step-1-install-using-composer)

Install the module using composer.

```
composer require anax/remserver

```

### Step 2, integrate into your Anax base

[](#step-2-integrate-into-your-anax-base)

You can review the module configuration file in the directory `vendor/anax/remserver/config`. It consists of the following parts.

FileDescription`di/remserver.php`Add "remserver" as a di service to make it easy to use from the controller, this is implemented by the model class `RemServer`.`remserver/dataset`These datasets are loaded upon start, when the "remserver" gets activated as a di service. You may add your own dataset to extend the server.`remserver/config.php`The configuration file read by the di service "remserver" when it is activated. Here you decide what datasets to load into.`remserver/README.md`Short explanation on how to add new datasets.`router/700_remserver.php`The routes supported for the REM server API. All routes are implemented by the `RemServerController` class.You may copy all the module configuration files with the following command.

```
# Go to the root of your Anax base repo
rsync -av vendor/anax/remserver/config ./

```

The remserver is now active on the route `remserver/`. You may try it out on the route `remserver/users` to get the default dataset `users`.

Optionally you may copy the API documentation as Markdown content. Do this only if you have support for Flat File Content from the `content/` directory.

```
rsync -av vendor/anax/remserver/content/index.md content/remserver-api.md

```

The API documentation is now available through the route `remserver-api`.

You can now use the REM server module as an integrated part of you Anax installation.

Dependency
----------

[](#dependency)

This is a Anax modulen and its usage is primarly intended to be together with the Anax framework.

You can install an instance on [anax/anax](https://github.com/canax/anax) and run this module inside it, to try it out for test and development.

The repo "[Anax REM server website](https://github.com/canax/remserver-website)" is an example of how that can be done.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~81 days

Recently: every ~178 days

Total

15

Last Release

2012d ago

Major Versions

v1.1.0 → v2.0.02018-11-22

PHP version history (4 changes)v1.0.0PHP &gt;=5.6

v1.1.0PHP &gt;=7.0

v2.0.0PHP &gt;=7.2

v2.1.4PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/4cac244120f54c02a4fb3186b91323f3f0805dd9daefd0babeb4a82a19232faf?d=identicon)[mikael\_roos](/maintainers/mikael_roos)

---

Top Contributors

[![mosbth](https://avatars.githubusercontent.com/u/169550?v=4)](https://github.com/mosbth "mosbth (81 commits)")

---

Tags

frameworkmicromvcboilerplateeducation

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/anax-remserver/health.svg)

```
[![Health](https://phpackages.com/badges/anax-remserver/health.svg)](https://phpackages.com/packages/anax-remserver)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
