Skip to content

A simple command line interface (CLI) to fetch the recent activity of a GitHub user built with PHP and Github API.

Notifications You must be signed in to change notification settings

krisnaajiep/php-github-user-activity-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

PHP GitHub User Activity

Simple command line interface (CLI) built with PHP to fetch the recent activity of a GitHub user and display it in the terminal.

Table of Contents

General Information

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.

Technologies Used

  • PHP - version 8.3.6

Features

  • 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.

Setup

To run this CLI tool, you’ll need:

  • PHP: Version 8.3 or newer

How to install:

  1. Clone the repository

    git clone https://github.com/krisnaajiep/php-github-user-activity-cli.git
  2. Change the current working directory

    cd path/php-github-user-activity-cli
  3. Run the Github User Activity CLI

    php github-activity.php

Usage

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 Status

Project is: complete.

Acknowledgements

This project was inspired by roadmap.sh.

Releases

No releases published

Packages

No packages published

Languages