This is a PHP project that uses Silex (as a router only) and a custom ORM to manage livestock farming.
It helps farmers to:
- Store and manage livestock data
- Track treatments and medical history
- Receive notifications for upcoming treatments
- PHP >= 7.4
- Composer
- MySQL
- Terminal / CLI access
- Clone the repository:
git clone https://github.com/your-username/livestock-management.git
cd livestock-management- Install dependencies using Composer:
composer install- Create your environment configuration file:
cp .env.example .envThe open .env and configure your MySql credentials(DB_HOST, DB_NAME, DB_PASSWORD, DB_USER).
This project uses a custom-built ORM to handle database creation and table management.
- Create the database
php bin/app.php db:create- Create tables
You can generate a table by name using:
php bin/app.php db:table [name]. Livestock registration and health tracking . Treatment scheduling and notifications . Lightweight routing using Silex . MySql database with fully custom ORM