{"id":16357150,"url":"https://github.com/eiriksm/php-app-git-version","last_synced_at":"2026-03-18T00:38:04.915Z","repository":{"id":18786398,"uuid":"85306941","full_name":"eiriksm/php-app-git-version","owner":"eiriksm","description":"Gives you different types of info on your app version (using git).","archived":false,"fork":false,"pushed_at":"2024-10-16T18:10:37.000Z","size":41,"stargazers_count":3,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-01T01:22:54.549Z","etag":null,"topics":["composer","git","packagist","php"],"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/eiriksm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-03-17T11:58:47.000Z","updated_at":"2024-10-19T08:16:23.000Z","dependencies_parsed_at":"2024-10-18T09:12:13.746Z","dependency_job_id":null,"html_url":"https://github.com/eiriksm/php-app-git-version","commit_stats":{"total_commits":25,"total_committers":5,"mean_commits":5.0,"dds":"0.19999999999999996","last_synced_commit":"2a38b4dfdf1733bd6964df724cdcfe8e6b50d23e"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiriksm%2Fphp-app-git-version","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiriksm%2Fphp-app-git-version/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiriksm%2Fphp-app-git-version/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiriksm%2Fphp-app-git-version/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eiriksm","download_url":"https://codeload.github.com/eiriksm/php-app-git-version/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244013722,"owners_count":20383709,"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":["composer","git","packagist","php"],"created_at":"2024-10-11T01:46:20.849Z","updated_at":"2026-03-18T00:37:59.887Z","avatar_url":"https://github.com/eiriksm.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eiriksm/gitinfo\n\n[![Packagist](https://img.shields.io/packagist/v/eiriksm/gitinfo.svg?maxAge=3600)](https://packagist.org/packages/eiriksm/gitinfo)\n[![Packagist](https://img.shields.io/packagist/dt/eiriksm/gitinfo.svg?maxAge=3600)](https://packagist.org/packages/eiriksm/gitinfo)\n[![Coverage Status](https://coveralls.io/repos/github/eiriksm/php-app-git-version/badge.svg?branch=master)](https://coveralls.io/github/eiriksm/php-app-git-version?branch=master)\n[![Build Status](https://travis-ci.org/eiriksm/php-app-git-version.svg?branch=master)](https://travis-ci.org/eiriksm/php-app-git-version)\n[![Violinist enabled](https://img.shields.io/badge/violinist-enabled-brightgreen.svg)](https://violinist.io)\n\nA package to get git info from your application. You can use this to display application information about your app, which in turn is useful for generating bug reports or user feedback.\n\nYou can also use it as an indication to your users of your last update of your application.\n\nThis is what powers the version string on [Violinist.io](https://violinist.io/) where you can get free, automated composer updates for life!\n\n## Installation\n\nInstall with composer:\n\n```bash\ncomposer require eiriksm/gitinfo\n```\n\n## Usage\n\nYou use this based on your preferred method of output.\n\n```php\nuse eiriksm\\GitInfo\\GitInfo;\n$info = new GitInfo();\n$hash = $info-\u003egetShortHash(); // Example output: f09037f\n$date = $info-\u003egetDate(); // Example output (last commit date): 2020-05-31 09:05:40\n$version = $info-\u003egetVersion(); // Example output: 1.1.1-2-gf09037f, or if on a clean tag: 1.1.1\n$app_version = $info-\u003egetApplicationVersionString(); // v.1.1.1-2-gf09037f.f09037f (2020-05-31 09:05:40)\n```\n\n## Licence\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feiriksm%2Fphp-app-git-version","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feiriksm%2Fphp-app-git-version","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feiriksm%2Fphp-app-git-version/lists"}