Skip to content

irfanf16/ecommerce-website

Repository files navigation

Multi-Vendor eCommerce — Customer Storefront

Laravel 8 customer-facing marketplace storefront with full Arabic/English bilingual support, Google/Facebook social login via Laravel Socialite, Twilio SMS OTP, Pusher real-time notifications, and a session-cart checkout flow.

Laravel PHP Socialite Twilio Pusher


Tech Stack

Package Version Purpose
laravel/framework ^8.40 Core framework
laravel/socialite ^5.2 Google + Facebook OAuth login
twilio/sdk ^6.25 SMS OTP verification
intervention/image ^2.6 Image processing
maatwebsite/excel ^3.1 Data export
barryvdh/laravel-dompdf ^0.9.0 PDF generation
laravel/ui ^3.0 Auth UI scaffolding
mashape/unirest-php ^3.0 API proxy calls

Architecture

Same API-proxy pattern — all business logic lives in ecommerence-api. This app manages locale routing, session state, and rendering.


Route Structure

Routes use a locale prefix (/{locale}/) — locale is stored in session and switched via GET /locale.

Module Routes
Locale GET /locale — switch language, stores in session, redirects
Home GET /{locale}/
Products GET /{locale}/product/{slug}, GET /{locale}/search, POST /search
Auth (guest) Login form, register form, social OAuth (GET oauth/{driver}, GET oauth/{driver}/callback)
Auth Logout, email verification, password reset
Cart (auth) GET /{locale}/cart, add/update quantity/remove items
Wishlist (auth) GET /{locale}/wishlist, add/remove
Checkout (auth) GET /{locale}/checkout, POST /order

Key Features

  • Bilingual (EN/AR) — locale prefix routing, RTL support for Arabic
  • Social OAuth — Google + Facebook login via Socialite (redirectToProvider / handleProviderCallback)
  • Twilio SMS OTP — phone number verification on registration
  • Pusher notifications — real-time order status updates in browser
  • Slug-based product URLs — SEO-friendly product pages
  • Session cart — add, update quantity, remove, checkout
  • Email verificationAuth::routes(['verify' => true])

Database

Shares the same MySQL database as ecommerence-vendor (canonical schema of 22 tables).


Related Repositories

Repo Purpose
ecommerence-api Laravel 8 REST API backend
ecommerence-admin Super-admin management panel
ecommerence-vendor Vendor self-service portal

About

Laravel 8 eCommerce storefront — multi-locale (EN/AR), Twilio SMS, Laravel Socialite, Arabic RTL support

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors