PHPackages                             wwsh/gastro-api - 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. wwsh/gastro-api

ActiveLibrary[API Development](/categories/api)

wwsh/gastro-api
===============

Maintained Gastro API for desktop and mobile apps

017[4 issues](https://github.com/wwsh/gastro-api/issues)PHP

Since Mar 17Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

API Bundle Readme
=================

[](#api-bundle-readme)

This bundle supports Gastro API's functionality, specified and used by desktop and mobile apps, written by wwsh.

For more information contact Thomas Parys at [this site](http://wwsh.io).

Configuration
-------------

[](#configuration)

Enable Doctrine ORM in your mail config.yml and add the configuration for FOSRestBundle, listed below:

```
fos_rest:
    param_fetcher_listener: true
    body_listener: true
    body_converter:
        enabled: true
    format_listener:
        rules:
            - { path: '^/api', priorities: [ json ], fallback_format: json, prefer_extension: true }
            - { path: '^/', priorities: [html, json], fallback_format: html, prefer_extension: false }
    view:
        view_response_listener: 'true'
        mime_types: ['application/json', 'application/json;version=1.0', 'application/json;version=1.1']
        formats:
          json: true
          html: false
          xml:  false
    routing_loader:
        default_format: json
        include_format: false
    exception:
        codes:
            'Symfony\Component\Routing\Exception\ResourceNotFoundException': 404
            'Doctrine\ORM\OptimisticLockException': HTTP_CONFLICT
        messages:
            'Symfony\Component\Routing\Exception\ResourceNotFoundException': true
    access_denied_listener:
        json: true

```

Don't forget to enable these bundles in the kernel:

```
        new \FOS\RestBundle\FOSRestBundle(),
        new JMS\SerializerBundle\JMSSerializerBundle(),
        new \Nelmio\ApiDocBundle\NelmioApiDocBundle(),
        new \Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(),

```

Now it's time to include the routes in your routing.yml:

```
        api:
            resource: "@ApiBundle/Resources/config/routing.yml"
            type:     rest
            prefix:   /api

```

You can customize your prefix, but I am recommending to use the standard one.

Now the api should be set. To create the database schema and fill with example data, you can use:

```
php bin/console database:create
php bin/console doctrine:schema:create
php bin/console doctrine:fixtures:load

```

See if your API is working here: [API DOC](//api/doc)

On any questions, feel free to ask.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12593960?v=4)[Thomas Parys](/maintainers/wwsh)[@wwsh](https://github.com/wwsh)

### Embed Badge

![Health badge](/badges/wwsh-gastro-api/health.svg)

```
[![Health](https://phpackages.com/badges/wwsh-gastro-api/health.svg)](https://phpackages.com/packages/wwsh-gastro-api)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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