Publication initiale de RelaisSMS : documentation et sources nettoyees

This commit is contained in:
2026-10-21 09:29:39 +02:00
commit ac186b03b1
158 changed files with 24818 additions and 0 deletions
@@ -0,0 +1,14 @@
<?php
namespace App\Contracts\Calendar;
use App\Services\Calendar\CalendarRemoteEvent;
use Carbon\CarbonInterface;
interface CalendarClientInterface
{
/**
* @return array<int, CalendarRemoteEvent>
*/
public function fetchEvents(CarbonInterface $from, CarbonInterface $to): array;
}
@@ -0,0 +1,13 @@
<?php
namespace App\Contracts\CardDav;
use App\Services\CardDav\CardDavRemoteCard;
interface CardDavClientInterface
{
/**
* @return array<int, CardDavRemoteCard>
*/
public function fetchCards(): array;
}
@@ -0,0 +1,10 @@
<?php
namespace App\Contracts;
use App\Services\Phone\PhoneNumberResult;
interface PhoneNumberNormalizerInterface
{
public function normalize(string $rawNumber, string $defaultCountry): PhoneNumberResult;
}
@@ -0,0 +1,14 @@
<?php
namespace App\Contracts\Sms;
use App\Models\SmsCampaign;
use App\Services\Sms\SmsSendResult;
interface SmsProviderInterface
{
/**
* @param array<int, array<string, mixed>> $recipients
*/
public function send(SmsCampaign $campaign, array $recipients): SmsSendResult;
}