https://github.com/igitonga/daraja-mpesa
Laravel app containing different mpesa services
https://github.com/igitonga/daraja-mpesa
api-integration blade laravel mpesa-api php
Last synced: about 2 months ago
JSON representation
Laravel app containing different mpesa services
- Host: GitHub
- URL: https://github.com/igitonga/daraja-mpesa
- Owner: igitonga
- Created: 2022-10-20T15:25:27.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-10T14:07:42.000Z (over 2 years ago)
- Last Synced: 2024-03-10T15:27:34.368Z (over 2 years ago)
- Topics: api-integration, blade, laravel, mpesa-api, php
- Language: PHP
- Homepage:
- Size: 259 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## About Daraja Mpesa
This is a web application to help you understand how to integrate daraja mpesa
in Laravel. There is a simple UI to run simulations and give a brief experience
on what might happen if you use it on your project.
To use this project on your personal PC follow the steps below:
### 1. Clone Repository
```bash
git clone https://github.com/KreateyouMain/bizcore.git
```
### 2. Install composer dependencies
```bash
composer install
```
### 3. Install node dependencies
```bash
npm install
```
### 4. Generate .env file from .env.example
```bash
cp .env.example .env
```
### 5. Migrate your database after connecting to one
```bash
php artisan migrate
```
### 5. Generate application key
```bash
php artisan key:generate
```
### 5. Run laravel server
```bash
php artisan serve
```
### 5. UI is bundled by vite to use interface.
```bash
npm run dev
```
- Fill Mpesa .env variables - you'll get these credentials from [Daraja website](https://developer.safaricom.co.ke/)