PHPackages                             thephpguys/headless-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. [API Development](/categories/api)
4. /
5. thephpguys/headless-bundle

ActiveSymfony-bundle[API Development](/categories/api)

thephpguys/headless-bundle
==========================

v0.0.2(3y ago)03MITPHPPHP ^7.4.25

Since Mar 31Pushed 3y ago2 watchersCompare

[ Source](https://github.com/ThePHPGuys/headless-bundle)[ Packagist](https://packagist.org/packages/thephpguys/headless-bundle)[ RSS](/packages/thephpguys-headless-bundle/feed)WikiDiscussions main Synced 1w ago

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

Installation
============

[](#installation)

Make sure Composer is installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Applications that use Symfony Flex
----------------------------------

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
$ composer require thephpguys/headless-bundle
```

Applications that don't use Symfony Flex
----------------------------------------

[](#applications-that-dont-use-symfony-flex)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require thephpguys/headless-bundle
```

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    Tpg\HeadlessBundle\TpgHeadlessBundle::class => ['all' => true],
];
```

### Step 3: Add routing

[](#step-3-add-routing)

Then, add routing by adding it to the routing config in the `config/routes.yaml` file of your project:

```
# config/routes.yaml
# ...
headless:
    resource: '@TpgHeadlessBundle/Resources/config/routing.yaml'
    prefix: '/api'
```

### Step 4: Add collections

[](#step-4-add-collections)

Then, create the `config/packages/tpg_headless.yaml` file of your project and add your entities:

```
# config/packages/tpg_headless.yaml

tpg_headless:
    collections:
        pet: App\Entity\Pet
        owner: App\Entity\Owner
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity40

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.

###  Release Activity

Cadence

Every ~109 days

Total

2

Last Release

1400d ago

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/thephpguys-headless-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/thephpguys-headless-bundle/health.svg)](https://phpackages.com/packages/thephpguys-headless-bundle)
```

###  Alternatives

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[sulu/sulu

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

1.3k1.3M152](/packages/sulu-sulu)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[api-platform/serializer

API Platform core Serializer

223.4M31](/packages/api-platform-serializer)[kadirov/api-starter-kit

443.9k](/packages/kadirov-api-starter-kit)

PHPackages © 2026

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