LaravelPackages.net
Acme Inc.
Toggle sidebar
inspirum/balikobot-laravel

Laravel package for inspirum/balikobot library

90
0
v1.0.0
About inspirum/balikobot-laravel

inspirum/balikobot-laravel is a Laravel package for laravel package for inspirum/balikobot library. It currently has 0 GitHub stars and 90 downloads on Packagist (latest version v1.0.0). Install it with composer require inspirum/balikobot-laravel. Discover more Laravel packages by inspirum or browse all Laravel packages to compare alternatives.

Last updated

Balikobot Laravel Package

Latest Stable Version Build Status PHPStan Total Downloads Software License

Laravel integration for inspirum/balikobot.

Installation

Run composer require command:

composer require inspirum/balikobot-laravel

Laravel will automatically register via Package Discovery.

If you opt out from package discovery it is necessary to register the service provider in config/app.php.

<?php

return [
    // ...
    'providers' => [
        // ...
        Inspirum\Balikobot\Integration\Laravel\BalikobotServiceProvider::class,
    ],
];

Config Files

In order to edit the default configuration you may execute:

php artisan vendor:publish --provider="Inspirum\Balikobot\Integration\Laravel\BalikobotServiceProvider"

After that, configure client credentials in config/balikobot.php or by setting the env variables:

BALIKOBOT_API_USER='api_user'
BALIKOBOT_API_KEY='api_key'

Usage

Use ServiceContainerRegistry to get ServiceContainer for given connection.

/** @var Inspirum\Balikobot\Service\Registry\ServiceContainerRegistry $registry */

// get package service for default (or first) connection
$packageService = $registry->get()->getPackageService();

// get branch service for "client3" connection
$packageService = $registry->get('client3')->getBranchService();

or use services directly for default connection

/** @var Inspirum\Balikobot\Service\PackageService $packageService */
$packageService->addPackages(...)

/** @var Inspirum\Balikobot\Service\BranchService $branchService */
$branchService->getBranches(...)

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Comments