PHPackages                             leankoala/leanapibundle - 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. leankoala/leanapibundle

AbandonedArchivedLibrary[API Development](/categories/api)

leankoala/leanapibundle
=======================

A small bundle for API request handling in Symfony

18.6kPHP

Since Apr 16Pushed 1y ago5 watchersCompare

[ Source](https://github.com/leankoala-gmbh/LeanApiBundle)[ Packagist](https://packagist.org/packages/leankoala/leanapibundle)[ RSS](/packages/leankoala-leanapibundle/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (4)Used By (0)

LeanApiBundle
=============

[](#leanapibundle)

The Leankoala LeanApiBundle is the foundation for using Symfony as restful API.

Components
----------

[](#components)

- *CORS Listener* - this component handles the mandatory CORS headers. These are mandatory if the API should be accessible from a browser.
- *ApiRequest* - The API request handles the parameters within the HTTP request body. It also validates and casts the parameters like the Symfony ParamConverter.

First steps
-----------

[](#first-steps)

The first steps explain how the LeanApiBundle gets installed and how the request data can be processed.

### Installation

[](#installation)

The LeanApiBundle can be installed via composer.

```
$ composer require leankoala/leanapibundle
```

Afterwards add the bundle in the `AppKernel.php`.

```
$bundles = [
    ...
    new LeankoalaLeanApiBundle(),
    ...
]
```

### API routes

[](#api-routes)

### apiRequest Usage

[](#apirequest-usage)

```
$apiRequest = new ApiRequest(
    $symfonyRequest,
    $doctrine,
    $schema
);
```

Ideas
-----

[](#ideas)

The API bundle already does a lot but there are still a lot of things we want it to do additionally. This is a list of ideas:

- Auto-generate markdown from the schema arrays
- Use `@annotations` to inject the `ApiRequest` object with the correct schema
- Schema as yml

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 94.7% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c2586ec54907772495d8a87ac1100b626ff68a2f106cfad3815590f46b31f5f?d=identicon)[Leankoala](/maintainers/Leankoala)

---

Top Contributors

[![phmLabs](https://avatars.githubusercontent.com/u/650537?v=4)](https://github.com/phmLabs "phmLabs (36 commits)")[![malteschlueter](https://avatars.githubusercontent.com/u/13586874?v=4)](https://github.com/malteschlueter "malteschlueter (2 commits)")

---

Tags

apileanphpsymfony-bundle

### Embed Badge

![Health badge](/badges/leankoala-leanapibundle/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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