An open API service indexing awesome lists of open source software.

https://github.com/collinped/laravel-rest-hooks


https://github.com/collinped/laravel-rest-hooks

laravel rest-hooks zapier

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

# laravel-rest-hooks

[![Latest Version on Packagist](https://img.shields.io/packagist/v/collinped/laravel-rest-hooks.svg?style=flat-square)](https://packagist.org/packages/collinped/laravel-rest-hooks)
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/collinped/laravel-rest-hooks/Tests?style=flat-square&label=tests)](https://github.com/collinped/laravel-rest-hooks/actions?query=workflow%3ATests+branch%3Amaster)
[![Total Downloads](https://img.shields.io/packagist/dt/collinped/laravel-rest-hooks.svg?style=flat-square)](https://packagist.org/packages/collinped/laravel-rest-hooks)
![](https://img.shields.io/packagist/php-v/collinped/laravel-rest-hooks.svg?style=flat-square)
[![License](https://img.shields.io/github/license/collinped/laravel-rest-hooks.svg?style=flat-square&label=license)](LICENSE.md)

Package for managing [Rest Hooks](https://resthooks.org) in Laravel for use with platforms such as [Zapier](https://zapier.com/). Built on top of [spatie/laravel-webhook-server](https://github.com/spatie/laravel-webhook-server).

## Installation

You can install the package via composer:

```bash
composer require collinped/laravel-rest-hooks
```

You can publish and run the migrations with:

```bash
php artisan vendor:publish --provider="Collinped\LaravelRestHooks\Providers\LaravelRestHooksServiceProvider" --tag="migrations"
php artisan migrate
```

You can publish the config file with:
```bash
php artisan vendor:publish --provider="Collinped\LaravelRestHooks\Providers\LaravelRestHooksServiceProvider" --tag="config"
```

This is the contents of the published config file:

```php
return [
];
```

## Usage

``` php
use Collinped\LaravelRestHooks\RestHook;

$restHook = RestHook::forUser(auth()->user()->id())>find($id);
```

## Testing

``` bash
composer test
```

## Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

## Contributing

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

## Security

If you discover any security related issues, please email me@collinped.com instead of using the issue tracker.

## Credits

- [Collin Pedersen](https://github.com/collinped)
- [Spatie](https://github.com/spatie) - [spatie/laravel-webhook-server](https://github.com/spatie/laravel-webhook-server) is used in the background for processing web hooks.

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.