- Database Setup: Create a MySQL database and export this script /sql/*.sql - this gives you the basic structure of your code you may add more table based on the requirement.
- Database Configuration: you can find a exa 5F3C mple environment file here /src/.env.example you may rename it to /src/.env and add all your database information or you can directly go to /src/model.php file and go to line 36 and give your database information
- If you need to add any common method you can use /src/config.php file
- Check composer.json and edit if it require and run
composer update
to setup all development dependency. - Go to /examples/sample.php file and you can show all output here, it can be browse by http://LOCAL_HOST/PATH/scheduling/examples/sample.php
- Development work - /src/, update all files and it structure based on your requirements, you can add multiple files or folder whatever need can be used!
- You can find model.php which is for database, it pre configured you can update or add more method, if it required. You can find employee.php which is define all your business logic and you can find some method is ready to use where you have to do your task. You may change it if it required.
- /docs/ if any document require that you need to put you can put here.
- Database Setup: Create a MySQL database and export this script /sql/organogram.sql - this gives you the database structure with some dummy data.
- Database Configuration: Please change /src/.env file variable value with your database information.
- Open the browser and browse organogram/examples/login.php file.
- Input email address, password and department to get the list of your employees who work under you.
- For example:
email: emp-15@test.com
passsword: 123456
Department: Department -- B
- 14 employees work under this employee.