https://github.com/ryinner/githubinfo
https://github.com/ryinner/githubinfo
git git-info php
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ryinner/githubinfo
- Owner: ryinner
- Created: 2024-04-05T05:41:46.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-05T06:19:02.000Z (about 1 year ago)
- Last Synced: 2025-01-12T19:27:24.637Z (5 months ago)
- Topics: git, git-info, php
- Language: PHP
- Homepage: https://packagist.org/packages/ryinner/githubinfo
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Info
This is a simple package for get information from git.
Informer uses local command invocation to get information about the repository. It just run shell scripts and clean messages by regexp.
---
Functions:
- `(new Informer)->getConfigUsername` - `git config user.name`, return string;
- `(new Informer)->getCurrentBranch` - `git branch` + regexp, return string;
- `(new Informer)->getLastCommitHashByOriginBranch` - `git ls-remote --heads origin` + regexp, return string;