Skip to content

Commit c8bc54a

Browse files
Add Kakao BMS support to SOLAPI PHP SDK
- Introduced new BMS message types including TEXT, IMAGE, WIDE, WIDE_ITEM_LIST, COMMERCE, CAROUSEL_FEED, CAROUSEL_COMMERCE, and PREMIUM_VIDEO. - Added models for BMS components such as BmsButton, BmsCarousel, BmsCommerce, and BmsVideo. - Implemented validation logic for BMS message requirements. - Created example scripts for sending various BMS message types. - Updated composer.json to include PHPUnit for testing and added autoloading for development. - Enhanced .gitignore to exclude PHPUnit cache files and vendor directory. - Added unit tests for BMS models and validation logic.
1 parent 87410bb commit c8bc54a

28 files changed

Lines changed: 4408 additions & 10 deletions

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ debug/
1111

1212
# Composer gitignore
1313
composer.phar
14-
/vendor/
14+
/vendor/
15+
16+
# PHPUnit
17+
.phpunit.result.cache
18+
.phpunit.cache/

composer.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
"Nurigo\\Solapi\\": "src/"
1010
}
1111
},
12+
"autoload-dev": {
13+
"psr-4": {
14+
"Nurigo\\Solapi\\Tests\\": "tests/"
15+
}
16+
},
1217
"repositories": [
1318
{
1419
"type": "vcs",
@@ -45,5 +50,11 @@
4550
"psr/http-client": "^1.0",
4651
"psr/http-message": "^1.0 || ^2.0",
4752
"nyholm/psr7": "^1.5"
53+
},
54+
"require-dev": {
55+
"phpunit/phpunit": "^9.5"
56+
},
57+
"scripts": {
58+
"test": "phpunit"
4859
}
4960
}

0 commit comments

Comments
 (0)