{"id":16720339,"url":"https://github.com/niyko/phpgit","last_synced_at":"2025-10-03T17:29:00.026Z","repository":{"id":119413588,"uuid":"212163107","full_name":"Niyko/PHPGit","owner":"Niyko","description":"Web based terminal / command line that can be used to push files from any hosting server to Github respository, Made with PHP and GitHub API","archived":false,"fork":false,"pushed_at":"2020-01-02T12:32:50.000Z","size":87,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T10:04:40.014Z","etag":null,"topics":["cpanel","git","github","hosting","php","phpgit","server"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Niyko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-01T17:55:53.000Z","updated_at":"2024-08-06T12:32:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"f3fa52c9-5e3b-40dc-90ae-e8acb519ec8f","html_url":"https://github.com/Niyko/PHPGit","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Niyko/PHPGit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niyko%2FPHPGit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niyko%2FPHPGit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niyko%2FPHPGit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niyko%2FPHPGit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Niyko","download_url":"https://codeload.github.com/Niyko/PHPGit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niyko%2FPHPGit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273410256,"owners_count":25100455,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpanel","git","github","hosting","php","phpgit","server"],"created_at":"2024-10-12T22:06:44.669Z","updated_at":"2025-10-03T17:28:54.960Z","avatar_url":"https://github.com/Niyko.png","language":"PHP","readme":"![PHPGit logo](https://i.imgur.com/fg3qMGn.png)\nPHPGit is a web based terminal that can be used to push from your hosting server to your Github repo. PHPGit is like a clone of GIT desktop app. So most of the commands used for PHPGit is similar to GIT commands. PHPGit also partially supports `.gitignore` files.\n\n# Installation\nTo install PHPGit, Just clone or download the zip of this repo and put it in your server. PHPGit doesn't have any dependency, It will work on `PHP 5.xx \u003e`\nThen run the `index.php` file.\n\n# Basic usage\n1) Download the .zip of the master and decompress it in the server, open the folder in the browser\n1) Type and enter `git init [FOLDER YOU WANT TO PUSH]`\n1) Type and enter `git repo [GITHUB REPO URL]`, read below for more info\n1) Type and enter `git key [GITHUB PERSONAL ACCESS TOKEN]`, read below for more info\n1) Type and enter `git commit [COMMIT MESSAGE]`\n1) Type and enter `git push`\n\n# Commands\n## git init\nUsed to point to the folder in the server which have to be uploaded to Github\n\u003e Please note, PHPGit use its folder as base url, So don't forget to use `../` when needed\n`````\ngit init [DIR PATH]\n`````\n*Examples:* \n`````\ngit init helloworld\ngit init ../abc/helloworld\n`````\n## git repo\nUsed to set the repository url of the github repo. The files from the server will be pushed to this repository. Give the github repository clone link `(eg: https://github.com/Niyko/PHPGit.git)`\n`````\ngit repo [REPO URL]\n`````\n*Examples:* \n`````\ngit repo https://github.com/Niyko/PHPGit.git\n`````\n## git commit\nUsed to set the commit changes message, Same as github commit changes text\n`````\ngit commit [MSG]\n`````\n*Examples:* \n`````\ngit commit first commit\ngit commit something changed\n`````\n## git key\nUsed to set the github personal access token to authenticate the user with github. You can create one from https://github.com/settings/tokens \nFor more help to create a key, read this https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line\n`````\ngit key [PERSONAL ACCESS TOKEN]\n`````\n*Examples:* \n`````\ngit key 3j3484j45843u4574y3e6etwq5wq7fru7\n`````\n## git push\nUsed to push the files from server to the server to the github repo\n`````\ngit push\n`````\n*Examples:* \n`````\ngit push\n`````\n## git clear\nUsed to clear the terminal screen\n`````\ngit clear\n`````\n*Examples:* \n`````\ngit clear\n`````\n## git view\nUsed to print all currently set variables like `Repo link, Personal access key, etc`\n`````\ngit view\n`````\n*Examples:* \n`````\ngit view\n`````\n## git pass\nUsed to authenticate you to the server if you set any password in the `config.php` file. \n\u003e Note that this is not your github password, This password is used to authenticaye between the admin (YOU) and the (YOUR) server. You can set the password in the `config.php` file. For more read below.\n`````\ngit pass [PASSWORD]\n`````\n*Examples:* \n`````\ngit pass abcd\n`````\n\n# Config.php\nConfig.php has some global variables which can be used to set some default values to the `Repo link, Personal access key, etc`. It is not necessary to edit this files. Uses of each variable in the `config.php` is given below\n\n| Variable | Use | Example value |\n| --- | --- | --- |\n| `$DEFUALT_GITHUB_REPO` | Used to set a default value to repo url. Can be used from the command `git repo default` | https://github.com/Niyko/PHPGit.git |\n| `$DEFUALT_GITHUB_AUTH_KEY` | Used to set a default value to personal access token. Can be used from the command `git key default` | 87dsys]8cd87cd6t326t23r78 |\n| `$DEFUALT_GITHUB_COMMIT_MESSAGE` | Used to set a default value to the commit message. Can be used from the command `git commit default` | First commit |\n| `$DEFUALT_PASSWORD` | Used to set a password to the terminal. If you set a password string in this variable, Then you can push or commit from the terminal after you authenticated through the command `git pass [PASSWORD]` | abcd |\n\n# License\nPHPGit is licensed under the [GNU GENERAL PUBLIC LICENSE](https://github.com/Niyko/PHPGit/blob/master/LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniyko%2Fphpgit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniyko%2Fphpgit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniyko%2Fphpgit/lists"}