A package for Laravel to perform basic git commands on locally integrated packages.

Related tags

Laravel git php laravel
Overview

Laravel Git Helper for Packages Development

A package for Laravel to perform basic git commands on locally integrated development packages. If working within multiple local development packages or repositories at once this package is meant to ease the burden of navigating to each individual repository to perform basic git commands.

Latest Unstable Version PHP Version Require License

Installation

composer require dalyio/laravel-gitpack
php artisan vendor:publish --provider="Dalyio\Gitpack\Providers\GitpackServiceProvider"

Configuration

Edit the new git.php configuration file in the config directory to match your git credentials and repositories.

return [
    'username' => '{DEFAULT GIT USERNAME}',
    'email' => '{DEFAULT GIT EMAIL}',
    'message' => '{DEFAULT COMMIT MESSAGE}',
    
    'packages' => [
        '{VENDOR/REPOSITORY}' => '{PATH TO LOCAL DEVELOPMENT PACKAGE}',
        'dalyio/laravel-gitpack' => 'packages/dalyio/gitpack/',
    ],
]

Usage

Initialize

Initialize the git repository using the default information provided in the git.php configuration file.

php artisan git:init -p {VENDOR/REPOSITORY}

Or provide new credentials.

php artisan git:init -p {VENDOR/REPOSITORY} -u {GIT USERNAME} -e {GIT EMAIL}

Status

Check the status of all your configured local development packages.

php artisan git:status

And the output will display for each package.

..." to update what will be committed) (use "git restore ..." to discard changes in working directory) modified: README.md no changes added to commit (use "git add" and/or "git commit -a") ">
packages/dalyio/gitpack/
On branch master
Changes not staged for commit:
  (use "git add 
    
     ...
     "
     to update what will be committed)
  (use "git restore 
    
     ...
     "
     to discard changes in working directory)
        modified:   README.md

no changes added to commit (use "git add" and/or "git commit -a")

Pull

Pull all your configured local development packages.

php artisan git:pull

Or specify a single package to pull from.

php artisan git:pull -p {VENDOR/REPOSITORY}

Push

Commit and push changes to all your configured local development packages.

php artisan git:push -m "{COMMIT MESSAGE}"

Or specify a single package to commit and push to.

php artisan git:push -p {VENDOR/REPOSITORY} -m "{COMMIT MESSAGE}"

Branches

When performing any of the above commands, Laravel Gitpack will detect the local development package's current branch and perform the operation using that current branch. To change branches or to perform more complex git branch operations, it is recommended that you navigate to the source of your local development package and use native git commands to resolve any issues.

Errors

If a git error occurs during any of the above processes it is recommended that you navigate to the source of your local development package and use native git commands to resolve any issues.

License

Laravel Gitpack is open-sourced software licensed under the MIT license.

You might also like...
A package that makes it easy to have the `artisan make:` commands open the newly created file in your editor of choice.

Open On Make A package that makes it easy to have the artisan make: commands open the newly created file in your editor of choice. Installation compos

📦 Adds Laravel Packages Support to Lumen and Vendor Publish Artisan Command.
📦 Adds Laravel Packages Support to Lumen and Vendor Publish Artisan Command.

Laravel Package Support for Lumen: Makes Lumen compatible with Laravel Packages. You can use any Laravel Packages in Lumen by installing Larasupport Package.

Watch your Laravel app for unwanted changes when working with third-party packages.
Watch your Laravel app for unwanted changes when working with third-party packages.

Project Secure This package installs a Composer plugin that reports unwanted changes to your Laravel project code after installing or updating a third

Tools for creating Laravel packages
Tools for creating Laravel packages

Tools for creating Laravel packages This package contains a PackageServiceProvider that you can use in your packages to easily register config files,

Allow your model to record the creation, update and deletion of user fingerprints in laravel packages

This laravel package will allow your models to record the the created, updated and deleted by User FingerPrints

Service manager for Slim compatible with Laravel packages

SlimServices SlimServices is a service manager for the Slim PHP microframework based on Laravel 4 service providers and DI container, allowing you to

Mutex for Laravel Console Commands.
Mutex for Laravel Console Commands.

Laravel Console Mutex Mutex for Laravel Console Commands. Laravel Console Mutex 8.x 8.x 7.x 7.x 6.x 6.x 5.8.* 5.8.* 5.7.* 5.7.* 5.6.* 5.6.* 5.5.* 5.5.

The Missing Laravel Commands

Made with ❤️ by SecTheater Foundation Artify CheatSheet will be availble soon Laravel is a great framework and it provides us the ability to create ou

A bookmarkable, searchable cheatsheet for all of Laravel's default Artisan commands.

artisan.page A bookmarkable, searchable cheatsheet for all of Laravel's default Artisan commands. Generation The generation of the manifest files is d

Releases(0.0.4-dev)
Owner
null
This package tracks if products exist in Magento by storing the status locally in the DB.

Magento Products This package tracks if products exist in Magento by storing the status locally in the DB. We developed this to prevent multiple calls

JustBetter 14 Nov 11, 2022
Perform Bulk/Batch Update/Insert/Delete with laravel.

Bulk Query Perform Bulk/Batch Update/Insert/Delete with laravel. Problem I tried to make bulk update with laravel but i found that Laravel doesn't sup

Mohamed Samir 9 Dec 14, 2021
Perform Self-Diagnosis Tests On Your Laravel Application

Perform Self-Diagnosis Tests On Your Laravel Application This package allows you to run self-diagnosis tests on your Laravel application. It comes wit

Beyond Code 1.4k Dec 13, 2022
Git pre-commit hook for Laravel Pint

Laravel Pint githook Git pre-commit hook for Laravel Pint Automatically formats and saves code on commit You no longer need to run the ./vendor/bin/pi

dsoloview 7 Dec 10, 2022
Shell script for Git module deployment with include/exclude filters.

Deploy multiple Git repositories in an unique folder modgit is a shell script for deploying multiple Git repositories in root folder of any project, w

Johann Reinké 175 Nov 22, 2022
Script PHP para preparo e envio de e-mails em massa. Projeto Treino de GIT da DIO

DIO_MailMass Script PHP para preparo e envio de e-mails em massa. Projeto Treino de GIT da DIO O referido projeto permite o envio de e-mail em massa p

Carlos Veras Cavalcanti 1 Jan 21, 2022
A simple laravel package to validate console commands arguments and options.

Command Validator A simple laravel package to validate console commands arguments and options. Installation Require/Install the package using composer

Touhidur Rahman 20 Jan 20, 2022
Package for Laravel that gives artisan commands to setup and edit environment files.

Setup and work with .env files in Laravel from the command line NOTE: This doesn't work with Laravel 5 since .env files were changed. This is for Lara

Matt Brunt 6 Dec 17, 2022
A wrapper package to run mysqldump from laravel console commands.

A wrapper package to run mysqldump from laravel console commands.

Yada Khov 24 Jun 24, 2022
A package for more Laravel commands.

Lara-Commands A package for more Laravel commands. Installation This package can be installed via Composer: composer require nimaw/lara-commands --dev

Nima 7 Jan 9, 2022