NewWe open-sourced 50+ Laravel packages
Custom AI apps, agents and automation — Roundly ConsultingRoundly
All packages
Git for Laravel

Installation

Require the package with Composer. The service provider and the Git facade alias are auto-discovered — there is nothing to register by hand:

composer require roundly-consulting/git-for-laravel

The package works with zero configuration — the settings you’re likely to change are all env-backed. Publish the config file only when you want to change it:

php artisan vendor:publish --tag="git-config"

If you receive webhooks and want to own the route definition, publish the route stub as well:

php artisan vendor:publish --tag="git-routes"

Checking the setup

The package contributes its own section to Laravel’s about command:

php artisan about
  • Providers — the forges with a default token configured (or NONE).
  • Rate limiting — the forges still paced by the client-side limiter (or OFF).
  • Webhooks — the webhook path when receiving is enabled, otherwise OFF.
  • Conditional caching — ON or OFF.

Next, put a token in .env (GITHUB_TOKEN, GITLAB_TOKEN or BITBUCKET_TOKEN) and call Git::github() — see The Git facade.

Show your open-source love

This package is free and MIT-licensed. If it saves you time, a one-off donation or a Patreon membership keeps it maintained, tested and documented.

More ways to support, including crypto

By donating, you agree to our donation terms.

Want this built into your product?

We integrate our packages into custom Laravel and AI builds. Tell us what you're working on and we'll reply within 48 hours.