Download the PHP package ibrostudio/laravel-git without Composer
On this page you can find all versions of the php package ibrostudio/laravel-git. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ibrostudio/laravel-git
More information about ibrostudio/laravel-git
Files in ibrostudio/laravel-git
Package laravel-git
Short Description Manage git repositories with Laravel
License MIT
Homepage https://github.com/ibrostudio/laravel-git
Informations about the package laravel-git
Laravel Git
A powerful Laravel package for managing Git repositories with an elegant, fluent API. This package provides a seamless integration between Laravel applications and Git repositories, allowing you to perform Git operations programmatically.
Presentation and Goal
Laravel Git is designed to simplify Git operations in Laravel applications. It provides a clean, object-oriented interface to interact with Git repositories, making it easy to:
- Create, clone, and manage Git repositories
- Perform common Git operations (pull, push, fetch, commit)
- Work with branches, tags, and releases
- Integrate with GitHub (and potentially other Git providers in the future)
- Generate changelogs and manage versioning
The goal of this package is to provide a robust, Laravel-friendly way to interact with Git repositories, whether for deployment automation, version control management, or other Git-related tasks in your Laravel applications.
Requirements
- PHP ^8.4
- Laravel 12
- Git
Installation
You can install the package via Composer:
The package will automatically register its service provider.
Configuration
Publish the configuration file:
This will create a config/git.php
file where you can configure:
- Default Git provider, branch, and remote
- Authentication credentials for Git providers (GitHub)
- Repository templates
- Changelog configuration
- Pre-commit hooks
- Scripts for deployment, formatting, and testing
GitHub Authentication
To use GitHub integration, set your GitHub credentials in your .env
file:
Basic Usage
Opening an Existing Repository
Cloning a Repository
Creating a New Repository
This will use all default values from git.php config file.
You can define more parameters and overwrite default values:
Basic Git Operations
Working with Commits
Advanced Usage
Working with Branches
Working with Tags and Releases
Generating Changelogs
API Documentation
The package provides several main classes and interfaces:
Git
: The main facade for interacting with Git providersRepository
: Represents a Git repository with methods for common operationsCommit
: Represents a Git commitBranch
: Represents a Git branchTag
: Represents a Git tagRelease
: Represents a Git release
Each class provides a fluent interface for performing operations related to its domain.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-git with dependencies
ibrostudio/laravel-data-objects Version ^1.0
ibrostudio/laravel-neon-config Version ^1.0
ibrostudio/laravel-tasks Version ^1.1
nette/neon Version ^3.4
saloonphp/laravel-plugin Version ^3.0
saloonphp/pagination-plugin Version ^2.0
saloonphp/saloon Version ^3.0
spatie/laravel-package-tools Version ^1.16