Download the PHP package highsolutions/github-hook without Composer

On this page you can find all versions of the php package highsolutions/github-hook. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package github-hook

Laravel GitHub Hook

Easy continuous integration based on GitHub.

Laravel-GitHub-Hook by HighSolutions

Installation

Add the following line to the require section of your Laravel webapp's composer.json file:

Run composer update to install the package.

This package uses Laravel 5.5 Package Auto-Discovery. For previous versions of Laravel, you need to update config/app.php by adding an entry for the service provider:

Configuration

Finally, from the command line again, publish the default configuration file:

and you can specify some essentials settings (in ENV and in config file called github-hook.php):

Setting name Description ENV variable Default value
url URL for webhook from GitHub to your GITHUB_HOOK_URL /github/hook/
branch Pulled repository branch on server GITHUB_HOOK_BRANCH master
secret GitHub webook secret code GITHUB_HOOK_SECRET null
hooks.before Array of commands to execute before composer actions (### is a separator). GITHUB_HOOK_HOOK_BEFORE []
hooks.composer Composer update command (and dump-autoload). Set false to deactivate. GITHUB_HOOK_HOOK_COMPOSER composer install --no-dev
hooks.migration Artisan command for database migration. Set false to deactivate. GITHUB_HOOK_HOOK_MIGRATION php artisan migrate --force
hooks.seed Artisan command for database seeding. Set false to deactivate. GITHUB_HOOK_HOOK_SEED php artisan db:seed --force
hooks.refresh Artisan command for recreating database (migration and seeding). Set false to deactivate. GITHUB_HOOK_HOOK_REFRESH php artisan migrate:refresh --seed --force
hooks.cache Clear cache. Set false to deactivate. GITHUB_HOOK_HOOK_CACHE php artisan cache:clear
hooks.view Clear compiled views. Set false to deactivate. GITHUB_HOOK_HOOK_VIEW php artisan view:clear
hooks.after Array of commands to execute after rest of hooks (### is a separator). GITHUB_HOOK_HOOK_AFTER []
slack.sender Name of sender of Slack notification GITHUB_HOOK_SLACK_SENDER GitHub Hook
slack.channel Channel where Slack notification will be posted GITHUB_HOOK_SLACK_CHANNEL
slack.webhook_url Slack webhook url. If empty, notification won't be send. GITHUB_HOOK_SLACK_URL

You can specify whole configuration in .env file:

Remember surround values containg spaces with ".

No Laravel version

This package is also configured to work not within Laravel. We recommend:

Configure GitHub webhook to access this second file and voila!

You can also upload only service file github-hook/src/Services/GitHubHookService.php and then you need to change path to:

Changelog

0.11.0

0.9.0

0.8.1

0.8.0

0.7.0

0.6.0

0.5.0

0.4.1

0.4.0

0.3.0

0.2.3

0.2.0

0.1.0

Roadmap

Credits

This package is developed by HighSolutions, software house from Poland in love in Laravel.


All versions of github-hook with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.3
illuminate/support Version 5.*|^6.0|^7.0|^8.0
laravel/slack-notification-channel Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package highsolutions/github-hook contains the following files

Loading the files please wait ....