https://github.com/maithy-a/africas-talking-otp-system
A simple and efficient One-Time Password (OTP) system built using Africa's Talking API. This repository provides a streamlined solution for generating, sending, and verifying OTPs, making it ideal for secure user authentication in applications.
https://github.com/maithy-a/africas-talking-otp-system
africastalking-api tabler-ui
Last synced: 4 months ago
JSON representation
A simple and efficient One-Time Password (OTP) system built using Africa's Talking API. This repository provides a streamlined solution for generating, sending, and verifying OTPs, making it ideal for secure user authentication in applications.
- Host: GitHub
- URL: https://github.com/maithy-a/africas-talking-otp-system
- Owner: Maithy-a
- License: mit
- Created: 2025-01-17T14:48:36.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-01-17T16:44:53.000Z (4 months ago)
- Last Synced: 2025-01-17T17:28:32.310Z (4 months ago)
- Topics: africastalking-api, tabler-ui
- Language: PHP
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Africas-talking-otp-system
A simple and efficient One-Time Password (OTP) system built using Africa's Talking API. This repository provides a streamlined solution for generating, sending, and verifying OTPs, making it ideal for secure user authentication in applications.
## Setting Up
### 1. Create an Africa's Talking Account
- Sign up at [Africa's Talking](https://africastalking.com/) if you don't already have an account.
- Use the **Sandbox Environment** for testing:
- Click on the **Go to Sandbox** button on your dashboard.
- Navigate to the **Settings** section on the sidebar and select **API Key** to generate your API key.
- Once you've acquired your API key, return to the dashboard and click **Launch Simulator** to test your integration.### 2. Create a `.env` File
Create a `.env` file in the root of your project directory and add the following environment variables:
```bash
AFRICASTALKING_USERNAME=sandbox
AFRICASTALKING_API_KEY=YOUR_API_KEY
```Replace `YOUR_API_KEY` with the API key obtained from Africa's Talking.
### 3. Install Composer Packages
Run the following command to install the required Composer packages:
```bash
composer install
```### 4. Install Packages Directly (Optional)
Alternatively, you can install the required packages individually:
```bash
composer require africastalking/africastalking
composer require vlucas/phpdotenv
```