Git Product home page Git Product logo

laravelgithooks's Introduction

Hi there, I'm butschster! 👋

butschster

I'm a highly experienced fullstack PHP developer with over 15 years of development experience under my belt. I'm currently working at SpiralScout, where I'm building the open source Spiral Framework and diving into the Spiral Framework, Cycle ORM, Temporalio, and RoadRunner.

My extensive experience and skills in PHP development allow me to quickly and effectively solve problems and deliver top-quality solutions. I have a strong background in Laravel, VueJS, TailwindCSS.

In addition to my professional work, I am also an active contributor to open source. I contributed to projects such as laravel/framework, nunomaduro/termwind, roadrunner-server/roadrunner, e.t.c.

I am also the creator of many powerful, open-source tools:

  • Birddog - for RoadRunner server monitoring,
  • Buggregator - for PHP applications debugging,
  • butschster/meta-tags - Powerful and extendable tools for managing SEO Meta Tags in your Laravel project
  • SleepingOwlAdmin - Administrative interface builder for Laravel (Laravel admin)

You can find all my packages on packagist

These projects have allowed me to demonstrate my skills in project development and management, and have given me the opportunity to create valuable resources for the PHP community.

I'm really excited about Yii3 too and can't wait to give it a try!

Conclusion

I'm always looking for new opportunities to learn and grow, and I love contributing to open source. Feel free to reach out if you want to chat or collaborate – I'm always open to new connections and projects.

Twitter: @ButscH Telegram: @butschster

butschster github stats

laravelgithooks's People

Contributors

butschster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

yusronarif

laravelgithooks's Issues

Возможность передачи настроек из конфига в хуки

Нужна возможность добавлять настройки для каждого хука

// config/git_hooks.php
return [
    ...
    'commit-msg' => [
        \App\Console\GitHooks\MyFirstCommitMessageHook::class,
       
        \App\Console\GitHooks\HookWithConfig::class => [
              'param1' => 'hello',
              'param2' => 'world' 
        ],
    ],
    ...
];


class HookWithConfig {

    /**
     * @var array
     */
    protected $config;

    public function __construct(array $config)
    {
        $this->config = $config;
    }
}

Обработка хука pre-commit

The pre-commit hook is run first, before you even type in a commit message. It’s used to inspect the snapshot that’s about to be committed, to see if you’ve forgotten something, to make sure tests run, or to examine whatever you need to inspect in the code. Exiting non-zero from this hook aborts the commit, although you can bypass it with git commit --no-verify. You can do things like check for code style (run lint or something equivalent), check for trailing whitespace (the default hook does exactly this), or check for appropriate documentation on new methods.

Согласно документации данный хук предназначен проверки кода перед коммитов. Соответственно в него есть смысл передавать только список измененных файлов

Обработка хука post-commit

After the entire commit process is completed, the post-commit hook runs. It doesn’t take any parameters, but you can easily get the last commit by running git log -1 HEAD. Generally, this script is used for notification or something similar.

Данный хук предназначен в основном для отправки уведомлений.

Хук на добавление ссылки для номера issue

Часто бывают ситуации, когда нет интеграции трегером, или используется, допустим trello, в этом случае есть желание автоматизировать добавление ссылки на задачу.

Например issue #123 должно преобразоваться в

 issue [https://trello.com/....../123](#123)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.