PHPackages                             ilebora/borasms - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. ilebora/borasms

ActiveLibrary[HTTP &amp; Networking](/categories/http)

ilebora/borasms
===============

A package for sending SMS via the BoraSMS API.

v1.1.2(1y ago)015MITPHPPHP &gt;=8.0

Since Nov 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ILEBORA/BoraSMS)[ Packagist](https://packagist.org/packages/ilebora/borasms)[ RSS](/packages/ilebora-borasms/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

BoraSMS
=======

[](#borasms)

`BoraSMS` is a PHP library for sending SMS messages using a custom API. This library allows you to easily send SMS messages, configure success and failure handlers, and customize your API credentials.

Installation
------------

[](#installation)

To install the package, you can use Composer:

```
composer require ilebora/borasms
```

Configuration
-------------

[](#configuration)

Before using `BoraSMS`, you'll need to provide your API credentials (API key, user ID, and display name). There are two ways to do this:

1. **Using Environment Variables (`.env` file)**
    The package can automatically read the API credentials from your `.env` file using [vlucas/phpdotenv](https://github.com/vlucas/phpdotenv).
2. **Using Getter and Setter Methods**
    Alternatively, you can set the credentials directly via getter and setter methods.

### Example `.env` file

[](#example-env-file)

Create a `.env` file in the root of your project with the following contents:

```
BORA_SMS_API_KEY=your_api_key
BORA_SMS_USER_ID=your_user_id
BORA_SMS_DISPLAY_NAME=your_display_name

```

### Example Usage

[](#example-usage)

Below is an example of how to use the `BoraSMS` class.

```
