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
- Host: GitHub
- URL: https://github.com/collinped/laravel-rest-hooks
- Owner: collinped
- License: mit
- Created: 2020-08-31T17:21:51.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-11T05:39:20.000Z (over 3 years ago)
- Last Synced: 2025-10-11T14:42:56.391Z (8 months ago)
- Topics: laravel, rest-hooks, zapier
- Language: PHP
- Size: 39.1 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# laravel-rest-hooks
[](https://packagist.org/packages/collinped/laravel-rest-hooks)
[](https://github.com/collinped/laravel-rest-hooks/actions?query=workflow%3ATests+branch%3Amaster)
[](https://packagist.org/packages/collinped/laravel-rest-hooks)

[](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.