---
title: "Installation — Git for Laravel | Roundly"
description: "Install via Composer and optionally publish the config and webhook route stub — the service provider and Git facade are auto-discovered."
url: https://roundly-consulting.com/open-source/docs/git-for-laravel/installation
language: en
---

[All packages](https://roundly-consulting.com/open-source.md)

[Git for Laravel](https://roundly-consulting.com/open-source/docs/git-for-laravel.md)

# Installation

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

```bash
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:

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

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

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

## Checking the setup

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

```bash
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](https://roundly-consulting.com/support-us.md)

By donating, you agree to our [donation terms](https://roundly-consulting.com/donation-terms.md).

[Support our open source work (opens in a new tab)](https://donate.stripe.com/dRmeVe8FX5PF1Qd9pXcEw00) [Join us on Patreon (opens in a new tab)](https://www.patreon.com/cw/roundly)

## 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.

[Get a quote in 48 hours](https://roundly-consulting.com/contact.md) [Browse all packages](https://roundly-consulting.com/open-source/docs/git-for-laravel.md)
