Github::Hooks::Receiver - Github hooks receiving server
use Github::Hooks::Receiver; my $receiver = Github::Hooks::Receiver->new(secret => 'secret1234'); # my $receiver = Github::Hooks::Receiver->new; # secret is optional, but strongly RECOMMENDED! $receiver->on(push => sub { my ($event, $req) = @_; warn $event->event; my $payload = $event->payload; }); my $psgi = $receiver->to_app; $receiver->run;
Github::Hooks::Receiver is utility for creating a server receiving github hooks and processing something jobs.
Copyright (C) Songmu.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Songmu <y.songmu@gmail.com>
To install Github::Hooks::Receiver, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Github::Hooks::Receiver
CPAN shell
perl -MCPAN -e shell install Github::Hooks::Receiver
For more information on module installation, please visit the detailed CPAN module installation guide.