PHPackages                             quickclack/rest-attribute-bundle - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. quickclack/rest-attribute-bundle

ActiveSymfony-bundle[HTTP &amp; Networking](/categories/http)

quickclack/rest-attribute-bundle
================================

Modern REST support for Symfony 6.4–7.2 using attributes

v1.0.1(1y ago)04MITPHPPHP ^8.1CI failing

Since May 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/quickclack/rest-attribute-bundle)[ Packagist](https://packagist.org/packages/quickclack/rest-attribute-bundle)[ RSS](/packages/quickclack-rest-attribute-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)Dependencies (7)Versions (3)Used By (0)

Quickclack RestAttributeBundle
==============================

[](#quickclack-restattributebundle)

Modern REST support for Symfony 6.4–7.2 using attributes. This bundle simplifies the implementation of RESTful APIs by using PHP attributes for route parameters, making your Symfony controllers cleaner and easier to maintain.

Features
--------

[](#features)

- **Automatic parameter fetching** from query, request, or route.
- **Custom validation** of parameters using Symfony Validator.
- Support for Symfony versions **6.4–7.2**.

Installation
------------

[](#installation)

```
composer require quickclack/rest-attribute-bundle
```

Install the bundle via Composer:

After installation, add to config/bundles.php:
----------------------------------------------

[](#after-installation-add-to-configbundlesphp)

```
return [
    Quickclack\RestAttributeBundle\RestAttributeBundle::class => ['all' => true],
];
```

Symfony 6.4–7.2 Compatibility
-----------------------------

[](#symfony-6472-compatibility)

This bundle supports Symfony 6.4 through 7.2, so make sure you have a compatible Symfony version installed.

Usage
-----

[](#usage)

The bundle provides a simple way to fetch parameters from request queries and route parameters with automatic validation.

Example
-------

[](#example)

```
namespace App\Controller;

use Symfony\Component\HttpFoundation\JsonResponse;
use Quickclack\RestAttributeBundle\Attribute\RouteParam;
use Quickclack\RestAttributeBundle\Request\ParamFetcher;

class TestController
{
    #[Get('/api/test')]
    #[RouteParam(name: 'name', from: 'query', type: 'string')]
    #[RouteParam(name: 'age', from: 'query', type: 'int', default: 0, required: false)]
    public function testAction(ParamFetcher $fetcher): JsonResponse
    {
        return new JsonResponse([
            'name' => $fetcher->get('name'),
            'age' => $fetcher->get('age')
        ]);
    }
}
```

Testing
-------

[](#testing)

```
composer install
php bin/phpunit
```

License
-------

[](#license)

This bundle is licensed under the MIT License. See the LICENSE file for more details.

Changelog
---------

[](#changelog)

All notable changes to this project will be documented in the CHANGELOG.md.

###  Health Score

27

—

LowBetter than 46% of packages

Maintenance42

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Every ~0 days

Total

2

Last Release

473d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/63925540?v=4)[Andrew Makarov](/maintainers/quickclack)[@quickclack](https://github.com/quickclack)

---

Top Contributors

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

---

Tags

apisymfonyrestattributesSymfony Bundle

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/quickclack-rest-attribute-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/quickclack-rest-attribute-bundle/health.svg)](https://phpackages.com/packages/quickclack-rest-attribute-bundle)
```

###  Alternatives

[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k52.2M377](/packages/api-platform-core)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k18.3M430](/packages/easycorp-easyadmin-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

12017.1k](/packages/rcsofttech-audit-trail-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M235](/packages/sulu-sulu)[api-platform/serializer

API Platform core Serializer

295.3M101](/packages/api-platform-serializer)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

516113.7k3](/packages/web-auth-webauthn-framework)

PHPackages © 2026

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