PHPackages                             conghau/api-resource-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. conghau/api-resource-bundle

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

conghau/api-resource-bundle
===========================

Symfony2 api resource bundle

1.0.1(7y ago)037MITPHPPHP &gt;=7.0

Since Oct 8Pushed 7y ago1 watchersCompare

[ Source](https://github.com/conghau/api_resource_bundle)[ Packagist](https://packagist.org/packages/conghau/api-resource-bundle)[ RSS](/packages/conghau-api-resource-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (9)Versions (4)Used By (0)

Guide Config
============

[](#guide-config)

- Add config in `app\AppKernel`

```
...
   new \TCH\ApiResourceBundle\TCHApiResourceBundle(),
   new \Nelmio\ApiDocBundle\NelmioApiDocBundle(),
   new JMS\SerializerBundle\JMSSerializerBundle($this)

```

- Add config in `app\config\config.yml`

```
...
jms_serializer:
    metadata:
        auto_detection: true
nelmio_api_doc: ~
tch_api_resource:
   resources:
       user:
           entity: AppBundle\Entity\User
           actions: C.R.U.D.S #Create, Read/Retrieve, Update, Delete, Search
       .......... # add more here

```

- Add config in `app\config\routing.yml`

```
...
NelmioApiDocBundle:
    resource: "@NelmioApiDocBundle/Resources/config/routing.yml"
    prefix:   /api/doc

tch_api_resource:
    resource: .
    type: tch_api_resource
    prefix:   /api/v1/

```

> Note: See more guide of nelmio [here](https://github.com/nelmio/NelmioApiDocBundle/blob/2.13.0/Resources/doc/index.rst)

- Usage trait class `TraitTCHRepository`

```
Example:
    use TCH\ApiResourceBundle\Util\TraitTCHRepository;

    /**
     * UserRepository
     *
     * This class was generated by the Doctrine ORM. Add your own custom
     * repository methods below.
     */
    class UserRepository extends \Doctrine\ORM\EntityRepository
    {
        use TraitTCHRepository;
    }

```

- Go to api doc

```
[host]/api/doc

Example: http://127.0.0.1:8000/api/doc

```

^^ Enjoy

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

3

Last Release

2776d ago

Major Versions

0.0.1 → 1.0.02018-10-08

### Community

Maintainers

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

---

Top Contributors

[![conghau](https://avatars.githubusercontent.com/u/2627147?v=4)](https://github.com/conghau "conghau (6 commits)")

---

Tags

symfonypackageResource bundle

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/conghau-api-resource-bundle/health.svg)

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

###  Alternatives

[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)

PHPackages © 2026

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