Live Website: FormFarm
FormFarm is a lightweight, high-performance SaaS platform built with PHP (MVC), MySQL, and Bootstrap. It serves as a private alternative to platforms like Formspree, allowing developers to manage form submissions effortlessly without managing their own backend logic for every single form.
Simply point your HTML forms to your unique FormFarm endpoint, and we handle the rest!
- π€ Full User Authentication β Secure Register, Login, and Logout functionality.
- π Dynamic Dashboard β Manage all your forms and view submissions in one place.
- π Unique Endpoint Keys β Every form gets a secure, unique key for POST submissions.
- π© Public POST Endpoint β Seamlessly receive data from any frontend application.
- ποΈ Submission Viewer β Clean, responsive UI to browse and manage received data.
- β‘ Lightweight MVC β Built on a custom core for maximum speed and extensibility.
- Backend: PHP 7.4+ (Custom MVC Framework)
- Database: MySQL
- Frontend: HTML5, CSS3, Bootstrap 5
- Routing: Custom Regex-based Router
- Server: Apache (with
mod_rewrite)
Experience TaskFlow live: http://form.codewithtanim.works/
FormFarm/
βββ app/ β Core MVC Implementation
β βββ controllers/ β Request Handling Logic
β β βββ AuthController.php
β β βββ DashboardController.php
β β βββ FormController.php
β β βββ HomeController.php
β β βββ PublicController.php
β βββ helpers/ β Utility Functions
β β βββ Functions.php
β β βββ MailHelper.php
β βββ middleware/ β Security Guards
β β βββ auth.php
β βββ models/ β Database Interaction
β β βββ Form.php
β β βββ Submission.php
β β βββ User.php
β βββ views/ β UI Templates
β βββ endpoint_active.php
β βββ help.php
β βββ home.php
β βββ thanks.php
β βββ auth/
β β βββ login.php
β β βββ register.php
β βββ dashboard/
β β βββ create-form.php
β β βββ forms.php
β β βββ index.php
β β βββ submissions.php
β βββ layouts/
β βββ footer.php
β βββ header.php
βββ config/
β βββ database.php
βββ core/ β Framework Engine
β βββ Controller.php
β βββ Model.php
β βββ Router.php
βββ database/
β βββ Database.php
β βββ migrations/
β βββ schema.sql
βββ public/ β Web Entry Point
β βββ .htaccess
β βββ index.php
β βββ assets/
β βββ css/
β βββ images/
β β βββ FormFarm.png
β βββ js/
βββ routes/
β βββ web.php
βββ storage/ β Logs & Cache
β βββ cache/
β βββ logs/
βββ .htaccess β Root Redirection
βββ README.md
βββ XAMPP.md
βββ idea.md
βββ idea.txt
- PHP 7.4 or higher
- MySQL Server
- Apache Web Server with
mod_rewriteenabled
-
Clone the Repository:
git clone https://github.com/CodeWithTanim/FormFarm.git cd FormFarm -
Database Configuration:
- Create a database:
CREATE DATABASE formfarm; - Import the schema:
mysql -u your_user -p formfarm < database/migrations/schema.sql
- Create a database:
-
Configure Environment:
- Open
config/database.php - Update
dbname,user, andpasswith your credentials.
- Open
-
Web Server Setup:
- Point your Apache VHost to the
public/directory. - Or, ensure the root
.htaccessis working to redirect requests to/public.
- Point your Apache VHost to the
- Create an Account: Register and log in to your dashboard.
- Setup a Form: Click "Create New Form" to generate a unique Form Key.
- Integrate: Update your HTML form's
actionattribute:<form action="http://your-domain.com/f/YOUR_UNIQUE_KEY" method="POST"> <input type="email" name="email" required> <button type="submit">Submit</button> </form>
- View Results: Submissions will appear instantly in your FormFarm dashboard!
Contributions make the open-source community an amazing place to learn and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is 100% created by MD SAMIUR RAHMAN TANIM.
If anyone wants to use this project, they MUST contact MD SAMIUR RAHMAN TANIM to get explicit permission. Unauthorized use, distribution, or copying of this project will result in legal actions.
See the LICENSE file for more details.
