A simple PHP MVC starter for a forex trading platform supporting spot and futures trading.
- User login
- Spot and futures trade placement
- Trade dashboard
- MVC structure (Models, Views, Controllers)
- MySQL database integration
app/Controllers- Handles user and trade actionsapp/Models- Database logicapp/Views- HTML templatesconfig/config.php- Loads DB settings from.envpublic/index.php- Front controller and router.env.example- Sample environment config
- Copy
.env.exampleto.envand fill in your database details. - Create the database and tables:
users(id, username, password, etc.)trades(id, user_id, pair, amount, direction, type, created_at)
- Point your web server to
public/index.php - Start building!
After setting up your database, you can log in with the following credentials:
- Username: admin
- Password: Kapacity$55
You can add more users directly to the users table in your database.
- Do NOT commit your real
.envfile. - Add
.envto.gitignore. - Always validate user input in production!
- Push your code to GitHub: https://github.com/boostlink-creatorh/Xpert-Forex-Trade
- For issues or contributions, open a pull request.