PHP code example of rexxars / imbo-http-hooks

1. Go to this page and download the library: Download rexxars/imbo-http-hooks library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

rexxars / imbo-http-hooks example snippets



return [
    'eventListeners' => [
        'httpHooks' => [
            'listener' => 'Rexxars\Imbo\HttpHookListener',
            'params' => [
                // Event name => URLs
                'images.post' => [
                    'http://some.url/new-image.php',
                    'http://some.url/analyze-image.php'
                ],
                'metadata.post' => [
                    'http://some.url/metadata-updated.php',
                ]
            ]
        ]
    ]
];