PHPackages                             rozbehsharahi/netgen-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. [Framework](/categories/framework)
4. /
5. rozbehsharahi/netgen-headless-bundle

ActiveSymfony-bundle[Framework](/categories/framework)

rozbehsharahi/netgen-headless-bundle
====================================

Symfony Bundle to make Netgen Layouts Headless

22PHP

Since Mar 6Pushed 5y ago2 watchersCompare

[ Source](https://github.com/RozbehSharahi/netgen-headless-bundle)[ Packagist](https://packagist.org/packages/rozbehsharahi/netgen-headless-bundle)[ RSS](/packages/rozbehsharahi-netgen-headless-bundle/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Netgen Headless Bundle
======================

[](#netgen-headless-bundle)

[![Main Build](https://camo.githubusercontent.com/2d4b2e3a89db1b0710246994aa5d2aaaac2c372b92ffcf8df371bbd2d60b10cb/68747470733a2f2f7472617669732d63692e636f6d2f526f7a626568536861726168692f6e657467656e2d686561646c6573732d62756e646c652e7376673f6272616e63683d6d61696e)](https://camo.githubusercontent.com/2d4b2e3a89db1b0710246994aa5d2aaaac2c372b92ffcf8df371bbd2d60b10cb/68747470733a2f2f7472617669732d63692e636f6d2f526f7a626568536861726168692f6e657467656e2d686561646c6573732d62756e646c652e7376673f6272616e63683d6d61696e)

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

[](#installation)

Symfony flex should do the configuration automatically. So step 2 and 3 are normally not needed.

### 1 Install

[](#1-install)

```
$ composer require rozbehsharahi/netgen-headless-bundle

// This package has no release yet, so you will need to install like following in fact:
$ composer require rozbehsharahi/netgen-headless-bundle:dev-main

```

In case symfony flex is missing something, check the following steps:

### 2 Activate bundles

[](#2-activate-bundles)

```
// add to bundles.php
Overblog\GraphQLBundle\OverblogGraphQLBundle::class => ['all' => true],
Rs\NetgenHeadlessBundle\NetgenHeadlessBundle::class => ['all' => true],

```

### 3 Add GraphQL Route

[](#3-add-graphql-route)

```
overblog_graphql_endpoint:
    resource: "@OverblogGraphQLBundle/Resources/config/routing/graphql.yml"
    prefix: '' // add here a prefix for graphql in case you don't want graphql to register on `/`

```

### Try it out

[](#try-it-out)

```
// Please replace http://localhost with your host in case it is not localhost
curl -X POST -H "Content-Type: application/json" -d '{ "query": "{ sayHello }"  }' http://localhost/graphql/netgen

```

**Notice** that this bundle serves a separated schema. Therefore, please do not forget to append the schema `netgen` to your graphql endpoint:

`http://localhost/graphql/netgen`

Installation of GraphIQL for debugging and documentation
--------------------------------------------------------

[](#installation-of-graphiql-for-debugging-and-documentation)

GraphIQL is a nice way to discover what this bundle offers. Symfony Flex should configure your application automatically. Therefore, step 2 &amp; 3 are normally not needed.

### 1 Install package

[](#1-install-package)

```
composer require --dev overblog/graphiql-bundle

```

### 2 Activate bundle

[](#2-activate-bundle)

```
// config/bundles.php
Overblog\GraphiQLBundle\OverblogGraphiQLBundle::class => ['dev' => true],

```

### 3 Add route

[](#3-add-route)

```
// config/routes/dev/graphiql.yaml
overblog_graphiql:
    resource: "@OverblogGraphiQLBundle/Resources/config/routing.xml"

```

### 4 Try it out

[](#4-try-it-out)

Now you can browse to `http://localhost/graphiql/netgen`.

**Notice:** Please do not forget to add the schema `/netgen` to your graphiql route.

Usage
-----

[](#usage)

This package provides a graphql endpoint which depending on the configuration made can be reached via `http://your-domain.com/graphql/netgen` for instance.

### Example Query

[](#example-query)

```
{
    layout(search: { request: { uri: "/hello-world" } }) {
        id # receive id
        json # receive json of whole layout
        zones {
            identifier # receive identifier
            json # receive json of zone
        }
    }
}

```

Run tests and application
-------------------------

[](#run-tests-and-application)

This is a self-contained bundle containing also a test application in `Tests/Application`.

I developed this on my own docker-compose base repository: `https://github.com/RozbehSharahi/doka`. Feel free to use your this as well or your own setup.

```
// In root dir call:
git clone https://github.com/RozbehSharahi/doka.git

// Create an empty .doka.env as described on https://github.com/RozbehSharahi/doka and add:
DOKA_APP_APACHE_DOCUMENT_ROOT=/var/www/html/Tests/Application/public/

// Start docker env
doka/compose up -d

// Enter docker-container and run tests
doka/enter-app
vendor/bin/phpunit

// If you don't want to have db created all over again, you can create a file (git ignored) on root directory called `fast-tests`
touch fast-tests

```

### Access test application

[](#access-test-application)

```
# enter cli
doka/enter-app

# run once, whenever you call this you will have a clean and empty db again.
Tests/Application/setup-test-application

# Now go to
App: http://localhost:8080
Netgen Layouts: http://localhost:8080/nglayouts/admin (User: root, Password: root)
Graphql: http://localhost:8080/graphql/netgen
Graphiql: http://localhost:8080/graphiql/netgen

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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