sebastian/git-state
Describe the state of a Git checkout from PHP. Detect origin URL, current branch and commit hash, and whether the working directory is clean; otherwise return the git status output. Useful for build metadata and diagnostics.
sebastian/git-state is a small PHP library that inspects a local Git checkout and returns a structured representation of its state. It’s useful for build tools, diagnostics, and test setups that need to know what revision and working tree they’re running against.
false otherwise)isClean()Builder, call build(), and query the resulting state objectHow can I help you explore Laravel packages today?