Download the PHP package imsadhappy/laravel-kyivstar-api without Composer
On this page you can find all versions of the php package imsadhappy/laravel-kyivstar-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download imsadhappy/laravel-kyivstar-api
More information about imsadhappy/laravel-kyivstar-api
Files in imsadhappy/laravel-kyivstar-api
Download imsadhappy/laravel-kyivstar-api
More information about imsadhappy/laravel-kyivstar-api
Files in imsadhappy/laravel-kyivstar-api
Vendor imsadhappy
Package laravel-kyivstar-api
Short Description Laravel package for Kyivstar API integration
License MIT
Package laravel-kyivstar-api
Short Description Laravel package for Kyivstar API integration
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-kyivstar-api
Laravel пакет для роботи з Київстар Open Telecom API
Офіційна документація:
https://api-gateway.kyivstar.ua/#overview
Конфіг .env:
Робота з SMS:
Робота з Viber:
Інше
Alpha Name можна задати для всіх сервісів в .env або передавати в кожний сервіс окремо.
Виклик сервісів варто огортати в try ... catch блок.
Можливі Config..., Value... і Http помилки
(див. src/Exceptions
і трейти типу Validator
в src/Traits
).
Перелік деяких можливих помилок:
Changelog
Version 0.2.1
- added MessengerInterface implemented by SmsService & ViberService
- minor tests refactoring
Version 0.2.0
- beta release - added tests
Version 0.1.9
- fix message (sms, transaction) segmentation
Version 0.1.8
- updated readme
- made api & services final
- added MAX_TTL to Sms & Transaction DTOs
- changed VersionedTestCase to set up authentication facade
Version 0.1.7
- added VersionedTestCase for version-aware tests (now used in AuthenticationServiceTest, SmsServiceTest & ViberServiceTest)
Version 0.1.6
- added SEGMENT_SIZE & MAX_SEGMENT_COUNT to Sms DTO.
- added TTL to AuthenticationService
- fix: ViberService response receives 'mid' not 'msgId' param
- moved SmsTest & ViberPromotionTest to feature
- made AuthenticationServiceTest version-aware (v1beta)
- added feature tests: SmsServiceTest & ViberServiceTest (v1beta)
Version 0.1.5
- added feature tests: AuthenticationServiceTest
- refactoring: TestCase, ConfigValidatorTest, HasAlphaNameTest, HttpValidatorTest
- made JsonHttpService & AuthenticationService future-proof in case of endpoint changes
Version 0.1.4
- added 404 NotFoundHttpException to HttpValidator and respective test (+ minor refactoring of test)
Version 0.1.3
- added unit tests (for DTOs & traits): ConfigValidatorTest, HasAlphaNameTest, HttpValidatorTest, ObjectToArrayTest, ValueValidatorTest, SmsTest, ViberPromotionTest
- added supportedVersions list & exception codes to ConfigValidator trait
Version 0.1.2
- refactoring: AuthenticationService
Version 0.1.1
- refactoring: exposed get|post|put in JsonHttpService instead of try
Version 0.1.0
- alpha release
Version 0.0.4
- new traits: HttpValidator (for JsonHttpService & AuthenticationService) & ConfigValidator
- moved isValidConfig from ValueValidator to ConfigValidator
- removed excessive use declarations
Version 0.0.3
- added traits: ObjectToArray (for Message & Viber/ContentExtended DTOs)
- minor refactoring
Version 0.0.2
- AuthenticationService nolonger extends HttpService
- DTOs props array removed in favor of direct properties
- added config validation
- new method: ValueValidator:isValidConfig
- new exceptions: ConfigException, ValueIsNotAllowedException
- renamed: HttpService -> JsonHttpService, config.php -> kyivstar-api.php
- removed: PropsIterator
Version 0.0.1
- initial commit: Facade, ServiceProvider
- new services: HttpService, AuthenticationService, SmsService, ViberService
- new traits: HasAlphaName, PropsIterator, ValueValidator
- new DTOs: Message, Sms, Viber/Transaction, Viber/Promotion, Viber/ContentExtended
- new exceptions: ValueException, ValueIsEmptyException, ValueNotUrlException, ValueTooLongException, ValueTooShortException, ValueNotBetweenException
All versions of laravel-kyivstar-api with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4|^8.0
illuminate/support Version ^7.0|^8.0|^9.0|^10.0|^11.0
guzzlehttp/guzzle Version ^7.0
ext-json Version *
illuminate/support Version ^7.0|^8.0|^9.0|^10.0|^11.0
guzzlehttp/guzzle Version ^7.0
ext-json Version *
The package imsadhappy/laravel-kyivstar-api contains the following files
Loading the files please wait ....