Simple command line interface (CLI) built with PHP to fetch the recent activity of a GitHub user and display it in the terminal.
PHP GitHub User Activity is a simple Command Line Interface accept the GitHub username as an argument, fetch the user’s recent activity using the GitHub API, and display it in the terminal. This project is designed to explore and practice working with the Command Line Interface (CLI) and GitHub API in PHP.
- PHP - version 8.3.6
- Fetch recent activities of a GitHub user.
- Display a variety of activities including repository creation, commits, branch creation, and starred repositories.
- Simple, clear output for easy tracking of a user's GitHub contributions.
To run this CLI tool, you’ll need:
- PHP: Version 8.3 or newer
How to install:
-
Clone the repository
git clone https://github.com/krisnaajiep/php-github-user-activity-cli.git
-
Change the current working directory
cd path/php-github-user-activity-cli
-
Run the Github User Activity CLI
php github-activity.php
php github-activity.php <github-username>`
Example Output:
Output:
- Pushed 2 commits to krisnaajiep/laravel-expense-tracker-api
- Created new branch [main] in krisnaajiep/laravel-blogging-platform-api
- Created new repository krisnaajiep/laravel-blogging-platform-api
- Pushed 1 commit to krisnaajiep/php-todo-list-api
- Pushed 1 commit to krisnaajiep/php-todo-list-api
- Pushed 1 commit to krisnaajiep/php-todo-list-api
- Pushed 1 commit to krisnaajiep/php-todo-list-api
- Pushed 1 commit to krisnaajiep/php-todo-list-api
- Created new branch [main] in krisnaajiep/php-todo-list-api
- Created new repository krisnaajiep/php-todo-list-api
- Starred firebase/php-jwt
- Pushed 2 commits to krisnaajiep/php-weather-api
- Pushed 1 commit to krisnaajiep/php-weather-api
- Starred predis/predis
- Starred vlucas/phpdotenv
- Pushed 1 commit to krisnaajiep/php-weather-api
- Pushed 1 commit to krisnaajiep/php-weather-api
- Pushed 1 commit to krisnaajiep/laravel-expense-tracker-api
- Pushed 1 commit to krisnaajiep/php-weather-api
- Pushed 1 commit to krisnaajiep/php-weather-api
- Created new branch [main] in krisnaajiep/php-weather-api
- Created new repository krisnaajiep/php-weather-api
- Starred krisnaajiep/laravel-expense-tracker-api
- Starred krisnaajiep/php-github-user-activity-cli
- Starred krisnaajiep/php-task-tracker-cli
- Starred krisnaajiep/php-expense-tracker-cli
- Starred krisnaajiep/php-unit-converter
- Starred krisnaajiep/php-number-guessing-game
- Starred krisnaajiep/php-personal-blog
- Pushed 1 commit to krisnaajiep/php-personal-blog
Project is: complete.
This project was inspired by roadmap.sh.