Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 18, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 18, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 18, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 18, 2025

      Gears of War: Reloaded — Release date, price, and everything you need to know

      May 18, 2025

      I’ve been using the Logitech MX Master 3S’ gaming-influenced alternative, and it could be your next mouse

      May 18, 2025

      Your Android devices are getting several upgrades for free – including a big one for Auto

      May 18, 2025

      You may qualify for Apple’s $95 million Siri settlement – how to file a claim today

      May 18, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      YTConverter™ lets you download YouTube videos/audio cleanly via terminal — especially great for Termux users.

      May 18, 2025
      Recent

      YTConverter™ lets you download YouTube videos/audio cleanly via terminal — especially great for Termux users.

      May 18, 2025

      NodeSource N|Solid Runtime Release – May 2025: Performance, Stability & the Final Update for v18

      May 17, 2025

      Big Changes at Meteor Software: Our Next Chapter

      May 17, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Gears of War: Reloaded — Release date, price, and everything you need to know

      May 18, 2025
      Recent

      Gears of War: Reloaded — Release date, price, and everything you need to know

      May 18, 2025

      I’ve been using the Logitech MX Master 3S’ gaming-influenced alternative, and it could be your next mouse

      May 18, 2025

      How to Make Your Linux Terminal Talk Using espeak-ng

      May 18, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Git Hooks Made Easy: How Whisky Helps Developers with Len Woodward

    Git Hooks Made Easy: How Whisky Helps Developers with Len Woodward

    August 16, 2024

    In this episode of the Laravel Creator Spotlight, we are joined by Len Woodward, the creator of Whisky, to talk about the project.

    Whisky Introduction

    Whisky is the simplest, framework agnostic, CLI tool for managing and enforcing a php project’s git hooks across an entire team.

    Git hooks are a fantastic tool to ensure that code hitting version control satisfies your org’s code quality standards. However, .git/hooks is not included in your git tree. This makes it impractical to have all contributors to a repository use the same checks with the same settings.

    Whisky Installation

    Whisky’s only dependency is php^8.1.

    You can install the package via composer:

    composer require –dev projektgopher/whisky
    ./vendor/bin/whisky install

    This is the recommended method, as every developer on your project will have access to the tool.

    Global Installation

    Whisky can be installed globally, however this means that any developer on your project will also need it installed globally if they want to use it.

    composer global require projektgopher/whisky
    whisky install

    If Whisky is installed both globally, and locally, on a project the version that’s run will depend on how the command is invoked.

    Whisky Usage

    The install command will create a whisky.json file in your project root:

    // whisky.json
    {
    “disabled”: [],
    “hooks”: {
    “pre-commit”: [
    “./vendor/bin/pint –dirty”
    ],
    “pre-push”: [
    “php artisan test”
    ]
    }
    }

    Warning all hooks are evaluated as-is in the terminal. Keep this in mind when committing anything involving changes to your whisky.json.

    Adding or removing any hooks (not individual commands) to your whisky.json file should be followed by ./vendor/bin/whisky update to ensure that these changes are reflected in your .git/hooks directory.

    Show Links:

    Len’s GitHub

    Len’s Website

    Len’s Twitter

    Len’s YouTube

    Whisky

    Laravel ffmpeg tools

    You can watch the interview on the Laravel News Youtube channel here or listen in your podcast app of choice.

    <iframe width=”100%” height=”180″ frameborder=”no” scrolling=”no” seamless=”” src=”https://share.transistor.fm/e/109a2cab”></iframe>

    The post Git Hooks Made Easy: How Whisky Helps Developers with Len Woodward appeared first on Laravel News.

    Join the Laravel Newsletter to get all the latest
    Laravel articles like this directly in your inbox.

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticlePricing Projects As A Freelancer Or Agency Owner
    Next Article The August 2024 Laravel Worldwide Meetup

    Related Posts

    Development

    February 2025 Baseline monthly digest

    May 18, 2025
    Artificial Intelligence

    Markus Buehler receives 2025 Washington Award

    May 18, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    This AI Paper from Princeton and the University of Warwick Proposes a Novel Artificial Intelligence Approach to Enhance the Utility of LLMs as Cognitive Models

    Development

    How to Download DirectX 12 Agility SDK [Installation Guide]

    Operating Systems

    Remote Device Management and Wiping Policy

    Development

    Google Maps Timeline Data to be Stored Locally on Your Device for Privacy

    Development

    Highlights

    Development

    aiOla Releases Whisper-NER: An Open Source AI Model for Joint Speech Transcription and Entity Recognition

    November 24, 2024

    Speech recognition technology has made significant progress, with advancements in AI improving accessibility and accuracy.…

    Post-Launch Analysis: Improving Your Website and App

    June 25, 2024

    EXAMPLEARTICLE

    February 7, 2025

    CVE-2025-4382 – GRUB TPM Auto- decryption Data Exposure

    May 9, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.