Package components:
- API
- Templates
- Main Source Code
Instructions:
- Install XAMPP then start Apache and MySQL services
- Create a MySQL database and table(s).
- Clone this repository to your XAMPP/htdocs folder
- Update PHP config file accordingly under src/classess/config.env
- Enable Apache Virtual Host and configure domain name. If working locally, see 'Apache Local machine trick' below.
- Run the app via your domain name.
To enable locally, here's a Apache Local machine trick:
- For Mac OS: https://jonathannicol.com/blog/2012/03/11/configuring-virtualhosts-in-xampp-on-mac/
- For Windows 0S: https://www.cloudways.com/blog/configure-virtual-host-on-windows-10-for-wordpress/
For sample code usage see: https://github.com/hellomicah/basicphppkg/blob/master/public/templates/example.php