I'm always excited to take on new projects and collaborate with innovative minds.

Phone

+1 234 567 890

Email

naintushar@hotmail.com

Website

https://tusharnain.com

Address

Yamunanagar, Haryana

Social Links

Project

PSF World - Transforming Poultry Farming with Smart Business Models

A unique platform that blends poultry farming with a referral-based + returns earning system.. PSF World promotes fresh, organic poultry products through ethical, sustainable practices while offering members earning opportunities via referrals. Features include product listings, user dashboards, wallet, withdrawals, and KYC, blending agriculture with digital marketing.

Client

PSF World

Start Date

Jan 01, 2025
PSF World - Transforming Poultry Farming with Smart Business Models

📌 Introduction

PSF World is a powerful and innovative project I built from scratch using CodeIgniter 4, MySQL, Apache, and Bootstrap 5. It’s more than just a digital platform, it’s a complete ecosystem designed to modernize and streamline poultry farming operations through smart business models.

This blog post walks you through the detailed technical and functional architecture of PSF World, including how I implemented wallet systems, ROI engines, multi-level user management, admin controls, and security features.

 

Features & Technical Insights:

 

🔐 Dual-Guard Authentication

Implemented separate session based guards for admin and users using CodeIgniter 4's session library. This ensures both can remain logged in simultaneously with isolated session data, improving usability and security.

 

🎯 User Dashboard

Built with Bootstrap 5 and jQuery. Dynamic data including wallet summaries, ROI, team metrics, and visual charts are loaded via AJAX after page load for better performance and user experience.

 

💼 Multiple Wallet System

Users maintain multiple wallet types (e.g., ROI, referral, bonus). Transactions (credit/debit) are handled using SQL transactions in CI4 to avoid partial updates in the event of failure.

 

🷶️ Daily ROI Engine

A CRON job runs daily to compute and credit ROI based on each user's investment. Designed for scalability and includes safety checks to prevent double crediting or errors.

 

🏦 Deposits & Transactions

Modular deposit handling with dynamically generated input fields based on the deposit mode. Admin approval is required for all deposits, ensuring security and flexibility.

 

🔁 P2P Transfers

Allows users to transfer wallet funds to each other. Uses CI4’s database transactions to guarantee data integrity during transfers.

 

💸 Withdrawals (Auto & Manual)

Supports both auto-scheduled and manual withdrawals. Manual withdrawals go into a pending state where admin reviews and releases payout. Ensures accurate processing and prevents fraud.

 

🔗 Referral System

Registration allowed only via referral links. The user hierarchy is stored as a self-referencing table using `id` and `parent_id` to form a flexible n-ary tree.

 

🌐 Multi-Level Tree View

Frontend tree rendered using JS org charts. Only visible nodes are initially loaded; clicking on a node fetches its children dynamically via AJAX, optimizing performance.

 

🛬 KYC Verification

Users upload documents which undergo backend validation. Admins can review, approve, or reject submissions with notes. Helps prevent identity fraud.

 

🛠️ Admin Dashboard

Built as a separate panel with modules for user control, KYC review, wallet management, and impersonation (login as user). Admin sessions do not interfere with user sessions.

 

👁️ Login Tracking & Suspicious Attempts

Logs each login attempt along with IP address, browser info, OS details, and failure count. Includes throttling to prevent brute force attacks and alerts admins after multiple failures.

 

📜 Income Logs (Category-wise)

All income types (ROI, referral, bonuses, etc.) are logged in separate tables. Admins can view, search, and filter logs using paginated CI4 views.

 

📊 Charts & Data Visualization

Earnings and performance metrics are visualized using ApexCharts. All chart data is fetched asynchronously using AJAX calls to avoid overloading initial page load.

 

📈 Stats Widgets

Real-time metrics such as total users, investments, team members, and wallet balances are displayed as widgets. These stats are fetched after page load using AJAX.

 

🏅 User Ranking System

Rankings based on total investment of each user's team (tree). Calculated using level-order traversal and cached in the DB for performance. CRON updates rankings once daily.

 

🎟️ Support Ticket System

Users can create support tickets with subject, priority, and description. File uploads are supported. Admins reply, track ticket status, and close them upon resolution.

 

🔚 Wrap-up

PSF World stands as a technically robust and scalable project, blending modern tech stacks and smart business logic. With a strong focus on user experience, performance, and security, this project delivers real value in digital poultry and financial ecosystems.

For any queries, customization, or similar solutions, feel free to reach out!

 

 

Share

Leave a comment

Your email address will not be published. Required fields are marked *