Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Tyr Bundle Laravel Package

canaltp/tyr-bundle

View on GitHub
Deep Wiki
Context7

Tyr Bundle

Symfony2 bundle which provide a concrete AbstractTyrService.

The bundle uses the TyrComponent.

Installation

Install via composer

{
    "require": {
        "canaltp/tyr-bundle": "1.1.x"
    }
}

Updating AppKernel.php:

    public function registerBundles()
    {
        $bundles = array(
            // ...
            new CanalTP\TyrBundle\CanalTPTyrBundle(),
        );
    }

Updating app/config.yml:

# Tyr api configuration
canal_tp_tyr:
    url:            %tyr_url%
    end_point_id:   2 # Optional, can also be set with setEndPointId

Add parameters in parameters.yml:

parameters:
    tyr_url: http://tyr.dev.canaltp.fr/v0/

Usage

// Accessing service
$tyrApi = $container->get('canal_tp_tyr.api');
$tyrApi->setEndPointId(1); // If not set in configuration

// Call api
$user = $tyrApi->getUserByEmail('...');

License

This project is under GPL-3.0 License.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk