{"id":18436295,"url":"https://github.com/chrishalbert/git","last_synced_at":"2025-04-07T20:33:02.288Z","repository":{"id":56952361,"uuid":"72375937","full_name":"chrishalbert/Git","owner":"chrishalbert","description":"Php wrapper for git.","archived":false,"fork":false,"pushed_at":"2017-02-17T03:12:14.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T00:22:46.494Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chrishalbert.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}},"created_at":"2016-10-30T21:14:32.000Z","updated_at":"2018-02-12T13:49:49.000Z","dependencies_parsed_at":"2022-08-21T09:20:19.004Z","dependency_job_id":null,"html_url":"https://github.com/chrishalbert/Git","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrishalbert%2FGit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrishalbert%2FGit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrishalbert%2FGit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrishalbert%2FGit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrishalbert","download_url":"https://codeload.github.com/chrishalbert/Git/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247725635,"owners_count":20985741,"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","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":[],"created_at":"2024-11-06T06:11:07.120Z","updated_at":"2025-04-07T20:32:57.269Z","avatar_url":"https://github.com/chrishalbert.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git\n[![Build Status](https://travis-ci.org/chrishalbert/Git.svg?branch=master)](https://travis-ci.org/chrishalbert/Git)\n[![Coverage Status](https://coveralls.io/repos/github/chrishalbert/Git/badge.svg?branch=master)](https://coveralls.io/github/chrishalbert/Git?branch=master)\n[![Latest Stable Version](https://poser.pugx.org/chrishalbert/git/version)](https://packagist.org/packages/chrishalbert/git)\n[![License](https://poser.pugx.org/chrishalbert/git/license)](https://packagist.org/packages/chrishalbert/git)\n\n## Overview\nThis is a simple git wrapper created for use in other php libraries.\n\nIt uses magic methods to execute commands, however it is extendable.\n\n## Installation\n\nAdd this to your composer file:\n```\n{\n    \"require\": {\n        \"chrishalbert/git\": \"1.*\"\n    }\n} \n```\n\nOr simply on the command line:\n```\ncomposer require chrishalbert/git\n```\n\n\n## Usage\n```php\n$git = new Git();\n$branches = $git-\u003ebranch();\n\n// Fix a file for all branches\nforeach ($branches as $branch) {\n    $git-\u003echeckout($branch);\n    // Do stuff\n    $git-\u003eadd('.');\n    $git-\u003ecommit(['--message' =\u003e 'Fixed a bug']);\n}\n\n$git-\u003echeckout('master');\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrishalbert%2Fgit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrishalbert%2Fgit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrishalbert%2Fgit/lists"}