PHPackages                             antwebes/chatea-client-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. antwebes/chatea-client-bundle

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

antwebes/chatea-client-bundle
=============================

Symfony2 bundle for ChateaClient library, It makes it easy to use API of api.chatea.net

v1.2.1(8y ago)22.7kMITPHP

Since Dec 17Pushed 8y ago1 watchersCompare

[ Source](https://github.com/antwebes/ChateaClientBundle)[ Packagist](https://packagist.org/packages/antwebes/chatea-client-bundle)[ Docs](https://github.com/antwebes/ChateaClientBundle)[ RSS](/packages/antwebes-chatea-client-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (9)Versions (66)Used By (0)

ChateaClientBundle
==================

[](#chateaclientbundle)

Symfony2 bundle for ChateaClient library, It makes it easy to use API of api.chatea.net

Install
-------

[](#install)

1. Añadir Bundle a AppKernel.php ( ChateaClientBundle y ChateaSecureBundle )

    new Ant\\Bundle\\ChateaClientBundle\\ChateaClientBundle() new Ant\\Bundle\\ChateaSecureBundle\\ChateaSecureBundle()
2. Añadir no ficheiro de configuracion ou no routing.yml

```
antwebes_chateclient:
    resource: '@ChateaClientBundle/Resources/config/routing.xml'
    prefix:   /

```

3. Configurar client\_id y secret de la aplicación en app/config/config.yml:

```
chatea_secure:
    app_auth:
        client_id: %chatea_client_id%
        secret: %chatea_secret_id%
        enviroment: %chatea_enviroment%
    api_endpoint: %api_endpoint%

chatea_client:
    app_auth:
        client_id: %chatea_client_id%
        secret: %chatea_secret_id%
    api_endpoint: %api_endpoint%
    app_id: %chatea_app_id%
    authenticate_client_as_guest: true|false #optional (by deafault false) to indicate if client authenticates as guest. In case of false it authenticates with client credentials
> no_skip_register_register_end_step

beelab_recaptcha2:
    site_key:  %recaptcha_public_key%
    secret: %recaptcha_private_key%
    enabled: %recaptcha_enabled%

```

4. Configurar el firewall en app/config/security.yml:

```
security:
    providers:
        antwebs_chateaclient_provider:
            id: antwebs_chateaclient_user_provider

    firewalls:
        dev:
            pattern:  ^/(_(profiler|wdt)|css|images|js)/
            security: false

        login:
            pattern:  ^/auth/login$
            security: false

        secured_area:
            pattern:    ^/
            anonymous: ~
            antwebs_chateaclient_login:
                check_path: _security_check
                login_path: _antwebes_chateaclient_login
                provider: antwebs_chateaclient_provider
            logout:
                invalidate_session: false
                path:   _antwebes_chateaclient_logout
                target: nombre_ruta_a_derigir_tras_logout
                handlers: [antwewebs_revoke_access_on_logout_handler]

```

Autenticación
-------------

[](#autenticación)

Por defecto todas las llamadas a apichatea se hacen con el usario de la aplicación.

Si desea realizar una llamada a apichatea que requiere un usuario logueado use la anotación @APIUser.

Está implementada en:

> Ant\\Bundle\\ChateaClientBundle\\EventListener\\AuthTokenUpdaterListener;

Dicha anotación averiguará si el usuario está autenticado y en caso de ser así realizara las llamadas a apichatea con el usuario logueado. Ejemplo:

```
namespace Acme\MiBundel\Controller;
use Ant\Bundle\ChateaClientBundle\Security\Authentication\Annotation\APIUser;

class UsuarioController
{
    /**
     * @APIUser
     *
     */
    public function actualizarNombreUsuarioAction()
    {
        //código
    }
}

```

Si todos los médodos de un controlador requieren un usuario logueado puede poner la anotación en la clase. Ejemplo:

```
namespace Acme\MiBundel\Controller;
use Ant\Bundle\ChateaClientBundle\Security\Authentication\Annotation\APIUser;

/**
 * @APIUser
 *
 */
class AreaRestringidaController
{
    public function accion1Action()
    {
        //código
    }

    public function accion2Action()
    {
        //código
    }
}

```

Dicha annotación es gestionada por el listener `Ant\Bundle\ChateaClientBundle\EventListener\AuthTokenUpdaterListener` que escucha al evento del controlador para averiguar si debe actualizar el access token del usuario en caso necesario.

Make welcome login page work
----------------------------

[](#make-welcome-login-page-work)

In order to make the welcome login page work, you have to configure the twig globals `boilerplate_users_base_url` and `boilerplate_channels_base_url`. For example:

```
twig:
    globals:
        boilerplate_users_base_url: http://myboilerplate.com/users
        boilerplate_channels_base_url: http://myboilerplate.com/channels

```

To redirect the user after login to the welcome page configure in your firewall the `default_target_path` to `chatea_client_welcome` and the `always_use_default_target_path` to `true`

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~22 days

Recently: every ~42 days

Total

50

Last Release

3013d ago

Major Versions

v0.1.41 → v1.0.02016-04-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/9d44330c04e565c33ce565f553fdfb2a8ea3138f41a016ea4afe8fae1bad9bbb?d=identicon)[ping86](/maintainers/ping86)

![](https://www.gravatar.com/avatar/33d23db34cdb32dd20ebae582d101d7eb48777143e993dd19bbc89d3275c5ae2?d=identicon)[Chrysweel](/maintainers/Chrysweel)

---

Top Contributors

[![jdeveloper](https://avatars.githubusercontent.com/u/8874?v=4)](https://github.com/jdeveloper "jdeveloper (222 commits)")[![jjbier](https://avatars.githubusercontent.com/u/1135220?v=4)](https://github.com/jjbier "jjbier (152 commits)")[![Chrysweel](https://avatars.githubusercontent.com/u/1416870?v=4)](https://github.com/Chrysweel "Chrysweel (123 commits)")

---

Tags

apibundlechateachateagratis

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/antwebes-chatea-client-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/antwebes-chatea-client-bundle/health.svg)](https://phpackages.com/packages/antwebes-chatea-client-bundle)
```

###  Alternatives

[harmbandstra/swagger-ui-bundle

Exposes swagger UI inside your Symfony project through a route (eg. /docs)

40881.6k](/packages/harmbandstra-swagger-ui-bundle)[webit/w-firma-api

wFirma.pl API

1821.5k](/packages/webit-w-firma-api)

PHPackages © 2026

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