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

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 17, 2025

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

      May 17, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 17, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 17, 2025

      Microsoft’s allegiance isn’t to OpenAI’s pricey models — Satya Nadella’s focus is selling any AI customers want for maximum profits

      May 17, 2025

      If you think you can do better than Xbox or PlayStation in the Console Wars, you may just want to try out this card game

      May 17, 2025

      Surviving a 10 year stint in dev hell, this retro-styled hack n’ slash has finally arrived on Xbox

      May 17, 2025

      Save $400 on the best Samsung TVs, laptops, tablets, and more when you sign up for Verizon 5G Home or Home Internet

      May 17, 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

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

      May 17, 2025
      Recent

      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

      Apps in Generative AI – Transforming the Digital Experience

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

      Microsoft’s allegiance isn’t to OpenAI’s pricey models — Satya Nadella’s focus is selling any AI customers want for maximum profits

      May 17, 2025
      Recent

      Microsoft’s allegiance isn’t to OpenAI’s pricey models — Satya Nadella’s focus is selling any AI customers want for maximum profits

      May 17, 2025

      If you think you can do better than Xbox or PlayStation in the Console Wars, you may just want to try out this card game

      May 17, 2025

      Surviving a 10 year stint in dev hell, this retro-styled hack n’ slash has finally arrived on Xbox

      May 17, 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 17, 2025
    Development

    Learn A1 Level Spanish

    May 17, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Kraken vs Certik: A Dispute Over a $3 Million Zero-Day and Bug Bounty Ethics

    Development

    CyberJaya Digital – Web Design, SEO, Digital Marketing

    Development

    Learn Continuous Integration, Delivery, and Deployment with GitHub Actions, Docker, and Google Cloud Run

    Development

    NVIDIA AI Introduces Nemotron-4 340B: A Family of Open Models that Developers can Use to Generate Synthetic Data for Training Large Language Models (LLMs)

    Development
    Hostinger

    Highlights

    Machine Learning

    Enhancing Strategic Decision-Making in Gomoku Using Large Language Models and Reinforcement Learning

    April 2, 2025

    LLMs have significantly advanced NLP, demonstrating strong text generation, comprehension, and reasoning capabilities. These models…

    Accelerate IaC troubleshooting with Amazon Bedrock Agents

    February 25, 2025

    Nvidia’s new GeForce RTX 5070 Ti is really causing concerns over its prices

    February 24, 2025

    Email Automation with setTargetObjectId

    July 29, 2024
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

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