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.

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.
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.
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.
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.
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.
Modular deposit handling with dynamically generated input fields based on the deposit mode. Admin approval is required for all deposits, ensuring security and flexibility.
Allows users to transfer wallet funds to each other. Uses CI4’s database transactions to guarantee data integrity during transfers.
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.
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.
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.
Users upload documents which undergo backend validation. Admins can review, approve, or reject submissions with notes. Helps prevent identity fraud.
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.
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.
All income types (ROI, referral, bonuses, etc.) are logged in separate tables. Admins can view, search, and filter logs using paginated CI4 views.
Earnings and performance metrics are visualized using ApexCharts. All chart data is fetched asynchronously using AJAX calls to avoid overloading initial page load.
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.
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.
Users can create support tickets with subject, priority, and description. File uploads are supported. Admins reply, track ticket status, and close them upon resolution.
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!
Your email address will not be published. Required fields are marked *