MMP CLI was created by, and is maintained by evaleries. This tool is a Moodle cli-based application that provides simple information directly taken from MMP UNEJ.
- Built on top of the Laravel Zero components.
First of all, clone this repository.
Run composer install
command.
Then, set up your NIM & Password in .env
correctly.
Finally, try login by running php mmp login
There are several available commands.
You can login & fetching upcoming events directly from MMP by running php mmp login
Or logging-out by running php mmp logout
. This command will delete the cookies
and responses
folder inside the storage.
You can easily check the upcoming assignments/tasks by running these commands below.
php assign:list
- List of available tasks on current month.php assign:list --latest
- Update the upcoming assignments.php assign:list --custom
- Custom month.php assign:detail
- Interactively see the detail of assignment.
You can easily check the upcoming attendaces by running these commands below.
php mmp attend:list
- List of attendances on current monthphp mmp attend:list --latest
- Update the upcoming attendancesphp mmp attend:list --custom
- Custom month.php mmp attend:list --today
- List of today's attendance.php mmp attend:list --tomorrow
- List of tomorrow's attendance.php mmp attend:list --upcoming
- List of upcoming attendances in this month.php mmp attend:list --desc
- Reversed list of attendance (order desc by date).
Submit an attendance with ease.
php mmp attend:submit
- Run command in interactive mode. (Give an options for course id & attendance status).php mmp attend:submit --course=COURSEID
- Submit attendance with specified course id & set status toPresent
. This option won't give you an option (non interactive mode)php mmp attend:submit --course=COURSEID --status=Late
- You also can customize the attendance status to one of thesePresent
,Excused
,Late
,Absent
. The default isPresent
.php mmp attend:submit --all
- Show all attendances. Without passing--all
, this command will show only for today's attendance.
If you need help with the command, pass help
on the first argument before the command.
e.g: php mmp help assign:list
You can help this project by fixing an issue or make a new feature. Feel free to open pull request on this repository.
MMP CLI is an open-source software licensed under the MIT license.