Download the PHP package davidsneal/trigger without Composer
On this page you can find all versions of the php package davidsneal/trigger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download davidsneal/trigger
More information about davidsneal/trigger
Files in davidsneal/trigger
Package trigger
Short Description A simple URL Trigger for Statamic v3.
License MIT
Informations about the package trigger
Trigger
Allows you to make a simple POST
request to a configured URL. Particularly helpful for deployment triggers.
Installation
composer require davidsneal/trigger
Copy dist/js/cp.js
to your public folder public/vendor/davidsneal/trigger/js/cp.js
Sorry, I've yet to figure out a better way to do this ^^
Configuration
Set the URL that the POST
request should be made to in your .env
via TRIGGER_FIRE_URL
(optional) Publish Trigger's default configuration and language files by running php artisan vendor:publish --provider="Davidsneal\Trigger\ServiceProvider"
You could require Trigger for something different to triggering a deployment, all text displayed by Trigger is customisable.
Usage
You can access the Trigger from the CP menu under Tools. Use the published language file to change the item name, and config file to change the icon, should you wish.
This is the default component view, again you can change every item of text, including the confirmation modal.
Permissions
Trigger adds a permission you can assign to groups as required.
All versions of trigger with dependencies
illuminate/support Version 6.*
kitetail/zttp Version ^0.6.0
statamic/cms Version 3.*@beta