Add helpers for Chorus Pro

This commit is contained in:
David Bomba 2024-01-01 11:03:38 +11:00
parent 278b122c83
commit c7eeef1c2a
3 changed files with 182 additions and 90 deletions

View File

@ -0,0 +1,88 @@
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2023. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace App\Helpers\Chorus;
use Http;
/**
* Class Piste.
*/
class Piste
{
private string $oauth_sandbox_url = 'https://sandbox-oauth.piste.gouv.fr/api/oauth/token';
private string $oauth_production_url = 'https://oauth.piste.gouv.fr/api/oauth/token';
private string $sandbox_url = 'https://sandbox-api.piste.gouv.fr';
private string $production_url = 'https://api.piste.gouv.fr';
private bool $test_mode = false;
public function __construct()
{
}
public function setMode($testmode = true): self
{
$this->test_mode = $testmode;
return $this;
}
private function oauthHeaders(): array
{
return [
'grant_type' => 'client_credentials',
'client_id' => config('services.chorus.client_id'),
'client_secret' => config('services.chorus.secret'),
'scope' => 'openid'
];
}
private function oauthUrl(): string
{
return $this->test_mode ? $this->oauth_sandbox_url : $this->oauth_production_url;
}
private function apiUrl(): string
{
return $this->test_mode ? $this->sandbox_url : $this->production_url;
}
public function getOauthAccessToken(): ?string
{
$response = Http::asForm()->post($this->oauthUrl(), $this->oauthHeaders());
if($response->successful()) {
return $response->json()['access_token'];
}
return null;
}
public function startOauthFlow()
{
$access_token = $this->getOauthAccessToken();
Http::withToken($access_token)->post($this->apiUrl() . '/cpro/factures/v1/deposer/flux', [
'base_uri' => $this->apiUrl(),
'allow_redirects' => true,
'headers' => [
'cpro-account' => base64_encode($username . ':' . $password),
'Content-Type' => 'application/json;charset=utf-8',
'Accept' => 'application/json;charset=utf-8'
]
]);
}
}

180
composer.lock generated
View File

@ -11410,16 +11410,16 @@
}, },
{ {
"name": "symfony/console", "name": "symfony/console",
"version": "v6.4.1", "version": "v6.4.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/console.git", "url": "https://github.com/symfony/console.git",
"reference": "a550a7c99daeedef3f9d23fb82e3531525ff11fd" "reference": "0254811a143e6bc6c8deea08b589a7e68a37f625"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/console/zipball/a550a7c99daeedef3f9d23fb82e3531525ff11fd", "url": "https://api.github.com/repos/symfony/console/zipball/0254811a143e6bc6c8deea08b589a7e68a37f625",
"reference": "a550a7c99daeedef3f9d23fb82e3531525ff11fd", "reference": "0254811a143e6bc6c8deea08b589a7e68a37f625",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -11484,7 +11484,7 @@
"terminal" "terminal"
], ],
"support": { "support": {
"source": "https://github.com/symfony/console/tree/v6.4.1" "source": "https://github.com/symfony/console/tree/v6.4.2"
}, },
"funding": [ "funding": [
{ {
@ -11500,7 +11500,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2023-11-30T10:54:28+00:00" "time": "2023-12-10T16:15:48+00:00"
}, },
{ {
"name": "symfony/css-selector", "name": "symfony/css-selector",
@ -11711,16 +11711,16 @@
}, },
{ {
"name": "symfony/event-dispatcher", "name": "symfony/event-dispatcher",
"version": "v6.4.0", "version": "v6.4.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/event-dispatcher.git", "url": "https://github.com/symfony/event-dispatcher.git",
"reference": "d76d2632cfc2206eecb5ad2b26cd5934082941b6" "reference": "e95216850555cd55e71b857eb9d6c2674124603a"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/d76d2632cfc2206eecb5ad2b26cd5934082941b6", "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/e95216850555cd55e71b857eb9d6c2674124603a",
"reference": "d76d2632cfc2206eecb5ad2b26cd5934082941b6", "reference": "e95216850555cd55e71b857eb9d6c2674124603a",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -11771,7 +11771,7 @@
"description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/event-dispatcher/tree/v6.4.0" "source": "https://github.com/symfony/event-dispatcher/tree/v6.4.2"
}, },
"funding": [ "funding": [
{ {
@ -11787,7 +11787,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2023-07-27T06:52:43+00:00" "time": "2023-12-27T22:16:42+00:00"
}, },
{ {
"name": "symfony/event-dispatcher-contracts", "name": "symfony/event-dispatcher-contracts",
@ -11994,16 +11994,16 @@
}, },
{ {
"name": "symfony/http-client", "name": "symfony/http-client",
"version": "v6.4.0", "version": "v6.4.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/http-client.git", "url": "https://github.com/symfony/http-client.git",
"reference": "5c584530b77aa10ae216989ffc48b4bedc9c0b29" "reference": "fc0944665bd932cf32a7b8a1d009466afc16528f"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/http-client/zipball/5c584530b77aa10ae216989ffc48b4bedc9c0b29", "url": "https://api.github.com/repos/symfony/http-client/zipball/fc0944665bd932cf32a7b8a1d009466afc16528f",
"reference": "5c584530b77aa10ae216989ffc48b4bedc9c0b29", "reference": "fc0944665bd932cf32a7b8a1d009466afc16528f",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -12067,7 +12067,7 @@
"http" "http"
], ],
"support": { "support": {
"source": "https://github.com/symfony/http-client/tree/v6.4.0" "source": "https://github.com/symfony/http-client/tree/v6.4.2"
}, },
"funding": [ "funding": [
{ {
@ -12083,7 +12083,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2023-11-28T20:55:58+00:00" "time": "2023-12-02T12:49:56+00:00"
}, },
{ {
"name": "symfony/http-client-contracts", "name": "symfony/http-client-contracts",
@ -12165,16 +12165,16 @@
}, },
{ {
"name": "symfony/http-foundation", "name": "symfony/http-foundation",
"version": "v6.4.0", "version": "v6.4.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/http-foundation.git", "url": "https://github.com/symfony/http-foundation.git",
"reference": "44a6d39a9cc11e154547d882d5aac1e014440771" "reference": "172d807f9ef3fc3fbed8377cc57c20d389269271"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/44a6d39a9cc11e154547d882d5aac1e014440771", "url": "https://api.github.com/repos/symfony/http-foundation/zipball/172d807f9ef3fc3fbed8377cc57c20d389269271",
"reference": "44a6d39a9cc11e154547d882d5aac1e014440771", "reference": "172d807f9ef3fc3fbed8377cc57c20d389269271",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -12222,7 +12222,7 @@
"description": "Defines an object-oriented layer for the HTTP specification", "description": "Defines an object-oriented layer for the HTTP specification",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/http-foundation/tree/v6.4.0" "source": "https://github.com/symfony/http-foundation/tree/v6.4.2"
}, },
"funding": [ "funding": [
{ {
@ -12238,20 +12238,20 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2023-11-20T16:41:16+00:00" "time": "2023-12-27T22:16:42+00:00"
}, },
{ {
"name": "symfony/http-kernel", "name": "symfony/http-kernel",
"version": "v6.4.1", "version": "v6.4.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/http-kernel.git", "url": "https://github.com/symfony/http-kernel.git",
"reference": "2953274c16a229b3933ef73a6898e18388e12e1b" "reference": "13e8387320b5942d0dc408440c888e2d526efef4"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/2953274c16a229b3933ef73a6898e18388e12e1b", "url": "https://api.github.com/repos/symfony/http-kernel/zipball/13e8387320b5942d0dc408440c888e2d526efef4",
"reference": "2953274c16a229b3933ef73a6898e18388e12e1b", "reference": "13e8387320b5942d0dc408440c888e2d526efef4",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -12335,7 +12335,7 @@
"description": "Provides a structured process for converting a Request into a Response", "description": "Provides a structured process for converting a Request into a Response",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/http-kernel/tree/v6.4.1" "source": "https://github.com/symfony/http-kernel/tree/v6.4.2"
}, },
"funding": [ "funding": [
{ {
@ -12351,20 +12351,20 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2023-12-01T17:02:02+00:00" "time": "2023-12-30T15:31:44+00:00"
}, },
{ {
"name": "symfony/intl", "name": "symfony/intl",
"version": "v6.4.0", "version": "v6.4.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/intl.git", "url": "https://github.com/symfony/intl.git",
"reference": "41d16f0294b9ca6e5540728580c65cfa3848fbf5" "reference": "4f45148f7eb984ef12b1f7e123205ab904828839"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/intl/zipball/41d16f0294b9ca6e5540728580c65cfa3848fbf5", "url": "https://api.github.com/repos/symfony/intl/zipball/4f45148f7eb984ef12b1f7e123205ab904828839",
"reference": "41d16f0294b9ca6e5540728580c65cfa3848fbf5", "reference": "4f45148f7eb984ef12b1f7e123205ab904828839",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -12417,7 +12417,7 @@
"localization" "localization"
], ],
"support": { "support": {
"source": "https://github.com/symfony/intl/tree/v6.4.0" "source": "https://github.com/symfony/intl/tree/v6.4.2"
}, },
"funding": [ "funding": [
{ {
@ -12433,20 +12433,20 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2023-10-28T23:12:08+00:00" "time": "2023-12-26T18:38:00+00:00"
}, },
{ {
"name": "symfony/mailer", "name": "symfony/mailer",
"version": "v6.4.0", "version": "v6.4.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/mailer.git", "url": "https://github.com/symfony/mailer.git",
"reference": "ca8dcf8892cdc5b4358ecf2528429bb5e706f7ba" "reference": "6da89e5c9202f129717a770a03183fb140720168"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/mailer/zipball/ca8dcf8892cdc5b4358ecf2528429bb5e706f7ba", "url": "https://api.github.com/repos/symfony/mailer/zipball/6da89e5c9202f129717a770a03183fb140720168",
"reference": "ca8dcf8892cdc5b4358ecf2528429bb5e706f7ba", "reference": "6da89e5c9202f129717a770a03183fb140720168",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -12497,7 +12497,7 @@
"description": "Helps sending emails", "description": "Helps sending emails",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/mailer/tree/v6.4.0" "source": "https://github.com/symfony/mailer/tree/v6.4.2"
}, },
"funding": [ "funding": [
{ {
@ -12513,7 +12513,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2023-11-12T18:02:22+00:00" "time": "2023-12-19T09:12:31+00:00"
}, },
{ {
"name": "symfony/mailgun-mailer", "name": "symfony/mailgun-mailer",
@ -13562,16 +13562,16 @@
}, },
{ {
"name": "symfony/postmark-mailer", "name": "symfony/postmark-mailer",
"version": "v6.4.0", "version": "v6.4.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/postmark-mailer.git", "url": "https://github.com/symfony/postmark-mailer.git",
"reference": "8279e71f363be6b62b332aec5447e4edf4bc5c41" "reference": "c23bc7a323d9849178c0e579322c2da1192c08c6"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/postmark-mailer/zipball/8279e71f363be6b62b332aec5447e4edf4bc5c41", "url": "https://api.github.com/repos/symfony/postmark-mailer/zipball/c23bc7a323d9849178c0e579322c2da1192c08c6",
"reference": "8279e71f363be6b62b332aec5447e4edf4bc5c41", "reference": "c23bc7a323d9849178c0e579322c2da1192c08c6",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -13612,7 +13612,7 @@
"description": "Symfony Postmark Mailer Bridge", "description": "Symfony Postmark Mailer Bridge",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/postmark-mailer/tree/v6.4.0" "source": "https://github.com/symfony/postmark-mailer/tree/v6.4.2"
}, },
"funding": [ "funding": [
{ {
@ -13628,20 +13628,20 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2023-11-06T17:20:05+00:00" "time": "2023-12-28T19:16:56+00:00"
}, },
{ {
"name": "symfony/process", "name": "symfony/process",
"version": "v6.4.0", "version": "v6.4.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/process.git", "url": "https://github.com/symfony/process.git",
"reference": "191703b1566d97a5425dc969e4350d32b8ef17aa" "reference": "c4b1ef0bc80533d87a2e969806172f1c2a980241"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/process/zipball/191703b1566d97a5425dc969e4350d32b8ef17aa", "url": "https://api.github.com/repos/symfony/process/zipball/c4b1ef0bc80533d87a2e969806172f1c2a980241",
"reference": "191703b1566d97a5425dc969e4350d32b8ef17aa", "reference": "c4b1ef0bc80533d87a2e969806172f1c2a980241",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -13673,7 +13673,7 @@
"description": "Executes commands in sub-processes", "description": "Executes commands in sub-processes",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/process/tree/v6.4.0" "source": "https://github.com/symfony/process/tree/v6.4.2"
}, },
"funding": [ "funding": [
{ {
@ -13689,7 +13689,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2023-11-17T21:06:49+00:00" "time": "2023-12-22T16:42:54+00:00"
}, },
{ {
"name": "symfony/psr-http-message-bridge", "name": "symfony/psr-http-message-bridge",
@ -13782,16 +13782,16 @@
}, },
{ {
"name": "symfony/routing", "name": "symfony/routing",
"version": "v6.4.1", "version": "v6.4.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/routing.git", "url": "https://github.com/symfony/routing.git",
"reference": "0c95c164fdba18b12523b75e64199ca3503e6d40" "reference": "98eab13a07fddc85766f1756129c69f207ffbc21"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/routing/zipball/0c95c164fdba18b12523b75e64199ca3503e6d40", "url": "https://api.github.com/repos/symfony/routing/zipball/98eab13a07fddc85766f1756129c69f207ffbc21",
"reference": "0c95c164fdba18b12523b75e64199ca3503e6d40", "reference": "98eab13a07fddc85766f1756129c69f207ffbc21",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -13845,7 +13845,7 @@
"url" "url"
], ],
"support": { "support": {
"source": "https://github.com/symfony/routing/tree/v6.4.1" "source": "https://github.com/symfony/routing/tree/v6.4.2"
}, },
"funding": [ "funding": [
{ {
@ -13861,7 +13861,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2023-12-01T14:54:37+00:00" "time": "2023-12-29T15:34:34+00:00"
}, },
{ {
"name": "symfony/service-contracts", "name": "symfony/service-contracts",
@ -13947,16 +13947,16 @@
}, },
{ {
"name": "symfony/string", "name": "symfony/string",
"version": "v6.4.0", "version": "v6.4.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/string.git", "url": "https://github.com/symfony/string.git",
"reference": "b45fcf399ea9c3af543a92edf7172ba21174d809" "reference": "7cb80bc10bfcdf6b5492741c0b9357dac66940bc"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/string/zipball/b45fcf399ea9c3af543a92edf7172ba21174d809", "url": "https://api.github.com/repos/symfony/string/zipball/7cb80bc10bfcdf6b5492741c0b9357dac66940bc",
"reference": "b45fcf399ea9c3af543a92edf7172ba21174d809", "reference": "7cb80bc10bfcdf6b5492741c0b9357dac66940bc",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -14013,7 +14013,7 @@
"utf8" "utf8"
], ],
"support": { "support": {
"source": "https://github.com/symfony/string/tree/v6.4.0" "source": "https://github.com/symfony/string/tree/v6.4.2"
}, },
"funding": [ "funding": [
{ {
@ -14029,20 +14029,20 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2023-11-28T20:41:49+00:00" "time": "2023-12-10T16:15:48+00:00"
}, },
{ {
"name": "symfony/translation", "name": "symfony/translation",
"version": "v6.4.0", "version": "v6.4.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/translation.git", "url": "https://github.com/symfony/translation.git",
"reference": "b1035dbc2a344b21f8fa8ac451c7ecec4ea45f37" "reference": "a2ab2ec1a462e53016de8e8d5e8912bfd62ea681"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/translation/zipball/b1035dbc2a344b21f8fa8ac451c7ecec4ea45f37", "url": "https://api.github.com/repos/symfony/translation/zipball/a2ab2ec1a462e53016de8e8d5e8912bfd62ea681",
"reference": "b1035dbc2a344b21f8fa8ac451c7ecec4ea45f37", "reference": "a2ab2ec1a462e53016de8e8d5e8912bfd62ea681",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -14108,7 +14108,7 @@
"description": "Provides tools to internationalize your application", "description": "Provides tools to internationalize your application",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/translation/tree/v6.4.0" "source": "https://github.com/symfony/translation/tree/v6.4.2"
}, },
"funding": [ "funding": [
{ {
@ -14124,7 +14124,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2023-11-29T08:14:36+00:00" "time": "2023-12-18T09:25:29+00:00"
}, },
{ {
"name": "symfony/translation-contracts", "name": "symfony/translation-contracts",
@ -14280,16 +14280,16 @@
}, },
{ {
"name": "symfony/validator", "name": "symfony/validator",
"version": "v6.4.0", "version": "v6.4.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/validator.git", "url": "https://github.com/symfony/validator.git",
"reference": "33e1f3bb76ef70e3170e12f878aefb9c69b0fc4c" "reference": "15fe2c6ed815b06b6b8636d8ba3ef9807ee1a75c"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/validator/zipball/33e1f3bb76ef70e3170e12f878aefb9c69b0fc4c", "url": "https://api.github.com/repos/symfony/validator/zipball/15fe2c6ed815b06b6b8636d8ba3ef9807ee1a75c",
"reference": "33e1f3bb76ef70e3170e12f878aefb9c69b0fc4c", "reference": "15fe2c6ed815b06b6b8636d8ba3ef9807ee1a75c",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -14356,7 +14356,7 @@
"description": "Provides tools to validate values", "description": "Provides tools to validate values",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/validator/tree/v6.4.0" "source": "https://github.com/symfony/validator/tree/v6.4.2"
}, },
"funding": [ "funding": [
{ {
@ -14372,20 +14372,20 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2023-11-29T07:47:42+00:00" "time": "2023-12-29T16:34:12+00:00"
}, },
{ {
"name": "symfony/var-dumper", "name": "symfony/var-dumper",
"version": "v6.4.0", "version": "v6.4.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/var-dumper.git", "url": "https://github.com/symfony/var-dumper.git",
"reference": "c40f7d17e91d8b407582ed51a2bbf83c52c367f6" "reference": "68d6573ec98715ddcae5a0a85bee3c1c27a4c33f"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/c40f7d17e91d8b407582ed51a2bbf83c52c367f6", "url": "https://api.github.com/repos/symfony/var-dumper/zipball/68d6573ec98715ddcae5a0a85bee3c1c27a4c33f",
"reference": "c40f7d17e91d8b407582ed51a2bbf83c52c367f6", "reference": "68d6573ec98715ddcae5a0a85bee3c1c27a4c33f",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -14441,7 +14441,7 @@
"dump" "dump"
], ],
"support": { "support": {
"source": "https://github.com/symfony/var-dumper/tree/v6.4.0" "source": "https://github.com/symfony/var-dumper/tree/v6.4.2"
}, },
"funding": [ "funding": [
{ {
@ -14457,7 +14457,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2023-11-09T08:28:32+00:00" "time": "2023-12-28T19:16:56+00:00"
}, },
{ {
"name": "symfony/yaml", "name": "symfony/yaml",
@ -15955,16 +15955,16 @@
}, },
{ {
"name": "friendsofphp/php-cs-fixer", "name": "friendsofphp/php-cs-fixer",
"version": "v3.44.0", "version": "v3.45.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git", "url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git",
"reference": "5445834057a744c1a434ed60fcac566b4de3a0f2" "reference": "c0daa33cb2533cd73f48dde1c70c2afa3e7953b5"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/5445834057a744c1a434ed60fcac566b4de3a0f2", "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/c0daa33cb2533cd73f48dde1c70c2afa3e7953b5",
"reference": "5445834057a744c1a434ed60fcac566b4de3a0f2", "reference": "c0daa33cb2533cd73f48dde1c70c2afa3e7953b5",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -16033,7 +16033,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues", "issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues",
"source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.44.0" "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.45.0"
}, },
"funding": [ "funding": [
{ {
@ -16041,7 +16041,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2023-12-29T20:21:16+00:00" "time": "2023-12-30T02:07:07+00:00"
}, },
{ {
"name": "hamcrest/hamcrest-php", "name": "hamcrest/hamcrest-php",

View File

@ -101,4 +101,8 @@ return [
'key' => env('ZIP_TAX_KEY', false), 'key' => env('ZIP_TAX_KEY', false),
], ],
], ],
'chorus' => [
'client_id' => env('CHORUS_CLIENT_ID', false),
'secret' => env('CHORUS_SECRET', false),
]
]; ];