PHPackages                             kzorluoglu/rest-api-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. kzorluoglu/rest-api-bundle

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

kzorluoglu/rest-api-bundle
==========================

A Symfony bundle for Chameleon System

7.1.x-dev(5y ago)05MITPHPPHP ^7.4

Since Apr 9Pushed 4y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (3)Used By (0)

REST API Bundle (WIP)
=====================

[](#rest-api-bundle-wip)

This bundle provide REST API interface for Chameleon Shop. All Business-Features (not yet) be possible.

Actually Completed Features:

- Login
- Basic Product List with sorting, offset and limit

installation
------------

[](#installation)

- Install the Bundle via Composer

```
 composer.sh require kzorluoglu/rest-api-bundle:dev-master

```

- Add the Bundle in app/AppKernel.php

```
new \kzorluoglu\RestApiBundle\kzorluogluRestApiBundle(),

```

- Add the AnnotationReader::addGlobalIgnoredNamespace("OA") in app/autoload.php

```
$loader = require __DIR__.'/../vendor/autoload.php';

// OA (open AI) Annotations adding Doctorine Ingored Namespaces List
\Doctrine\Common\Annotations\AnnotationReader::addGlobalIgnoredNamespace("OA");

```

- Add the API Route in app/config/routing.yml

```
api:
    resource: "@kzorluogluRestApiBundle/Resources/config/routing.yml"
    type:     yaml
    prefix:   /api

```

Documentation for API Endpoints
-------------------------------

[](#documentation-for-api-endpoints)

All URIs are relative to **

ClassMethodHTTP requestDescription*DefaultApi*[**kzorluogluRestApiBundleControllerLoginControllerLogin**](docs/Api/DefaultApi.md#kzorluogluRestApiBundlecontrollerlogincontrollerlogin)**POST** /api/loginLogin as user*DefaultApi*[**kzorluogluRestApiBundleControllerProductProductControllerIndex**](docs/Api/DefaultApi.md#kzorluogluRestApiBundlecontrollerproductproductcontrollerindex)**POST** /api/productProduct ListDocumentation For Models
------------------------

[](#documentation-for-models)

- [LoginBody](docs/Model/LoginBody.md)
- [Product Body](docs/Model/ProductBody.md)
- [Login Response (Status Code: 200)](docs/Model/LoginResponse200.md)
- [Product Response (Status Code: 200)](docs/Model/ProductResponse200.md)

Tests
=====

[](#tests)

Prepare
-------

[](#prepare)

```
cd /vendor/kzorluoglu/rest-api-bundle
composer install
```

and Run Tests

```
./vendor/bin/phpunit -c phpunit.xml
```

Development
===========

[](#development)

### Create a new openapi yaml after changes

[](#create-a-new-openapi-yaml-after-changes)

```
./vendor/bin/openapi -o api.yml  /your/root/path/vendor/kzorluoglu/rest-api-bundle/Controller

```

Example:

```
./vendor/bin/openapi -o api.yml  /usr/local/apache2/htdocs/customer/vendor/kzorluoglu/rest-api-bundle/Controller
```

1. Check if api.yml exists

```
../customer
..../app
..../web
..../api.yml

```

2. For Preview; copy the contents of the api.yml file and paste it on

### Documentation generating

[](#documentation-generating)

### Preview

[](#preview)

1. copy the contents of the api.yml file
2. paste it on

#### Alternative 1

[](#alternative-1)

1. Copy the contents of the api.yml file and paste it on
2. Click *Generate Client*
3. Choose one of the Client Software Language
4. extract the generated zip file
5. copy the "## Documentation for API Endpoints" Section from readme.md in your readme.md
6. copy the docs folder from zip to this bundle

#### Alternative 2

[](#alternative-2)

1. Download  - folder of interest is "dist"
2. Copy your api YAML into the dist folder
3. Open index.html and change the value of URL inside the tag at the bottom of the file to ./swagger.json (or whatever your swagger json is called)
4. Host online! (or start a local server to view output).

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1865d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/92786feb56c614427abfb72c0eb159fd7811c7e7f27b19b649abd4082bb62926?d=identicon)[kzorluoglu](/maintainers/kzorluoglu)

---

Top Contributors

[![kzorluoglu](https://avatars.githubusercontent.com/u/5286454?v=4)](https://github.com/kzorluoglu "kzorluoglu (5 commits)")

---

Tags

apisymfonybundlerest

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kzorluoglu-rest-api-bundle/health.svg)

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

###  Alternatives

[lexik/jwt-authentication-bundle

This bundle provides JWT authentication for your Symfony REST API

2.6k58.7M210](/packages/lexik-jwt-authentication-bundle)[cypresslab/patch-manager

A library to manage patch requests

16117.4k](/packages/cypresslab-patch-manager)[mediamonks/rest-api-bundle

MediaMonks Rest API Symfony Bundle

1656.2k1](/packages/mediamonks-rest-api-bundle)[mediamonks/rest-api

MediaMonks Rest API

1351.3k1](/packages/mediamonks-rest-api)

PHPackages © 2026

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