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

ActiveLibrary[API Development](/categories/api)

diamante/api-bundle
===================

DiamanteDesk Api Bundle

2.0.3(9y ago)22.7k23OSL-3.0PHPPHP &gt;=5.4.4

Since Apr 1Pushed 8y ago9 watchersCompare

[ Source](https://github.com/eltrino/DiamanteApiBundle)[ Packagist](https://packagist.org/packages/diamante/api-bundle)[ Docs](https://github.com/eltrino/DiamanteApiBundle)[ RSS](/packages/diamante-api-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (11)Used By (3)

DiamanteDesk API Bundle
=======================

[](#diamantedesk-api-bundle)

API bundle provides extended authentication required for DiamanteDesk API and a way to expose services and their methods as RESTful API.

### Requirements

[](#requirements)

DiamanteDesk supports OroCRM version 1.8+.

### Configuration

[](#configuration)

Add additional configuration to `app/config/security.yml`:

- to section providers:

```
        diamante_api_user:
            id:                             diamante.api.user.security.provider
```

- to section firewalls:

```
        wsse_secured_diamante:
            pattern:                        ^/api/diamante/(rest|soap).*
            provider:                       diamante_api_user
            stateless:                      true
            wsse_diamante_api:              true
```

### Usage

[](#usage)

For example, you have a service defined in configuration with "entities.service.id" id. To expose it as RESTful API:

- it should implement the following interface \\Diamante\\ApiBundle\\Routing\\RestServiceInterface
- the following methods should be public and annotated with \\Diamante\\ApiBundle\\Annotation\\ApiDoc:

```
    /**
     * @ApiDoc(
     *  description="Returns all entities",
     *  uri="/entities.{_format}",
     *  method="GET",
     *  resource=true,
     *  statusCodes={
     *      200="Returned when successful",
     *      403="Returned when the user is not authorized to list entities"
     *  }
     * )
     * @return Entities[]
     */
```

- specify service in routing configuration:

```
    entities_service:
        resource:     entities.service.id
        type:         diamante_rest_service
        prefix:       /api/rest/{version}/example
        requirements:
            version:  latest|v1
            _format:  xml|json
        defaults:
            version:  latest
        _format:  json

```

After all the steps are completed, your service shall be available at:

```
GET http://host/api/rest/latest/example/entities

```

Contributing
------------

[](#contributing)

We appreciate any effort to make DiamanteDesk functionality better; therefore, we welcome all kinds of contributions in the form of bug reporting, patches submitting, feature requests or documentation enhancement. Please refer to the DiamanteDesk [guidelines for contributing](http://docs.diamantedesk.com/en/latest/developer-guide/contributing.html) if you wish to be a part of the project.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 57.7% 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 ~83 days

Recently: every ~38 days

Total

9

Last Release

3401d ago

Major Versions

1.0.x-dev → 2.0.02016-08-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/b7554f5c0829e95fe802ee2c4548cca78b23c955b1500e45e9564892b2a1a140?d=identicon)[odi-um](/maintainers/odi-um)

---

Top Contributors

[![odi-um](https://avatars.githubusercontent.com/u/1123504?v=4)](https://github.com/odi-um "odi-um (41 commits)")[![gotgelf](https://avatars.githubusercontent.com/u/4104908?v=4)](https://github.com/gotgelf "gotgelf (20 commits)")[![Jman](https://avatars.githubusercontent.com/u/112517?v=4)](https://github.com/Jman "Jman (5 commits)")[![psw1986](https://avatars.githubusercontent.com/u/1023128?v=4)](https://github.com/psw1986 "psw1986 (3 commits)")[![Mulderua](https://avatars.githubusercontent.com/u/12249206?v=4)](https://github.com/Mulderua "Mulderua (1 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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