{"id":13616388,"url":"https://github.com/gitonomy/gitlib","last_synced_at":"2025-04-14T00:32:11.190Z","repository":{"id":4567999,"uuid":"5709354","full_name":"gitonomy/gitlib","owner":"gitonomy","description":"Library for accessing Git repositories with PHP","archived":false,"fork":false,"pushed_at":"2024-05-21T09:10:28.000Z","size":462,"stargazers_count":448,"open_issues_count":17,"forks_count":70,"subscribers_count":25,"default_branch":"main","last_synced_at":"2024-10-29T21:10:55.317Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gitonomy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"tidelift":"packagist/gitonomy/gitlib"}},"created_at":"2012-09-06T22:30:35.000Z","updated_at":"2024-09-03T15:03:53.000Z","dependencies_parsed_at":"2024-05-21T10:44:00.924Z","dependency_job_id":"060d36b0-e5c6-4d6e-b451-ed415beeaac4","html_url":"https://github.com/gitonomy/gitlib","commit_stats":{"total_commits":244,"total_committers":41,"mean_commits":5.951219512195122,"dds":0.6188524590163935,"last_synced_commit":"11a3dfc80a031ed646ba38b4a45e54cb883e57c1"},"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitonomy%2Fgitlib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitonomy%2Fgitlib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitonomy%2Fgitlib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitonomy%2Fgitlib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitonomy","download_url":"https://codeload.github.com/gitonomy/gitlib/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223611966,"owners_count":17173553,"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":["hacktoberfest"],"created_at":"2024-08-01T20:01:27.856Z","updated_at":"2024-11-08T00:31:25.781Z","avatar_url":"https://github.com/gitonomy.png","language":"PHP","funding_links":["https://tidelift.com/funding/github/packagist/gitonomy/gitlib","https://tidelift.com/subscription/pkg/packagist-gitonomy-gitlib?utm_source=packagist-gitonomy-gitlib\u0026utm_medium=referral\u0026utm_campaign=enterprise\u0026utm_term=repo"],"categories":["PHP"],"sub_categories":[],"readme":"Gitlib for Gitonomy\n===================\n\n[![Build Status](https://img.shields.io/github/actions/workflow/status/gitonomy/gitlib/tests.yml?label=Tests\u0026style=flat-square\u0026branch=1.3)](https://github.com/gitonomy/gitlib/actions?query=workflow%3ATests+branch%3A1.3)\n[![StyleCI](https://github.styleci.io/repos/5709354/shield?branch=1.3)](https://github.styleci.io/repos/5709354?branch=1.3)\n[![License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](https://opensource.org/licenses/MIT)\n[![Downloads](https://img.shields.io/packagist/dt/gitonomy/gitlib?style=flat-square)](https://packagist.org/packages/gitonomy/gitlib)\n\nThis library provides methods to access Git repository from PHP 5.6+.\n\nIt makes shell calls, which makes it less performant than any solution.\n\nAnyway, it's convenient and don't need to build anything to use it. That's how we love it.\n\nQuick Start\n-----------\n\nYou can install gitlib using [Composer](https://getcomposer.org/). Simply require the version you need:\n\n```bash\n$ composer require gitonomy/gitlib\n```\n\nor edit your `composer.json` file by hand:\n\n```json\n{\n    \"require\": {\n        \"gitonomy/gitlib\": \"^1.3\"\n    }\n}\n```\n\nExample Usage\n-------------\n\n```php\n\u003c?php\n\nuse Gitonomy\\Git\\Repository;\n\n$repository = new Repository('/path/to/repository');\n\nforeach ($repository-\u003egetReferences()-\u003egetBranches() as $branch) {\n    echo '- '.$branch-\u003egetName().PHP_EOL;\n}\n\n$repository-\u003erun('fetch', ['--all']);\n```\n\nAPI Documentation\n-----------------\n\n+ [Admin](doc/admin.md)\n+ [Blame](doc/blame.md)\n+ [Blob](doc/blob.md)\n+ [Branch](doc/branch.md)\n+ [Commit](doc/commit.md)\n+ [Diff](doc/diff.md)\n+ [Hooks](doc/hooks.md)\n+ [Log](doc/log.md)\n+ [References](doc/references.md)\n+ [Repository](doc/repository.md)\n+ [Revision](doc/revision.md)\n+ [Tree](doc/tree.md)\n+ [Working Copy](doc/workingcopy.md)\n\nFor Enterprise\n--------------\n\nAvailable as part of the Tidelift Subscription\n\nThe maintainers of `gitonomy/gitlib` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-gitonomy-gitlib?utm_source=packagist-gitonomy-gitlib\u0026utm_medium=referral\u0026utm_campaign=enterprise\u0026utm_term=repo)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitonomy%2Fgitlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitonomy%2Fgitlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitonomy%2Fgitlib/lists"}