11# MessageCloud Send PHP SDK
22The MessageCloud Send PHP SDK provides a convenient way to interact with the MessageCloud Send API for sending SMS messages.
33
4+
45## Installation
56To use the MessageCloud Send PHP SDK in your project, follow these steps:
67
@@ -34,6 +35,7 @@ If you already have composer in your project then it's as simple as this:
3435composer require messagecloud/send-api-php
3536```
3637
38+
3739## Authentication
3840To use the SDK, you need to create an instance of the Authentication class with your username and password:
3941
@@ -43,6 +45,7 @@ use MessageCloud\Send\Authentication;
4345$authentication = new Authentication('your-username', 'your-password');
4446```
4547
48+
4649## Sending SMS
4750To send an SMS message using the SDK, create an instance of the Sms class and pass the required parameters:
4851
@@ -67,6 +70,7 @@ if ($response->wasSuccessful()) {
6770}
6871```
6972
73+
7074## Running Tests
7175To run unit tests for the SDK, you can use PHPUnit. Make sure you have PHPUnit installed:
7276
@@ -80,6 +84,7 @@ Then, you can run the tests:
8084vendor/bin/phpunit
8185```
8286
87+
8388## Code Quality Checks
8489This project uses PHPStan and PHP CS Fixer for code quality checks. You can run them using the following commands:
8590
@@ -95,8 +100,10 @@ To fix coding standards violations with PHP CS Fixer:
95100vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation
96101```
97102
103+
98104## Contributing
99105If you find a bug or would like to contribute to this SDK, feel free to open an issue or submit a pull request.
100106
107+
101108## License
102109This SDK is open-source software licensed under the BSD-2-Clause License. See the LICENSE file for more information.
0 commit comments