Software development · Delivered

Online ticket sales

An online coach ticketing platform in Morocco with booking, CMI payment, seat selection and QR e-tickets.

  • React 18
  • Laravel 12
  • PHP 8.2
  • Vite 7
  • Tailwind CSS
booking.2sis.io
Online ticket sales
SECTOR
Transport · E-commerce
STATUS
Delivered
TYPE
SaaS platform
MODULES
10
Screenshots

The platform in pictures.

booking.2sis.io
Online ticket sales — Homepage
01 / 05Homepage
Overview

Business challenge

Create a simple, reliable booking journey while syncing availability, pricing, payment and administration in a multilingual environment suited to the Moroccan market.

The Smart Gare Online Booking platform guides travelers from searching a destination to receiving their e-ticket.

It offers available schedules, an interactive seat map, passenger details, promotions, CMI payment and immediate issuance of a PDF ticket with a QR code.

Problems solved

BEFORE
  • 01Fragmented search for destinations, schedules and available departures
  • 02Dependence on cash payment at the ticket desk
  • 03No seat selection or verifiable digital ticket
  • 04Experiences rarely available in French, Arabic RTL and English
Features

Key features

10 modules
  • 01

    Public site

    Home, destinations, schedules, featured routes, FAQ and content pages.

  • 02

    Search

    Destinations, dates, schedules and available departures.

  • 03

    Booking

    Seat selection, travelers, coupons and cart validation.

  • 04

    CMI payment

    Card payment, secure callbacks and confirmation.

  • 05

    E-tickets

    QR tickets, PDF generation and print-ready formats.

  • 06

    Authentication

    Sign-up, login, password reset and email verification with Sanctum.

  • 07

    Traveler area

    Profile, bookings, payments and notifications.

  • 08

    Administration

    Routes, destinations, promotions, statistics and exports.

  • 09

    Data enrichment

    Optional connection to the station API to align destinations and the operator network.

  • 10

    Multilingual UI

    French, Arabic with true RTL, and English across the whole journey.

(Operational pipeline)

From need to result, without breaks.

Each step feeds the next
  1. 01

    Search

    Choose the departure city, destination and travel date.

  2. 02

    Compare

    Browse departures, schedules, prices, operators and available seats.

  3. 03

    Choose

    Pick a seat on an interactive map and enter traveler details.

  4. 04

    Optimize

    Apply a promotion or coupon before checkout.

  5. 05

    Pay

    Pay by card via CMI with secure handling of the payment return.

  6. 06

    Travel

    Instantly receive the PDF ticket with QR code, ready to show or print.

Technical architecture

How the platform is built.

L1Backend APIPHP 8.2+, Laravel 12, Sanctum and Ziggy for sessions, routes, payments and business rules.
L2Traveler experienceReact 18, Vite 7, React Router, Tailwind CSS, Headless UI and Framer Motion.
L3State and formsZustand, React Hook Form and Zod for a typed, validated journey.
L4PaymentCMI callbacks handled in the Laravel web layer with session context.
L5DocumentsjsPDF, html2canvas, react-to-print and QR codes for tickets and receipts.
L6QualityJest 30, Puppeteer and PHPUnit for unit and browser tests.

Technical choices

Laravel 12

  • Sanctum for SPA sessions and API tokens
  • Ziggy to use named Laravel routes in React
  • Separation of JSON routes, the SPA shell and CMI callbacks
  • Reproducible migrations and seeders

Traveler-first React

  • Mobile-first SPA with Framer Motion transitions
  • Schema-validated forms with React Hook Form and Zod
  • French, Arabic RTL and English as first-class languages
  • Dynamic titles and metadata with react-helmet-async

Tickets and payment

  • CMI bank payment suited to the Moroccan market
  • Promotions and coupons built into checkout
  • Client-side PDF tickets with QR code
  • History of bookings, payments and notifications
Tech stack
  • React 18
  • Laravel 12
  • PHP 8.2
  • Vite 7
  • Tailwind CSS
Built for
  • 01Intercity travelers
  • 02Transport companies and cooperatives
  • 03Sales agents and support teams
  • 04Booking platform administrators
What sets it apart
  • 01Complete journey from search to QR ticket
  • 02CMI payment suited to the Moroccan market
  • 03French, Arabic RTL and English
  • 04Administration of routes, offers and statistics

Results and impact

AFTER
  • Sales available around the clock from mobile or desktop
  • Availability and seats centralized in real time
  • E-ticket generated immediately after payment
  • Self-service management of promotions, trips and content
  • Trilingual FR, AR and EN journey with RTL support
  • Reproducible deployments with Docker Compose
Frequently asked questions

Everything about Online ticket sales.

2SIS

Have a similar project in mind?

Let’s talk about your processes and the platform that will make them reliable, traceable and manageable.

A web platform to search, book and pay for intercity coach tickets in Morocco, with seat selection and QR e-tickets.

Ready to transform your information system?

Describe your need, the service you're looking for and your timeline. 2SIS will get back to you with initial guidance.

Contact us