Skip to content

Labour Management Platform (D Labour Chowk) A web-based platform that connects labourers, contractors, and clients to streamline profiles, job postings, applications, endorsements, and cross-device access. Built with PHP on the backend and a plain HTML/CSS/JS frontend, focusing on credibility, usability, and multi-role workflows.

Notifications You must be signed in to change notification settings

DevrajParmarr/D_Labour_Chowk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

97 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ—๏ธ D Labour Chowk - Digital Labour Marketplace

Transform the way skilled workers connect with employers across India ๐Ÿ‡ฎ๐Ÿ‡ณ

A production-ready, enterprise-grade digital platform that modernizes the traditional labour marketplace with cutting-edge technology, security, and user experience.

PHP Version MySQL Railway Version License


๐Ÿ“‹ Table of Contents


๐ŸŽฏ Mission

Empowering India's workforce through technology - D Labour Chowk bridges the gap between skilled workers and employers, creating opportunities and driving economic growth in the digital age.

๐ŸŒŸ Why D Labour Chowk?

  • ๐Ÿ‡ฎ๐Ÿ‡ณ Built for India - Designed specifically for the Indian labour market
  • ๐Ÿ“ฑ Mobile First - Optimized for smartphone users across India
  • ๐Ÿ”’ Secure & Trusted - Enterprise-grade security for user protection
  • โšก Lightning Fast - Optimized for slow internet connections
  • ๐ŸŽจ User Friendly - Intuitive design for users of all technical levels
  • ๐Ÿ“Š Data Driven - Analytics and insights for better decision making
  • ๐Ÿ’ฌ Real-time Communication - Instant messaging between clients and workers
  • ๐Ÿ“ Location Intelligence - GPS-based smart matching and search

๐ŸŒŸ Key Features

๐Ÿ” Enterprise-Grade Security

  • Advanced authentication with bcrypt password hashing
  • CSRF protection with token-based validation
  • SQL injection prevention with prepared statements
  • XSS protection with input sanitization
  • Session security with timeout handling

๐ŸŽจ Modern User Experience

  • Mobile-first responsive design
  • Interactive dashboards with real-time data
  • Advanced search with multi-filter capabilities
  • Beautiful charts using Chart.js
  • Toast notifications for real-time alerts

โšก Performance Optimized

  • Smart caching system with TTL
  • Image optimization and lazy loading
  • Database query optimization
  • CDN-ready asset management

๐Ÿข Business Features

  • Multi-role system (Clients, Workers, Admins)
  • Job management and application tracking
  • Rating and review system
  • Portfolio management for workers
  • Analytics dashboards for all user types

๐Ÿ‘ฅ User Roles

๐Ÿข Clients/Employers

  • Post job requirements with detailed specifications
  • Browse and hire workers with ratings and reviews
  • Advanced search with location-based filtering
  • Real-time messaging with hired workers
  • Analytics dashboard with hiring insights

๐Ÿ‘ท Workers/Labour

  • Create professional profiles with skills and experience
  • Browse and apply to job opportunities
  • Portfolio management with work samples
  • Earnings tracking and payment history
  • Real-time messaging with potential clients

๐Ÿ”ง Administrators

  • User management and account oversight
  • System analytics and performance monitoring
  • Content moderation and quality control
  • Security monitoring and threat detection

๐Ÿ—๏ธ Project Structure

D_Labour_Chowk/
โ”œโ”€โ”€ ๐Ÿ“„ index.php                 # Main application entry point
โ”œโ”€โ”€ ๐Ÿ“„ .htaccess                 # Apache configuration & URL rewriting
โ”œโ”€โ”€ ๐Ÿ“„ railway.json              # Railway deployment configuration
โ”œโ”€โ”€ ๐Ÿ“„ Dockerfile                # Docker container configuration
โ”œโ”€โ”€ ๐Ÿ“„ composer.json             # PHP dependencies
โ”œโ”€โ”€ ๐Ÿ“„ .gitignore               # Git ignore rules
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ config/                  # Configuration files
โ”‚   โ”œโ”€โ”€ config.php              # Database & app configuration
โ”‚   โ””โ”€โ”€ sqlconnection.php       # Database connection utilities
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ src/                     # Source code (MVC structure)
โ”‚   โ”œโ”€โ”€ Controllers/            # Business logic controllers
โ”‚   โ”‚   โ”œโ”€โ”€ Client/            # Client/Employer controllers
โ”‚   โ”‚   โ”œโ”€โ”€ Labour/            # Worker/Labour controllers
โ”‚   โ”‚   โ”œโ”€โ”€ Admin/             # Administrator controllers
โ”‚   โ”‚   โ””โ”€โ”€ *.php              # Shared controllers
โ”‚   โ”œโ”€โ”€ Models/                # Data models
โ”‚   โ”œโ”€โ”€ Views/                 # Presentation templates
โ”‚   โ”‚   โ”œโ”€โ”€ Client/            # Client views
โ”‚   โ”‚   โ”œโ”€โ”€ Labour/            # Labour views
โ”‚   โ”‚   โ””โ”€โ”€ *.html             # Shared views
โ”‚   โ”œโ”€โ”€ Services/              # Business services
โ”‚   โ”‚   โ”œโ”€โ”€ PHPMailer/         # Email service
โ”‚   โ”‚   โ””โ”€โ”€ PerformanceOptimizer.php
โ”‚   โ””โ”€โ”€ Utils/                 # Utility functions
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ public/                  # Public web assets
โ”‚   โ”œโ”€โ”€ css/                   # Stylesheets
โ”‚   โ”œโ”€โ”€ js/                    # JavaScript files
โ”‚   โ”œโ”€โ”€ images/                # Image assets
โ”‚   โ””โ”€โ”€ uploads/               # User uploaded files
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ database/               # Database files
โ”‚   โ”œโ”€โ”€ migrations/            # Database schema files
โ”‚   โ””โ”€โ”€ seeds/                 # Sample data
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ docs/                   # Documentation
โ”‚   โ”œโ”€โ”€ README.md              # Project documentation
โ”‚   โ”œโ”€โ”€ API_DOCUMENTATION.md   # API reference
โ”‚   โ”œโ”€โ”€ DEPLOYMENT_GUIDE.md    # Deployment instructions
โ”‚   โ””โ”€โ”€ SETUP_GUIDE.md         # Setup instructions
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ tests/                  # Test files
โ”‚   โ””โ”€โ”€ TestRunner.php         # Test runner
โ”‚
โ””โ”€โ”€ ๐Ÿ“ cache/                  # Application cache

๐Ÿš€ Quick Start

Prerequisites

  • PHP 8.0 or higher
  • MySQL 8.0 or higher
  • Apache/Nginx web server
  • Git

Installation

  1. Clone the repository

    git clone https://github.com/DevrajParmarr/D_Labour_Chowk.git
    cd D_Labour_Chowk
  2. Install dependencies

    composer install
  3. Database setup

    # Import database schema
    mysql -u username -p database_name < database/migrations/d_labour.sql
  4. Configuration

    # Edit config/config.php with your database credentials
    define('DB_HOST', 'localhost');
    define('DB_USERNAME', 'your_username');
    define('DB_PASSWORD', 'your_password');
    define('DB_NAME', 'd_labour');
  5. Start the application

    # For local development with XAMPP
    # Copy to htdocs and access via localhost
    
    # For production deployment
    # Deploy to Railway or your preferred hosting

๐Ÿ“ฆ Tech Stack

Backend

  • PHP 8.0+ - Server-side scripting
  • MySQL 8.0+ - Database management
  • PHPMailer - Email functionality

Frontend

  • HTML5 - Semantic markup
  • CSS3 - Styling and animations
  • JavaScript - Client-side interactivity
  • Bootstrap 5 - Responsive framework
  • Chart.js - Data visualization

Infrastructure

  • Railway - Cloud deployment platform
  • Docker - Containerization
  • Apache - Web server
  • Git - Version control

๐Ÿ”ง Configuration

Environment Variables

# Database Configuration
DB_HOST=localhost
DB_USERNAME=your_username
DB_PASSWORD=your_password
DB_NAME=d_labour

# Application Settings
APP_NAME="D Labour Chowk"
APP_URL="https://your-domain.com"
APP_VERSION="2.2"

# Security Settings
DEVELOPMENT_MODE=false
BCRYPT_COST=12

File Permissions

# Set proper permissions for web server
chmod 755 cache/
chmod 755 public/uploads/
chmod 755 public/images/

๐Ÿš€ Deployment

Railway (Recommended - Free)

  1. Create Railway account at railway.app
  2. Connect your GitHub repository
  3. Railway auto-deploys using the provided configuration
  4. Add MySQL database (free tier included)
  5. Import database schema
  6. Access your live app at https://your-project.railway.app

Manual Deployment

# Upload files to your web server
# Configure database credentials
# Set proper file permissions
# Access via your domain

๐Ÿ“š Documentation


๐Ÿค Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Development Guidelines

  • Follow PSR-12 coding standards
  • Write comprehensive PHPDoc comments
  • Add unit tests for new features
  • Update documentation as needed

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


๐Ÿ™ Acknowledgments

  • Bootstrap - Modern UI framework
  • Chart.js - Beautiful charts and analytics
  • Font Awesome - Icon library
  • PHP Community - Excellent documentation
  • Railway - Amazing deployment platform

๐Ÿ“ž Support


Made with โค๏ธ for the Digital India Initiative

Connecting skilled workers with opportunities across India ๐Ÿ‡ฎ๐Ÿ‡ณ

Version 2.2 - Enterprise Grade Digital Labour Marketplace

About

Labour Management Platform (D Labour Chowk) A web-based platform that connects labourers, contractors, and clients to streamline profiles, job postings, applications, endorsements, and cross-device access. Built with PHP on the backend and a plain HTML/CSS/JS frontend, focusing on credibility, usability, and multi-role workflows.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages