PHPackages                             rpodwika/fakerestserverbundle - 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. rpodwika/fakerestserverbundle

ActiveLibrary[API Development](/categories/api)

rpodwika/fakerestserverbundle
=============================

Bundles creates Rest API based on schema provided in files. Supports most of the request types and provides routing

0.1.0(9y ago)00GPLPHPPHP &gt;=7.1.0

Since Mar 16Pushed 9y ago1 watchersCompare

[ Source](https://github.com/rpodwika/FakeRestServerBundle)[ Packagist](https://packagist.org/packages/rpodwika/fakerestserverbundle)[ RSS](/packages/rpodwika-fakerestserverbundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (5)Versions (3)Used By (0)

Fake Rest Server Bundle
=======================

[](#fake-rest-server-bundle)

[![Build Status](https://camo.githubusercontent.com/52affeb9b11f86bbd63329f205aca63cfe05242e429433f4cf2b956cb35c81f0/68747470733a2f2f7472617669732d63692e6f72672f72706f6477696b612f46616b655265737453657276657242756e646c652e737667)](https://travis-ci.org/rpodwika/FakeRestServerBundle)[![Coverage Status](https://camo.githubusercontent.com/5a2ae1820d392576836dc9e0595346abaf27447097dc4007269fbfc5474b2730/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f72706f6477696b612f46616b655265737453657276657242756e646c652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/rpodwika/FakeRestServerBundle?branch=master)

FakeRestServerBundle is a bundle to create a fully working API based on YAML schema definition.

How it works?
-------------

[](#how-it-works)

It parsers a YAML file with the database schema and based on that it creates the endpoints with possibility to perform requests such as GET, POST, PUT, HEAD, DELETE and OPTIONS

### Schema definition

[](#schema-definition)

Given following schema defined in YAML

```
    user:
        - {id: 5, name: "John", surname: "Doe"}
        - {id: 6, name: "Jane", surname: "Doe"}
        - {id: 7, name: "Jack", surname: "Daniels"}

    pictures:
        - {id: 1, name: "A", src: "images/img.jpg"}
        - {id: 2, name: "B", src: "images/213.png"}
        - {id: 3, name: "C", src: "images/12.jpg"}

```

Following endpoints will be created

```
  ➜  fakeserver php bin/console debug:router
   ------------------------------ --------- -------- ------ -----------------------------------
    Name                           Method    Scheme   Host   Path
   ------------------------------ --------- -------- ------ -----------------------------------
    FAKE_SERVER_GET_user           GET       ANY      ANY    /user/{user}
    FAKE_SERVER_POST_user          POST      ANY      ANY    /user
    FAKE_SERVER_PUT_user           PUT       ANY      ANY    /user/{user}
    FAKE_SERVER_DELETE_user        DELETE    ANY      ANY    /user/{user}
    FAKE_SERVER_PATCH_user         PATCH     ANY      ANY    /user/{user}
    FAKE_SERVER_HEAD_user          HEAD      ANY      ANY    /user/{user}
    FAKE_SERVER_OPTIONS_user       OPTIONS   ANY      ANY    /user/{user}
    FAKE_SERVER_GET_pictures       GET       ANY      ANY    /pictures/{pictures}
    FAKE_SERVER_POST_pictures      POST      ANY      ANY    /pictures
    FAKE_SERVER_PUT_pictures       PUT       ANY      ANY    /pictures/{pictures}
    FAKE_SERVER_DELETE_pictures    DELETE    ANY      ANY    /pictures/{pictures}
    FAKE_SERVER_PATCH_pictures     PATCH     ANY      ANY    /pictures/{pictures}
    FAKE_SERVER_HEAD_pictures      HEAD      ANY      ANY    /pictures/{pictures}
    FAKE_SERVER_OPTIONS_pictures   OPTIONS   ANY      ANY    /pictures/{pictures}

```

Plans
-----

[](#plans)

- Adding JSON schema definition
- Adding PHP array schema definition
- Creating schema definition which connects definitions in different type
- Setting FakeServerApiController as a service and adding it to DI
- Other?

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

3393d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ba61a85f15cc83696965d2d2bcc7e5432d767243b6034c5d8ce91dfbea9d2ce6?d=identicon)[rpodwika](/maintainers/rpodwika)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rpodwika-fakerestserverbundle/health.svg)

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

###  Alternatives

[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k246.0M11.1k](/packages/symfony-framework-bundle)[symfony/web-profiler-bundle

Provides a development tool that gives detailed information about the execution of any request

2.3k156.8M1.2k](/packages/symfony-web-profiler-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.8M717](/packages/sylius-sylius)

PHPackages © 2026

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