- 0
- 1,096 word

Livestock Management System
Livestock Management System is a full-featured web application for managing livestock farms of any size. From small poultry units to large multi-shed cattle operations. It covers the entire farm lifecycle: purchasing animals from suppliers, assigning them to sheds and batches, tracking their feed, vaccines, and medicines, selling them to clients, and recording every expense and payment along the way.
Built on CodeIgniter 3 with a clean modular architecture, it runs on any standard PHP host. Everything a farm owner or manager needs – invoices, reports, payments, and financial summaries – is available out of the box from a single, easy-to-install package.
Site: Livestock Management System
Email: admin@example.com
Password: 12345
Key Highlights
- 19 Modules covering the complete livestock farm lifecycle
- PHP 7.2 – 8.5 compatible – runs on virtually any host
- MySQL / MariaDB – shared hosting friendly, no CLI or Composer required
- PDF Invoice Generation – branded purchase and sale invoices via dompdf
- Multi-Currency Support – set your currency once, it propagates everywhere
- CSV Export – clients, suppliers, and livestock records
- Soft-Delete Architecture – no data is ever permanently lost
- Database Transactions – every multi-table write is atomic
- CSRF Protection – action tokens on every destructive operation
All 19 Modules
- Dashboard – KPI summary cards and recent activity feed
- Livestock – breeds, types, and variant management
- Shed & Batch – assign livestock, transfer between sheds, track mortality
- Purchase – multi-item purchase invoices from suppliers with discounts
- Sale – client sale orders with real-time stock validation
- Product – farm products (eggs, milk, wool), stock tracking, and product sales
- Food – feed purchases, shed distribution, waste recording and reporting
- Vaccine – multi-dose schedules, routes, administration tracking per shed/batch
- Medicine – shed-wise medicine schedule tracking (previous, next, last dose dates)
- Expense – categorized farm expenses with payment tracking
- Payments – unified hub for supplier payments, client collections, staff salaries
- Supplier – profiles, categorization, purchase history, outstanding balances
- Client – profiles, categorization, sale history, payment tracking
- Staff – profiles, role types, salary payment history
- Finance – Profit & Loss statements with date-range filtering
- Report – purchase, sale, food, vaccine, expense, and product reports
- Settings – currency, timezone, date format, company branding, backup/restore
- Auth – login, password reset via email (Ion Auth)
- Profile – user profile and password management
Shed & Batch Management
- Create, edit, and soft-delete sheds
- Manage multiple batches per shed
- Assign purchased livestock directly to a shed batch
- Transfer livestock between sheds with full history log
- Record and report daily mortality (death tracking)
- Cascading batch dropdowns by shed via AJAX
- Shed-wise livestock summary with live totals
- Batch prefix configuration in Settings
- Active / inactive batch status toggling
Purchase & Sale Invoices
- Multi-item purchase invoices from suppliers
- Per-item and order-level discounts
- Print-ready PDF invoices via dompdf (no external API)
- Real-time stock validation before any sale is committed
- Partial and full payment recording against invoices
- Overpayment guard rejects amounts exceeding the outstanding balance
- Cheque number and payment date tracking
- Date-range filtering on all purchase and sale lists
- One-click CSV export of filtered results
- Product sales module for farm by-products (eggs, milk, wool, etc.)
Feed, Vaccine & Medicine
- Feed purchase invoices from suppliers
- Distribute feed to specific sheds and batches
- Record and report feed waste by type and date
- Multi-dose vaccination programs per livestock type
- Define vaccination routes (oral, injection, spray) and dose serials
- Record which shed and batch received which vaccine and when
- Full vaccination history per shed for health audit compliance
- Shed-wise medicine schedule: previous, next, and last dose dates
- Duplicate food and vaccine assignment prevention
People, Payments & Expenses
- Full supplier profiles with contact info, type categorization, and photo uploads
- Client profiles with sale history and outstanding balance tracking
- Staff profiles with role types, contact details, and salary payment history
- Categorized expense logging with payment method and cheque number
- Unified payment module: supplier payments, client collections, staff salaries
- All payments validated – no negative amounts, no overpayments
- CSV export for client list, supplier list, and livestock records
Financial Reports & Analytics
- Profit & Loss statement with date-range filtering
- Livestock purchase reports (by supplier, date, type)
- Livestock sale reports (by client, date, type)
- Food and vaccine purchase cost reports
- Product sale reports by category
- Expense reports by category and date
- Staff salary expense summaries
- Revenue vs. expense comparison
- Year-based, month-wise, and custom date-range filtering
- Batch-wise and shed-wise livestock analysis
Settings & Configuration
- Multi-currency: set your symbol once, it updates everywhere
- Timezone-aware timestamps – no server timezone dependency
- Company logo, name, address, phone, and email for PDF invoices
- Customizable date format across all pages and reports
- Low-stock threshold and overdue payment day configuration
- Settings backup and restore (export/import as file)
- Batch prefix configuration
Security & Data Integrity
- Ion Auth library – industry-standard authentication
- bcrypt password hashing (no plain-text passwords stored)
- CSRF action tokens on every destructive operation
- POST-only destructive endpoints (no GET-based mutations)
- Soft-delete architecture – no data is ever permanently lost
- Database transactions on every multi-table write
- Overpayment and negative-payment guards on all payment forms
- Stock validation enforced before any sale is saved
- Full audit trail: created_by, updated_by, timestamps on every table
- MySQL strict mode compatible (no silent truncation or GROUP BY bugs)
- Login attempt tracking and session management
Technology Stack
- CodeIgniter 3.1.13 with HMVC
- PHP 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5
- MySQL 5.7+ or MariaDB 10.3+
- Ion Auth, dompdf, Bootstrap 3, jQuery, DataTables, Toastr, SweetAlert2, Select2
Server Requirements
| Requirement | Value |
|---|---|
| PHP | 7.2 or higher (up to 8.5) |
| Database | MySQL 5.7+ or MariaDB 10.3+ |
| Web Server | Apache with mod_rewrite, or Nginx |
| PHP Extensions | mbstring, pdo_mysql, gd, fileinfo |
| SMTP | Optional – required only for password reset emails |
Shared hosting compatible. No root access, Composer, Node.js, or CLI required. Upload via FTP, import the SQL, edit one config file – done.
What’s Included
- Full PHP source code (CodeIgniter 3 HMVC)
- SQL database file, ready to import
- All frontend assets (Bootstrap, jQuery, DataTables, etc.)
- Vendored PDF library (dompdf) – no separate download needed
- Sample data for testing
- Step-by-step installation documentation
- 6 months of author support included
Change Log
v3.0.2 – 09 July 2026 (Current)
Fixed
- Fixed profile update failing with a validation error – users can now change their name, email and password from the Profile page again.
- Fixed the same validation error when saving medicine records.
v3.0.1 – 19 June 2026
Fixed
- Fixed 500 error on the Reports page.
- Fixed a fatal error on servers that do not have the LDAP extension installed.
Compatibility
- Verified full compatibility with PHP 8.5 across all 19 modules.
- Patched HMVC core for PHP 8.x strict property typing requirements.
v2.0.0 – October 2023
Added
- New dashboard with KPI summary cards and recent activity feed.
- New reporting module with date-range filtering across purchases, sales, expenses, and products.
Fixed
- Various bug fixes and stability improvements across modules.
v1.0.0 – Initial Release
- First public release of Livestock Management System.
Thank you for choosing Livestock Management System. For any questions or issues, reach out through the support page or contact us at chaoscoding404@gmail.com, and we will get back to you as soon as possible.
