Skip to content
Merged

V4 #142

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,25 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [4.0.0] - 2026-04-09
### Removed
- deprecated `\Smsapi\Client\Feature\Contacts\Bag\CreateContactBag::withPhone`
- deprecated `\Smsapi\Client\Feature\Sms\Bag\ScheduleSmsBag::setIdx`
- deprecated `\Smsapi\Client\Feature\Sms\Bag\SendSmsToGroupBag::setIdx`
- deprecated `\Smsapi\Client\Feature\Sms\Bag\ScheduleSmsToGroupBag::setIdx`
- deprecated `\Smsapi\Client\Curl\Exception\RequestException`
- deprecated `\Smsapi\Client\Curl\Exception\NetworkException`
- deprecated `\Smsapi\Client\Curl\Exception\ClientException`

## Changed
- method signature `\Smsapi\Client\Feature\Contacts\ContactsFeature::findContacts`
- method signature `\Smsapi\Client\Feature\Sms\Bag\ScheduleSmsBag::setExternalId`
- method signature `\Smsapi\Client\Feature\Sms\Bag\ScheduleSmssBag::setExternalId`
- method signature `\Smsapi\Client\Feature\Sms\Bag\ScheduleSmsToGroupBag::setExternalId`
- method signature `\Smsapi\Client\Feature\Sms\Bag\SendSmsBag::setExternalId`
- method signature `\Smsapi\Client\Feature\Sms\Bag\SendSmssBag::setExternalId`
- method signature `\Smsapi\Client\Feature\Sms\Bag\SendSmsToGroupBag::setExternalId`

## [3.0.13] - 2026-01-12
### Added
- PHP-8.5 support
Expand Down
17 changes: 0 additions & 17 deletions src/Curl/Exception/ClientException.php

This file was deleted.

17 changes: 0 additions & 17 deletions src/Curl/Exception/NetworkException.php

This file was deleted.

17 changes: 0 additions & 17 deletions src/Curl/Exception/RequestException.php

This file was deleted.

9 changes: 0 additions & 9 deletions src/Feature/Contacts/Bag/CreateContactBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,6 @@
#[\AllowDynamicProperties]
class CreateContactBag
{
/**
* @deprecated
* @see withPhoneNumber
*/
public static function withPhone(string $phoneNumber): self
{
return self::withPhoneNumber($phoneNumber);
}

public static function withPhoneNumber(string $phoneNumber): self
{
$bag = new self();
Expand Down
15 changes: 0 additions & 15 deletions src/Feature/Sms/Bag/ScheduleSmsBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,4 @@ public function setExternalId(string $idx, $checkIdx = null): self

return $this;
}

/**
* @deprecated
* @see ScheduleSmsBag::setExternalId()
*/
/**
* @param bool|null $checkIdx
*/
public function setIdx(array $idx, $checkIdx = null): self
{
$this->idx = $idx;
$this->checkIdx = $checkIdx;

return $this;
}
}
15 changes: 0 additions & 15 deletions src/Feature/Sms/Bag/ScheduleSmsToGroupBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,4 @@ public function setExternalId(string $idx, $checkIdx = null): self

return $this;
}

/**
* @deprecated
* @see ScheduleSmsToGroupBag::setExternalId()
*/
/**
* @param bool|null $checkIdx
*/
public function setIdx(array $idx, $checkIdx = null): self
{
$this->idx = $idx;
$this->checkIdx = $checkIdx;

return $this;
}
}
15 changes: 0 additions & 15 deletions src/Feature/Sms/Bag/SendSmsToGroupBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,4 @@ public function setExternalId(string $idx, $checkIdx = null): self

return $this;
}

/**
* @deprecated
* @see SendSmsToGroupBag::setExternalId()
*/
/**
* @param bool|null $checkIdx
*/
public function setIdx(array $idx, $checkIdx = null): self
{
$this->idx = $idx;
$this->checkIdx = $checkIdx;

return $this;
}
}
2 changes: 1 addition & 1 deletion src/SmsapiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
interface SmsapiClient extends LoggerAwareInterface
{
const VERSION = '3.0.13';
const VERSION = '4.0.0';

public function smsapiPlService(string $apiToken): SmsapiPlService;

Expand Down
Loading